Skip to content

Commit ca419f3

Browse files
committed
core: fixed import reporter
1 parent be6a369 commit ca419f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core/blockchain.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ func (st *insertStats) report(chain []*types.Block, index int) {
10071007
duration := now.Sub(st.startTime)
10081008
if duration > statsReportTimeLimit || st.queued > limit || st.processed > limit || st.ignored > limit {
10091009
start, end := chain[st.lastIndex], chain[index]
1010-
txcount := countTransactions(chain[st.lastIndex:index])
1010+
txcount := countTransactions(chain[st.lastIndex : index+1])
10111011
glog.Infof("imported %d block(s) (%d queued %d ignored) including %d txs in %v. #%v [%x / %x]\n", st.processed, st.queued, st.ignored, txcount, duration, end.Number(), start.Hash().Bytes()[:4], end.Hash().Bytes()[:4])
10121012
*st = insertStats{startTime: now, lastIndex: index}
10131013
}

0 commit comments

Comments
 (0)