This commit is contained in:
Agnish Ghosh 2024-10-12 19:20:36 +05:30
parent 57bcfdf13e
commit 4a5995797f
No known key found for this signature in database
GPG Key ID: 7BDDA05D1B25E9F8
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ func hasMissingDataColumns*(quarantine: DataColumnQuarantine,
max(SAMPLES_PER_SLOT.uint64,
localSubnetCount))
for i in localCustodyColumns:
if (blck.root, ColumnIndex i) notin quarantine.data_columns and
if (blck.root, ColumnIndex i) in quarantine.data_columns and
len(blck.message.body.blob_kzg_commitments) != 0:
inc counter
if quarantine.supernode and counter == NUMBER_OF_COLUMNS:

View File

@ -406,7 +406,7 @@ proc processDataColumnSidecar*(
elif self.dataColumnQuarantine[].hasEnoughDataColumns(forkyBlck):
let
columns = self.dataColumnQuarantine[].gatherDataColumns(forkyBlck)
if columns.len >= (NUMBER_OF_COLUMNS div 2):
if columns.len >= (NUMBER_OF_COLUMNS div 2) and quarantine.supernode:
let
reconstructed_columns =
self.processReconstructionFromGossip(forkyBlck, columns)