Minor fix when creating new blockchain, initializing used public key

This commit is contained in:
Kleissner
2021-08-27 17:38:36 +02:00
parent 20399f121b
commit 7c88763f28
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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)