add more caveats to has dc

This commit is contained in:
Agnish Ghosh 2024-10-10 02:00:54 +05:30
parent ad699dd389
commit daa55d8e10

View File

@ -107,12 +107,13 @@ func hasDataColumns*(quarantine: DataColumnQuarantine,
if len(blck.message.body.blob_kzg_commitments) != 0:
if (blck.root, ColumnIndex i) in quarantine.data_columns:
inc counter
if counter == max(SAMPLES_PER_SLOT, CUSTODY_REQUIREMENT) or
counter == DATA_COLUMN_SIDECAR_SUBNET_COUNT:
return true
else:
return false
false
if counter == max(SAMPLES_PER_SLOT, CUSTODY_REQUIREMENT) or
counter == DATA_COLUMN_SIDECAR_SUBNET_COUNT:
return true
else:
false
func dataColumnFetchRecord*(quarantine: DataColumnQuarantine,
blck: deneb.SignedBeaconBlock | electra.SignedBeaconBlock): DataColumnFetchRecord =