don't mark quarantined blocks as missing
This commit is contained in:
parent
48aca60e81
commit
70df0ad057
|
@ -232,6 +232,10 @@ proc addRawBlock*(
|
|||
|
||||
if blck.parent_root in quarantine.missing or
|
||||
blck.parent_root in quarantine.orphans:
|
||||
debug "Unresolved block (parent missing or orphaned)",
|
||||
orphans = quarantine.orphans.len,
|
||||
missing = quarantine.missing.len
|
||||
|
||||
return err MissingParent
|
||||
|
||||
# This is an unresolved block - put its parent on the missing list for now...
|
||||
|
|
|
@ -49,4 +49,5 @@ func add*(quarantine: var QuarantineRef, dag: ChainDAGRef,
|
|||
quarantine.orphans[sblck.root] = sblck
|
||||
|
||||
let parentRoot = sblck.message.parent_root
|
||||
quarantine.addMissing(parentRoot)
|
||||
if parentRoot notin quarantine.orphans:
|
||||
quarantine.addMissing(parentRoot)
|
||||
|
|
Loading…
Reference in New Issue