From 74ef22d8247c08b6b827f5e9f1001f8bcce9d0e0 Mon Sep 17 00:00:00 2001 From: obscuren Date: Sun, 14 Sep 2014 14:30:33 +0200 Subject: [PATCH] add it to the list --- block_pool.go | 1 + peer.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/block_pool.go b/block_pool.go index 25627eb5c5..38827242d0 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} } diff --git a/peer.go b/peer.go index 21d918d2e0..4cc62887c6 100644 --- a/peer.go +++ b/peer.go @@ -486,7 +486,6 @@ func (p *Peer) HandleInbound() { blockPool := p.ethereum.blockPool it := msg.Data.NewIterator() - for it.Next() { block := ethchain.NewBlockFromRlpValue(it.Value())