mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-12 06:09:08 +00:00
add it to the list
This commit is contained in:
parent
86d1a26b13
commit
74ef22d824
2 changed files with 1 additions and 1 deletions
|
|
@ -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}
|
||||
}
|
||||
|
||||
|
|
|
|||
1
peer.go
1
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())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue