slight fix in recon from gossip

This commit is contained in:
Agnish Ghosh 2024-10-10 05:02:53 +05:30
parent 1d80f7608d
commit a0a8ebfe22

View File

@ -392,9 +392,6 @@ proc processDataColumnSidecar*(
data_column_sidecars_dropped.inc(1, [$v.error[0]])
return v
else:
inc validatedCounter
debug "Data column validated, putting data column in quarantine"
self.dataColumnQuarantine[].put(newClone(dataColumnSidecar))
@ -402,10 +399,10 @@ proc processDataColumnSidecar*(
if (let o = self.quarantine[].popColumnless(block_root); o.isSome):
let columnless = o.unsafeGet()
withBlck(columnless):
when consensusFork >= ConsensusFork.Deneb:
if validatedCounter >= (NUMBER_OF_COLUMNS div 2):
let
columns = self.dataColumnQuarantine[].gatherDataColumns
when consensusFork >= ConsensusFork.Deneb:
let
columns = self.dataColumnQuarantine[].gatherDataColumns
if columns.len >= (NUMBER_OF_COLUMNS div 2):
reconstructed_columns =
self.processReconstructionFromGossip(forkyBlck, columns)
for rc in reconstructed_columns.get: