Use empty PrevBlock in the genesis block

This commit is contained in:
Ivan Kuznetsov 2017-08-16 14:12:44 +07:00
parent 469281645c
commit 8a720666c7
1 changed files with 1 additions and 1 deletions

View File

@ -33,5 +33,5 @@ func NewBlock(data string, prevBlock []byte) *Block {
// NewGenesisBlock creates and returns genesis Block
func NewGenesisBlock() *Block {
return NewBlock("Genesis Block", []byte("0"))
return NewBlock("Genesis Block", []byte{})
}