Skip to content

Commit 4d68bec

Browse files
committed
feat: fn to remove envelope from quarantine
1 parent 97d5701 commit 4d68bec

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

beacon_chain/consensus_object_pools/envelope_quarantine.nim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ func popOrphan*(
6161
func delOrphan*(self: var EnvelopeQuarantine, blck: gloas.SignedBeaconBlock) =
6262
self.orphans.del(blck.root)
6363

64+
func remove*(self: var EnvelopeQuarantine, root: Eth2Digest) =
65+
self.orphans.del(root)
66+
self.missing.excl(root)
67+
6468
func cleanupOrphans*(self: var EnvelopeQuarantine, finalizedSlot: Slot) =
6569
var toDel: seq[Eth2Digest]
6670

beacon_chain/gossip_processing/block_processor.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ from ../consensus_object_pools/block_quarantine import
3131
from ../consensus_object_pools/blob_quarantine import
3232
BlobQuarantine, ColumnQuarantine, GloasColumnQuarantine, popSidecars, put
3333
from ../consensus_object_pools/envelope_quarantine import
34-
EnvelopeQuarantine, addMissing, addOrphan, delOrphan, popOrphan
34+
EnvelopeQuarantine, addMissing, addOrphan, delOrphan, popOrphan, remove
3535
from ../validators/validator_monitor import
3636
MsgSource, ValidatorMonitor, registerAttestationInBlock, registerBeaconBlock,
3737
registerSyncAggregateInBlock

0 commit comments

Comments
 (0)