good morning!!!!

Skip to content
Snippets Groups Projects
Commit 8bbd598e authored by Martin Holst Swende's avatar Martin Holst Swende
Browse files

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

parent dfd07624
No related branches found
No related tags found
No related merge requests found
......@@ -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}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment