Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/block/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (b Block) NewBlockKeyConfirmed() string {
return fmt.Sprintf(
"%s%s-%s%s",
common.BlockPrefixConfirmed, b.ProposedTime,
common.EncodeUint64ToByteSlice(b.Height),
common.EncodeUint64ToString(b.Height),
common.GetUniqueIDFromUUID(),
)
}
Expand Down
2 changes: 1 addition & 1 deletion lib/block/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func MakeGenesisBlock(st *storage.LevelDBBackend, genesisAccount BlockAccount, c
return
}

bt := NewBlockTransactionFromTransaction(blk.Hash, blk.Height, blk.ProposedTime, tx)
bt := NewBlockTransactionFromTransaction(blk.Hash, blk.Height, blk.ProposedTime, tx, 1) // first tx (not proposer tx)
if err = bt.Save(st); err != nil {
return
}
Expand Down
Loading