Commit 8bbd598e authored by Martin Holst Swende's avatar Martin Holst Swende

core: fix an off-by-one when the block import counts blocks

parent dfd07624
...@@ -1073,7 +1073,7 @@ func (st *insertStats) report(chain []*types.Block, index int) { ...@@ -1073,7 +1073,7 @@ func (st *insertStats) report(chain []*types.Block, index int) {
} }
log.Info("Imported new chain segment", context...) log.Info("Imported new chain segment", context...)
*st = insertStats{startTime: now, lastIndex: index} *st = insertStats{startTime: now, lastIndex: index + 1}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment