mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 14:06:45 +01:00
core: fix an off-by-one when the block import counts blocks
This commit is contained in:
@@ -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}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user