From 6f2b6c3056d0704f649b84223487646575ce9854 Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Fri, 11 Oct 2024 19:29:44 +0530 Subject: [PATCH] revamp cells and proofs situation --- beacon_chain/spec/eip7594_helpers.nim | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/beacon_chain/spec/eip7594_helpers.nim b/beacon_chain/spec/eip7594_helpers.nim index 41aa4cfcb..ae1e6409f 100644 --- a/beacon_chain/spec/eip7594_helpers.nim +++ b/beacon_chain/spec/eip7594_helpers.nim @@ -340,16 +340,25 @@ proc get_data_column_sidecars*(signed_beacon_block: deneb.SignedBeaconBlock | var sidecars = newSeqOfCap[DataColumnSidecar](kzg_abi.CELLS_PER_EXT_BLOB) + # Flattened the cells and proofs from the `CellsAndProofs` type to + # make it simpler to handle overall + flattened_cells = + newSeq[CellBytes](cellsAndProofs.len) + flattened_proofs = + newSeq[ProofBytes](cellsAndProofs.len) + + + for i in 0..