This commit is contained in:
Agnish Ghosh 2024-10-12 18:43:09 +05:30
parent 71914ac8a7
commit 57bcfdf13e
No known key found for this signature in database
GPG Key ID: 7BDDA05D1B25E9F8

View File

@ -134,10 +134,10 @@ func hasMissingDataColumns*(quarantine: DataColumnQuarantine,
if (blck.root, ColumnIndex i) notin quarantine.data_columns and if (blck.root, ColumnIndex i) notin quarantine.data_columns and
len(blck.message.body.blob_kzg_commitments) != 0: len(blck.message.body.blob_kzg_commitments) != 0:
inc counter inc counter
if quarantine.supernode and coutner == NUMBER_OF_COLUMNS: if quarantine.supernode and counter == NUMBER_OF_COLUMNS:
return true return true
elif quarantine.supernode == false and elif quarantine.supernode == false and
counter == max(SAMPLES_PER_SLOT, CUSTODY_REQUIREMENT) counter == max(SAMPLES_PER_SLOT, CUSTODY_REQUIREMENT):
return true return true
else: else:
return false return false