diff options
author | obscuren <geffobscura@gmail.com> | 2014-09-14 20:30:33 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-09-14 20:30:33 +0800 |
commit | 74ef22d8247c08b6b827f5e9f1001f8bcce9d0e0 (patch) | |
tree | 40266e36932ad611869a2f1cd478e9b7a59f9f96 | |
parent | 86d1a26b13a55723a89f7a9101200711a51afbc3 (diff) | |
download | go-tangerine-74ef22d8247c08b6b827f5e9f1001f8bcce9d0e0.tar go-tangerine-74ef22d8247c08b6b827f5e9f1001f8bcce9d0e0.tar.gz go-tangerine-74ef22d8247c08b6b827f5e9f1001f8bcce9d0e0.tar.bz2 go-tangerine-74ef22d8247c08b6b827f5e9f1001f8bcce9d0e0.tar.lz go-tangerine-74ef22d8247c08b6b827f5e9f1001f8bcce9d0e0.tar.xz go-tangerine-74ef22d8247c08b6b827f5e9f1001f8bcce9d0e0.tar.zst go-tangerine-74ef22d8247c08b6b827f5e9f1001f8bcce9d0e0.zip |
add it to the list
-rw-r--r-- | block_pool.go | 1 | ||||
-rw-r--r-- | peer.go | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/block_pool.go b/block_pool.go index 25627eb5c..38827242d 100644 --- a/block_pool.go +++ b/block_pool.go @@ -53,6 +53,7 @@ func (self *BlockPool) SetBlock(b *ethchain.Block, peer *Peer) { hash := string(b.Hash()) if self.pool[hash] == nil { + self.hashPool = append(self.hashPool, b.Hash()) self.pool[hash] = &block{peer, nil} } @@ -486,7 +486,6 @@ func (p *Peer) HandleInbound() { blockPool := p.ethereum.blockPool it := msg.Data.NewIterator() - for it.Next() { block := ethchain.NewBlockFromRlpValue(it.Value()) |