don't mark quarantined blocks as missing

This commit is contained in:
Jacek Sieka 2020-08-04 21:28:40 +02:00 committed by zah
parent 48aca60e81
commit 70df0ad057
2 changed files with 6 additions and 1 deletions

View File

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

View File

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