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

This commit is contained in:
Martin Holst Swende 2017-06-29 14:19:10 +02:00
parent dfd076244d
commit 8bbd598ef4
1 changed files with 1 additions and 1 deletions

View File

@ -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}
}
}