Skip to content

Commit 9fa42b1

Browse files
committed
[release/1.4.18] core: fixed import reporter
(cherry picked from commit ca419f3)
1 parent 0718ebb commit 9fa42b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/blockchain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ func (st *insertStats) report(chain []*types.Block, index int) {
997997
duration := now.Sub(st.startTime)
998998
if duration > statsReportTimeLimit || st.queued > limit || st.processed > limit || st.ignored > limit {
999999
start, end := chain[st.lastIndex], chain[index]
1000-
txcount := countTransactions(chain[st.lastIndex:index])
1000+
txcount := countTransactions(chain[st.lastIndex : index+1])
10011001
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])
10021002
*st = insertStats{startTime: now, lastIndex: index}
10031003
}

0 commit comments

Comments
 (0)