Quarantine.cleanupOrphans(): Delete unviable orphan (#4782)

This commit is contained in:
henridf 2023-04-11 08:51:01 +02:00 committed by GitHub
parent 5ada931c5d
commit a543b0b446
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,6 +170,7 @@ func cleanupOrphans(quarantine: var Quarantine, finalizedSlot: Slot) =
for k in toDel: for k in toDel:
quarantine.addUnviable k[0] quarantine.addUnviable k[0]
quarantine.orphans.del k
func clearAfterReorg*(quarantine: var Quarantine) = func clearAfterReorg*(quarantine: var Quarantine) =
## Clear missing and orphans to start with a fresh slate in case of a reorg ## Clear missing and orphans to start with a fresh slate in case of a reorg