mirror of https://github.com/status-im/op-geth.git
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