display the number of tx mined
This commit is contained in:
parent
29099f0c02
commit
009fda2b7c
|
@ -341,7 +341,7 @@ func handleTx(request []byte, bc *Blockchain) {
|
||||||
UTXOSet := UTXOSet{bc}
|
UTXOSet := UTXOSet{bc}
|
||||||
UTXOSet.Reindex()
|
UTXOSet.Reindex()
|
||||||
|
|
||||||
fmt.Println("New block is mined!")
|
fmt.Printf("New block with %d tx is mined!\n", len(txs))
|
||||||
|
|
||||||
for _, tx := range txs {
|
for _, tx := range txs {
|
||||||
txID := hex.EncodeToString(tx.ID)
|
txID := hex.EncodeToString(tx.ID)
|
||||||
|
|
Loading…
Reference in New Issue