display the number of tx mined

This commit is contained in:
Wei Yang 2017-10-18 11:56:30 +08:00
parent 29099f0c02
commit 009fda2b7c
1 changed files with 1 additions and 1 deletions

View File

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