From aa250e228a7f2eec5d512d05eb042b75e2755d30 Mon Sep 17 00:00:00 2001 From: Péter Szilágyi 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/sync.go') 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