mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-20 03:20:32 +00:00
fix len
This commit is contained in:
parent
35f0636101
commit
411b439c1e
@ -191,10 +191,10 @@ proc recover_cells_and_proofs*(
|
|||||||
return err ("DataColumns do not have the same length")
|
return err ("DataColumns do not have the same length")
|
||||||
|
|
||||||
var
|
var
|
||||||
recovered_cps = newSeq[CellsAndProofs]
|
recovered_cps: seq[CellsAndProofs]
|
||||||
recovered_cps.setLen(blobCount)
|
recovered_cps.setLen(blobCount)
|
||||||
|
|
||||||
for blobIdx in 0 ..< blobCount:
|
for blobIdx in 0..<blobCount:
|
||||||
var
|
var
|
||||||
bIdx = blobIdx
|
bIdx = blobIdx
|
||||||
cell_ids = newSeqOfCap[CellID](columnCount)
|
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_cells.add(cellsAndProofs[i].cells)
|
||||||
column_proofs.add(cellsAndProofs[i].proofs)
|
column_proofs.add(cellsAndProofs[i].proofs)
|
||||||
|
|
||||||
|
column_proofs.setLen(blck.body.blob_kzg_commitments.len)
|
||||||
|
|
||||||
var sidecar = DataColumnSidecar(
|
var sidecar = DataColumnSidecar(
|
||||||
index: ColumnIndex(column_index),
|
index: ColumnIndex(column_index),
|
||||||
column: DataColumn.init(column_cells),
|
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_cells.add(cellsAndProofs[i].cells)
|
||||||
column_proofs.add(cellsAndProofs[i].proofs)
|
column_proofs.add(cellsAndProofs[i].proofs)
|
||||||
|
|
||||||
|
column_proofs.setLen(blck.body.blob_kzg_commitments.len)
|
||||||
|
|
||||||
var sidecar = DataColumnSidecar(
|
var sidecar = DataColumnSidecar(
|
||||||
index: ColumnIndex(column_index),
|
index: ColumnIndex(column_index),
|
||||||
column: DataColumn.init(column_cells),
|
column: DataColumn.init(column_cells),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user