From 198ac66e2ccbafbe3639e181331e44610c13bf16 Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Sun, 13 Oct 2024 04:22:23 +0530 Subject: [PATCH] add more checks to ensure all custody columns are received --- beacon_chain/gossip_processing/eth2_processor.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/beacon_chain/gossip_processing/eth2_processor.nim b/beacon_chain/gossip_processing/eth2_processor.nim index fbabbdc66..72db361d9 100644 --- a/beacon_chain/gossip_processing/eth2_processor.nim +++ b/beacon_chain/gossip_processing/eth2_processor.nim @@ -398,7 +398,9 @@ proc processDataColumnSidecar*( let columnless = o.unsafeGet() withBlck(columnless): when consensusFork >= ConsensusFork.Deneb: - if self.dataColumnQuarantine[].hasMissingDataColumns(forkyBlck): + if self.dataColumnQuarantine[].hasMissingDataColumns(forkyBlck) and + self.dataColumnQuarantine[].gatherDataColumns(forkyBlck).len == + max(SAMPLES_PER_SLOT, CUSTODY_REQUIREMENT): self.blockProcessor[].enqueueBlock( MsgSource.gossip, columnless, Opt.none(BlobSidecars),