add parallel recons to recons from gossip and background reconstruction

This commit is contained in:
Agnish Ghosh 2024-11-17 23:14:50 +07:00
parent 520788195d
commit 1120fc295a
No known key found for this signature in database
GPG Key ID: 7BDDA05D1B25E9F8
2 changed files with 2 additions and 2 deletions

View File

@ -359,7 +359,7 @@ proc processReconstructionFromGossip*(self: var Eth2Processor,
columns: seq[DataColumnSidecar]):
Result[seq[DataColumnSidecar], cstring] =
let
recovered_cps = recover_cells_and_proofs(columns)
recovered_cps = parallelColumnReconstruction(columns)
recovered_columns = get_data_column_sidecars(signed_block, recovered_cps.get)
ok(recovered_columns)

View File

@ -1552,7 +1552,7 @@ proc tryReconstructingDataColumns* (self: BeaconNode,
# are already stored then we do not need to reconstruct at all
if not storedColumns.len < NUMBER_OF_COLUMNS div 2 and storedColumns.len != NUMBER_OF_COLUMNS:
# Recover blobs from saved data column sidecars
let recovered_cps = recover_cells_and_proofs(data_column_sidecars)
let recovered_cps = parallelColumnReconstruction(data_column_sidecars)
if not recovered_cps.isOk:
return err("Error recovering cells and proofs from data columns")
# Reconstruct data column sidecars from recovered blobs