Skip to content

Commit

Permalink
core: fix an off-by-one when the block import counts blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Jun 29, 2017
1 parent dfd0762 commit 8bbd598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}
}

Expand Down

0 comments on commit 8bbd598

Please sign in to comment.