forked from cerc-io/plugeth
eth/downloader: fix nil panic caused by wrong variable use
This commit is contained in:
parent
7cb0e24245
commit
910a6d4e46
@ -289,7 +289,7 @@ out:
|
|||||||
// already fetched hash list. This can't guarantee 100% correctness but does
|
// already fetched hash list. This can't guarantee 100% correctness but does
|
||||||
// a fair job. This is always either correct or false incorrect.
|
// a fair job. This is always either correct or false incorrect.
|
||||||
for _, peer := range d.peers.AllPeers() {
|
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
|
p = peer
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user