aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-05-14 00:15:18 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-05-14 00:15:18 +0800
commit3edc4698fed7f22df8b6cb3574f1c3b633094c4e (patch)
treeaf20306c5e4eb2ed496d8982d57b4937abb39de1
parent7cb0e242450fd15c6ee8f5d70af41504a047e0aa (diff)
parent910a6d4e46dfb06a671ef68c8d90c66cab107d27 (diff)
downloadgo-tangerine-3edc4698fed7f22df8b6cb3574f1c3b633094c4e.tar
go-tangerine-3edc4698fed7f22df8b6cb3574f1c3b633094c4e.tar.gz
go-tangerine-3edc4698fed7f22df8b6cb3574f1c3b633094c4e.tar.bz2
go-tangerine-3edc4698fed7f22df8b6cb3574f1c3b633094c4e.tar.lz
go-tangerine-3edc4698fed7f22df8b6cb3574f1c3b633094c4e.tar.xz
go-tangerine-3edc4698fed7f22df8b6cb3574f1c3b633094c4e.tar.zst
go-tangerine-3edc4698fed7f22df8b6cb3574f1c3b633094c4e.zip
Merge pull request #954 from karalabe/fix-downloader-nil-panic
eth/downloader: fix nil panic caused by wrong variable use
-rw-r--r--eth/downloader/downloader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go
index c6eecfe2f..55455262a 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -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
}