aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-06-29 21:49:43 +0800
committerGitHub <noreply@github.com>2017-06-29 21:49:43 +0800
commit65b96dc4b95722df81d664d22fd06550a4c0b8a8 (patch)
tree7dc8e5c0cc4df2151c4b029caa2e32eafaf7a4d4
parentdfd076244dd0c2d809f9dd0080feab167ba9560c (diff)
parent8bbd598ef43be51f6dbd37b7d2b14501c8a4a6c3 (diff)
downloadgo-tangerine-65b96dc4b95722df81d664d22fd06550a4c0b8a8.tar
go-tangerine-65b96dc4b95722df81d664d22fd06550a4c0b8a8.tar.gz
go-tangerine-65b96dc4b95722df81d664d22fd06550a4c0b8a8.tar.bz2
go-tangerine-65b96dc4b95722df81d664d22fd06550a4c0b8a8.tar.lz
go-tangerine-65b96dc4b95722df81d664d22fd06550a4c0b8a8.tar.xz
go-tangerine-65b96dc4b95722df81d664d22fd06550a4c0b8a8.tar.zst
go-tangerine-65b96dc4b95722df81d664d22fd06550a4c0b8a8.zip
Merge pull request #14727 from holiman/count_txs_right
Fix error when reporting numer of txs in imported blocks
-rw-r--r--core/blockchain.go2
1 files changed, 1 insertions, 1 deletions
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}
}
}