From 6fbf7ac6b49e68bec550da3a41b32e460bfc9779 Mon Sep 17 00:00:00 2001 From: Ivan Kuznetsov Date: Wed, 16 Aug 2017 14:20:18 +0700 Subject: [PATCH] Make the output more verbose --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() } }