From 3ec7b522c88ce58eeaa6205ce9a8689c4ae36992 Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Thu, 10 Oct 2024 22:20:21 +0530 Subject: [PATCH] modify has data columns --- .../consensus_object_pools/data_column_quarantine.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon_chain/consensus_object_pools/data_column_quarantine.nim b/beacon_chain/consensus_object_pools/data_column_quarantine.nim index 40f9de975..40a973f94 100644 --- a/beacon_chain/consensus_object_pools/data_column_quarantine.nim +++ b/beacon_chain/consensus_object_pools/data_column_quarantine.nim @@ -122,9 +122,9 @@ func hasDataColumns*(quarantine: DataColumnQuarantine, inc counter else: return false - if (counter == max(SAMPLES_PER_SLOT, CUSTODY_REQUIREMENT) and - counter < max(SAMPLES_PER_SLOT, CUSTODY_REQUIREMENT)) or - counter == DATA_COLUMN_SIDECAR_SUBNET_COUNT: + if counter == DATA_COLUMN_SIDECAR_SUBNET_COUNT or + (counter == max(SAMPLES_PER_SLOT, CUSTODY_REQUIREMENT) and + counter < max(SAMPLES_PER_SLOT, CUSTODY_REQUIREMENT) + 1): return true else: false