core: fix an off-by-one when the block import counts blocks
This commit is contained in:
parent
dfd076244d
commit
8bbd598ef4
|
@ -1073,7 +1073,7 @@ func (st *insertStats) report(chain []*types.Block, index int) {
|
|||
}
|
||||
log.Info("Imported new chain segment", context...)
|
||||
|
||||
*st = insertStats{startTime: now, lastIndex: index}
|
||||
*st = insertStats{startTime: now, lastIndex: index + 1}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue