eth: don't refetch non fitting blocks to avoid duplicates

This commit is contained in:
Péter Szilágyi 2015-06-15 15:18:31 +03:00
parent cf7c44a7f6
commit aa250e228a
1 changed files with 1 additions and 1 deletions

View File

@ -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