mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
core: fix an off-by-one when the block import counts blocks
This commit is contained in:
parent
dfd076244d
commit
8bbd598ef4
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue