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

pull/14727/head
Martin Holst Swende 8 years ago
parent dfd076244d
commit 8bbd598ef4
  1. 2
      core/blockchain.go

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

Loading…
Cancel
Save