modify has data columns

This commit is contained in:
Agnish Ghosh 2024-10-10 22:20:21 +05:30
parent ae46c85136
commit 3ec7b522c8
1 changed files with 3 additions and 3 deletions

View File

@ -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