add parallel recons to recons from gossip and background reconstruction
This commit is contained in:
parent
520788195d
commit
1120fc295a
|
@ -359,7 +359,7 @@ proc processReconstructionFromGossip*(self: var Eth2Processor,
|
||||||
columns: seq[DataColumnSidecar]):
|
columns: seq[DataColumnSidecar]):
|
||||||
Result[seq[DataColumnSidecar], cstring] =
|
Result[seq[DataColumnSidecar], cstring] =
|
||||||
let
|
let
|
||||||
recovered_cps = recover_cells_and_proofs(columns)
|
recovered_cps = parallelColumnReconstruction(columns)
|
||||||
recovered_columns = get_data_column_sidecars(signed_block, recovered_cps.get)
|
recovered_columns = get_data_column_sidecars(signed_block, recovered_cps.get)
|
||||||
|
|
||||||
ok(recovered_columns)
|
ok(recovered_columns)
|
||||||
|
|
|
@ -1552,7 +1552,7 @@ proc tryReconstructingDataColumns* (self: BeaconNode,
|
||||||
# are already stored then we do not need to reconstruct at all
|
# 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:
|
if not storedColumns.len < NUMBER_OF_COLUMNS div 2 and storedColumns.len != NUMBER_OF_COLUMNS:
|
||||||
# Recover blobs from saved data column sidecars
|
# 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:
|
if not recovered_cps.isOk:
|
||||||
return err("Error recovering cells and proofs from data columns")
|
return err("Error recovering cells and proofs from data columns")
|
||||||
# Reconstruct data column sidecars from recovered blobs
|
# Reconstruct data column sidecars from recovered blobs
|
||||||
|
|
Loading…
Reference in New Issue