Commit 74ef22d8 authored by obscuren's avatar obscuren

add it to the list

parent 86d1a26b
...@@ -53,6 +53,7 @@ func (self *BlockPool) SetBlock(b *ethchain.Block, peer *Peer) { ...@@ -53,6 +53,7 @@ func (self *BlockPool) SetBlock(b *ethchain.Block, peer *Peer) {
hash := string(b.Hash()) hash := string(b.Hash())
if self.pool[hash] == nil { if self.pool[hash] == nil {
self.hashPool = append(self.hashPool, b.Hash())
self.pool[hash] = &block{peer, nil} self.pool[hash] = &block{peer, nil}
} }
......
...@@ -486,7 +486,6 @@ func (p *Peer) HandleInbound() { ...@@ -486,7 +486,6 @@ func (p *Peer) HandleInbound() {
blockPool := p.ethereum.blockPool blockPool := p.ethereum.blockPool
it := msg.Data.NewIterator() it := msg.Data.NewIterator()
for it.Next() { for it.Next() {
block := ethchain.NewBlockFromRlpValue(it.Value()) block := ethchain.NewBlockFromRlpValue(it.Value())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment