From 1f3e2a94db162fc710a9897a9b334b399629b2dd Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Sun, 13 Oct 2024 16:21:59 +0530 Subject: [PATCH] missing data column logic --- .../data_column_quarantine.nim | 23 ++++++++++++++++--- .../gossip_processing/eth2_processor.nim | 6 ++--- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/beacon_chain/consensus_object_pools/data_column_quarantine.nim b/beacon_chain/consensus_object_pools/data_column_quarantine.nim index b9d8aee66..b7ccf34d5 100644 --- a/beacon_chain/consensus_object_pools/data_column_quarantine.nim +++ b/beacon_chain/consensus_object_pools/data_column_quarantine.nim @@ -90,7 +90,17 @@ func gatherDataColumns*(quarantine: DataColumnQuarantine, electra.SignedBeaconBlock): seq[ref DataColumnSidecar] = var columns: seq[ref DataColumnSidecar] - for i in 0..= ConsensusFork.Deneb: - if self.dataColumnQuarantine[].hasMissingDataColumns(forkyBlck) and - self.dataColumnQuarantine[].gatherDataColumns(forkyBlck).len == - max(SAMPLES_PER_SLOT, CUSTODY_REQUIREMENT): + if self.dataColumnQuarantine[].gatherDataColumns(forkyBlck).len == + max(SAMPLES_PER_SLOT, CUSTODY_REQUIREMENT) and + self.dataColumnQuarantine[].hasMissingDataColumns(forkyBlck): self.blockProcessor[].enqueueBlock( MsgSource.gossip, columnless, Opt.none(BlobSidecars),