add more checks to ensure all custody columns are received

This commit is contained in:
Agnish Ghosh 2024-10-13 04:22:23 +05:30
parent 622cd0b087
commit 198ac66e2c
No known key found for this signature in database
GPG Key ID: 7BDDA05D1B25E9F8
1 changed files with 3 additions and 1 deletions

View File

@ -398,7 +398,9 @@ proc processDataColumnSidecar*(
let columnless = o.unsafeGet()
withBlck(columnless):
when consensusFork >= ConsensusFork.Deneb:
if self.dataColumnQuarantine[].hasMissingDataColumns(forkyBlck):
if self.dataColumnQuarantine[].hasMissingDataColumns(forkyBlck) and
self.dataColumnQuarantine[].gatherDataColumns(forkyBlck).len ==
max(SAMPLES_PER_SLOT, CUSTODY_REQUIREMENT):
self.blockProcessor[].enqueueBlock(
MsgSource.gossip, columnless,
Opt.none(BlobSidecars),