Use empty PrevBlock in the genesis block
This commit is contained in:
parent
469281645c
commit
8a720666c7
2
block.go
2
block.go
|
@ -33,5 +33,5 @@ func NewBlock(data string, prevBlock []byte) *Block {
|
||||||
|
|
||||||
// NewGenesisBlock creates and returns genesis Block
|
// NewGenesisBlock creates and returns genesis Block
|
||||||
func NewGenesisBlock() *Block {
|
func NewGenesisBlock() *Block {
|
||||||
return NewBlock("Genesis Block", []byte("0"))
|
return NewBlock("Genesis Block", []byte{})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue