Make the output more verbose

This commit is contained in:
Ivan Kuznetsov 2017-08-16 14:20:18 +07:00
parent 8a720666c7
commit 6fbf7ac6b4
1 changed files with 4 additions and 1 deletions

View File

@ -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()
}
}