aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/dexon-foundation/dexon-consensus/core/blockpool.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-01-04 23:59:17 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:21 +0800
commitf2865a49b3a18f7d02886a831a14d99033bf43ae (patch)
treed6f3d8fab446222fe3d5f4d3bea557a9f279ee30 /vendor/github.com/dexon-foundation/dexon-consensus/core/blockpool.go
parent30950e88c8c96b583b34da0a8ec1e2b44b4e1b0b (diff)
downloadgo-tangerine-f2865a49b3a18f7d02886a831a14d99033bf43ae.tar
go-tangerine-f2865a49b3a18f7d02886a831a14d99033bf43ae.tar.gz
go-tangerine-f2865a49b3a18f7d02886a831a14d99033bf43ae.tar.bz2
go-tangerine-f2865a49b3a18f7d02886a831a14d99033bf43ae.tar.lz
go-tangerine-f2865a49b3a18f7d02886a831a14d99033bf43ae.tar.xz
go-tangerine-f2865a49b3a18f7d02886a831a14d99033bf43ae.tar.zst
go-tangerine-f2865a49b3a18f7d02886a831a14d99033bf43ae.zip
vendor: sync to latest core (#129)
Diffstat (limited to 'vendor/github.com/dexon-foundation/dexon-consensus/core/blockpool.go')
-rw-r--r--vendor/github.com/dexon-foundation/dexon-consensus/core/blockpool.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/dexon-foundation/dexon-consensus/core/blockpool.go b/vendor/github.com/dexon-foundation/dexon-consensus/core/blockpool.go
index fbd84f21c..4e41aa7c4 100644
--- a/vendor/github.com/dexon-foundation/dexon-consensus/core/blockpool.go
+++ b/vendor/github.com/dexon-foundation/dexon-consensus/core/blockpool.go
@@ -29,8 +29,8 @@ type blockPool []types.ByPosition
func newBlockPool(chainNum uint32) (pool blockPool) {
pool = make(blockPool, chainNum)
- for _, p := range pool {
- heap.Init(&p)
+ for i := range pool {
+ heap.Init(&pool[i])
}
return
}