From aa250e228a7f2eec5d512d05eb042b75e2755d30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Mon, 15 Jun 2015 15:18:31 +0300 Subject: eth: don't refetch non fitting blocks to avoid duplicates --- eth/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eth') diff --git a/eth/sync.go b/eth/sync.go index 917fc0fce..a3b177a4d 100644 --- a/eth/sync.go +++ b/eth/sync.go @@ -214,7 +214,7 @@ func (pm *ProtocolManager) fetcher() { if announce := pending[hash]; announce != nil { // Drop the block if it surely cannot fit if pm.chainman.HasBlock(hash) || !pm.chainman.HasBlock(block.ParentHash()) { - delete(pending, hash) + // delete(pending, hash) // if we drop, it will re-fetch it, wait for timeout? continue } // Otherwise accumulate for import -- cgit v1.2.3