bug fix
This commit is contained in:
parent
93b043f88a
commit
fa5f47c468
|
@ -254,7 +254,7 @@ proc get_data_column_sidecars*(signed_block: deneb.TrustedSignedBeaconBlock |
|
||||||
compute_signed_block_header(signed_block)
|
compute_signed_block_header(signed_block)
|
||||||
kzg_incl_proof: array[4, Eth2Digest]
|
kzg_incl_proof: array[4, Eth2Digest]
|
||||||
|
|
||||||
var sidecars = newSeq[DataColumnSidecar](CELLS_PER_EXT_BLOB)
|
var sidecars = newSeqOfCap[DataColumnSidecar](CELLS_PER_EXT_BLOB)
|
||||||
|
|
||||||
if cellsAndProofs.len == 0:
|
if cellsAndProofs.len == 0:
|
||||||
return ok(sidecars)
|
return ok(sidecars)
|
||||||
|
@ -264,10 +264,8 @@ proc get_data_column_sidecars*(signed_block: deneb.TrustedSignedBeaconBlock |
|
||||||
column_cells: DataColumn
|
column_cells: DataColumn
|
||||||
column_proofs: KzgProofs
|
column_proofs: KzgProofs
|
||||||
for i in 0..<cellsAndProofs.len:
|
for i in 0..<cellsAndProofs.len:
|
||||||
let check1 = column_cells.add(cellsAndProofs[i].cells)
|
discard column_cells.add(cellsAndProofs[i].cells)
|
||||||
if not check1: debug "Issue fetching cell from CellsAndProofs"
|
discard column_proofs.add(cellsAndProofs[i].proofs)
|
||||||
let check2 = column_proofs.add(cellsAndProofs[i].proofs)
|
|
||||||
if not check2: debug "Issue fetching proof from CellsAndProofs"
|
|
||||||
|
|
||||||
var sidecar = DataColumnSidecar(
|
var sidecar = DataColumnSidecar(
|
||||||
index: ColumnIndex(column_index),
|
index: ColumnIndex(column_index),
|
||||||
|
@ -292,7 +290,7 @@ proc get_data_column_sidecars*(signed_block: deneb.SignedBeaconBlock |
|
||||||
signed_beacon_block_header = compute_signed_block_header(signed_block)
|
signed_beacon_block_header = compute_signed_block_header(signed_block)
|
||||||
kzg_incl_proof: array[4, Eth2Digest]
|
kzg_incl_proof: array[4, Eth2Digest]
|
||||||
|
|
||||||
var sidecars = newSeq[DataColumnSidecar](CELLS_PER_EXT_BLOB)
|
var sidecars = newSeqOfCap[DataColumnSidecar](CELLS_PER_EXT_BLOB)
|
||||||
|
|
||||||
if blobs.len == 0:
|
if blobs.len == 0:
|
||||||
return ok(sidecars)
|
return ok(sidecars)
|
||||||
|
|
Loading…
Reference in New Issue