From d91a4f371b2674b5f42ff08a1002b88b7d0752bb Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Sat, 22 Jun 2019 20:52:46 -0700 Subject: [PATCH] Fix cal_tps.sh --- core/blockchain.go | 2 +- test/cal_tps.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/blockchain.go b/core/blockchain.go index 104f0997c..4da377cef 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1229,7 +1229,7 @@ func (bc *BlockChain) insertChain(chain types.Blocks) (int, []interface{}, []*ty } switch status { case CanonStatTy: - log.Debug("Inserted new block", "number", block.Number(), "hash", block.Hash(), "uncles", len(block.Uncles()), + log.Info("Inserted new block", "number", block.Number(), "hash", block.Hash(), "uncles", len(block.Uncles()), "txs", len(block.Transactions()), "gas", block.GasUsed(), "elapsed", common.PrettyDuration(time.Since(bstart))) coalescedLogs = append(coalescedLogs, logs...) diff --git a/test/cal_tps.sh b/test/cal_tps.sh index b3fb3c239..b20634867 100755 --- a/test/cal_tps.sh +++ b/test/cal_tps.sh @@ -61,7 +61,7 @@ done FILES=$(cat $VALIDATORS) for i in $FILES; do peer=`echo $i | cut -f 5 -d - | cut -f 1 -d .` - num=`grep "HOORAY" $i | tail -n 1 | cut -f 6 -d , | grep -Eo [0-9]+` + num=`grep "Inserted new block" $i | tail -n 1 | cut -f 6 -d , | grep -Eo [0-9]+` echo "peerID": $peer, "numOfConsensus": $num done