diff --git a/main.go b/main.go index df58357..3232451 100644 --- a/main.go +++ b/main.go @@ -11,6 +11,9 @@ func main() { bc.AddBlock("Send 2 more BTC to Ivan") for _, block := range bc.blocks { - fmt.Printf("%s - %x\n", block.Data, block.Hash) + fmt.Printf("Prev. hash: %x\n", block.PrevBlock) + fmt.Printf("Data: %s\n", block.Data) + fmt.Printf("Hash: %x\n", block.Hash) + fmt.Println() } }