diff --git a/block.go b/block.go index 6d8a074..07c1ef7 100644 --- a/block.go +++ b/block.go @@ -26,7 +26,7 @@ func (b *Block) SetHash() { // NewBlock creates and returns Block func NewBlock(data string, prevBlock []byte) *Block { - block := &Block{time.Now().Unix(), []byte(data), prevBlock, []byte("")} + block := &Block{time.Now().Unix(), []byte(data), prevBlock, []byte{}} block.SetHash() return block }