Make the output more verbose
This commit is contained in:
parent
8a720666c7
commit
6fbf7ac6b4
5
main.go
5
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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue