mirror of
https://github.com/status-im/op-geth.git
synced 2025-01-15 17:24:36 +00:00
Merge pull request #954 from karalabe/fix-downloader-nil-panic
eth/downloader: fix nil panic caused by wrong variable use
This commit is contained in:
commit
3edc4698fe
@ -289,7 +289,7 @@ out:
|
||||
// already fetched hash list. This can't guarantee 100% correctness but does
|
||||
// a fair job. This is always either correct or false incorrect.
|
||||
for _, peer := range d.peers.AllPeers() {
|
||||
if d.queue.Has(peer.head) && !attemptedPeers[p.id] {
|
||||
if d.queue.Has(peer.head) && !attemptedPeers[peer.id] {
|
||||
p = peer
|
||||
break
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user