This commit is contained in:
Agnish Ghosh 2024-10-11 03:34:18 +05:30
parent 35f0636101
commit 411b439c1e

View File

@ -191,10 +191,10 @@ proc recover_cells_and_proofs*(
return err ("DataColumns do not have the same length")
var
recovered_cps = newSeq[CellsAndProofs]
recovered_cps: seq[CellsAndProofs]
recovered_cps.setLen(blobCount)
for blobIdx in 0 ..< blobCount:
for blobIdx in 0..<blobCount:
var
bIdx = blobIdx
cell_ids = newSeqOfCap[CellID](columnCount)
@ -294,6 +294,8 @@ proc get_data_column_sidecars*(signed_beacon_block: deneb.TrustedSignedBeaconBlo
column_cells.add(cellsAndProofs[i].cells)
column_proofs.add(cellsAndProofs[i].proofs)
column_proofs.setLen(blck.body.blob_kzg_commitments.len)
var sidecar = DataColumnSidecar(
index: ColumnIndex(column_index),
column: DataColumn.init(column_cells),
@ -347,6 +349,8 @@ proc get_data_column_sidecars*(signed_beacon_block: deneb.SignedBeaconBlock |
column_cells.add(cellsAndProofs[i].cells)
column_proofs.add(cellsAndProofs[i].proofs)
column_proofs.setLen(blck.body.blob_kzg_commitments.len)
var sidecar = DataColumnSidecar(
index: ColumnIndex(column_index),
column: DataColumn.init(column_cells),