mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-17 02:47:51 +01:00
Minor fix when creating new blockchain, initializing used public key
This commit is contained in:
@@ -380,6 +380,8 @@ const (
|
||||
ProfileFieldAddress = 5 // Physical address
|
||||
)
|
||||
|
||||
// BlockRecordProfileBlob is similar to BlockRecordProfileField but contains binary objects instead of text.
|
||||
// It can be used for example to store a profile picture on the blockchain.
|
||||
type BlockRecordProfileBlob struct {
|
||||
Type uint16 // See ProfileBlobX constants.
|
||||
Data []byte // The data
|
||||
|
||||
@@ -71,6 +71,8 @@ func initUserBlockchain() {
|
||||
// First run: create header signature!
|
||||
userBlockchainHeader.height = 0
|
||||
userBlockchainHeader.version = 0
|
||||
userBlockchainHeader.publicKey = peerPublicKey
|
||||
|
||||
if err := blockchainHeaderWrite(userBlockchainDB, peerPrivateKey, userBlockchainHeader.height, userBlockchainHeader.version); err != nil {
|
||||
Filters.LogError("initUserBlockchain", "initializing user blockchain: %s", err.Error())
|
||||
os.Exit(1)
|
||||
|
||||
Reference in New Issue
Block a user