mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-24 20:47:16 +00:00
eth: don't refetch non fitting blocks to avoid duplicates
This commit is contained in:
parent
cf7c44a7f6
commit
aa250e228a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user