From 0c59d8cd5221f9ed0ce35daa97f68b9189eae0de Mon Sep 17 00:00:00 2001 From: Ivan Kuznetsov Date: Sun, 1 Oct 2017 11:04:31 +0700 Subject: [PATCH] Show block height in 'printchain' command --- cli_printchain.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli_printchain.go b/cli_printchain.go index ba22cf5..81b7edf 100644 --- a/cli_printchain.go +++ b/cli_printchain.go @@ -15,6 +15,7 @@ func (cli *CLI) printChain(nodeID string) { block := bci.Next() fmt.Printf("============ Block %x ============\n", block.Hash) + fmt.Printf("Height: %d\n", block.Height) fmt.Printf("Prev. block: %x\n", block.PrevBlockHash) pow := NewProofOfWork(block) fmt.Printf("PoW: %s\n\n", strconv.FormatBool(pow.Validate()))