diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-13 22:25:01 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-13 22:25:01 +0800 |
commit | 910a6d4e46dfb06a671ef68c8d90c66cab107d27 (patch) | |
tree | af20306c5e4eb2ed496d8982d57b4937abb39de1 /eth/downloader | |
parent | 7cb0e242450fd15c6ee8f5d70af41504a047e0aa (diff) | |
download | go-tangerine-910a6d4e46dfb06a671ef68c8d90c66cab107d27.tar go-tangerine-910a6d4e46dfb06a671ef68c8d90c66cab107d27.tar.gz go-tangerine-910a6d4e46dfb06a671ef68c8d90c66cab107d27.tar.bz2 go-tangerine-910a6d4e46dfb06a671ef68c8d90c66cab107d27.tar.lz go-tangerine-910a6d4e46dfb06a671ef68c8d90c66cab107d27.tar.xz go-tangerine-910a6d4e46dfb06a671ef68c8d90c66cab107d27.tar.zst go-tangerine-910a6d4e46dfb06a671ef68c8d90c66cab107d27.zip |
eth/downloader: fix nil panic caused by wrong variable use
Diffstat (limited to 'eth/downloader')
-rw-r--r-- | eth/downloader/downloader.go | 2 |
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 } |