From 910a6d4e46dfb06a671ef68c8d90c66cab107d27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Wed, 13 May 2015 17:25:01 +0300 Subject: eth/downloader: fix nil panic caused by wrong variable use --- eth/downloader/downloader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3