From 8bbd598ef43be51f6dbd37b7d2b14501c8a4a6c3 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Thu, 29 Jun 2017 14:19:10 +0200 Subject: [PATCH] core: fix an off-by-one when the block import counts blocks --- core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index aab2e72f3..6772ea284 100644 --- a/core/blockchain.go +++ b/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} } }