From 009fda2b7c8ccb0254a51a9c6c7cbd19de362539 Mon Sep 17 00:00:00 2001 From: Wei Yang Date: Wed, 18 Oct 2017 11:56:30 +0800 Subject: [PATCH] display the number of tx mined --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 6e6789d..0058cd0 100644 --- a/server.go +++ b/server.go @@ -341,7 +341,7 @@ func handleTx(request []byte, bc *Blockchain) { UTXOSet := UTXOSet{bc} UTXOSet.Reindex() - fmt.Println("New block is mined!") + fmt.Printf("New block with %d tx is mined!\n", len(txs)) for _, tx := range txs { txID := hex.EncodeToString(tx.ID)