mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-21 18:58:32 +00:00
handle empty blobs
This commit is contained in:
parent
755c24d6aa
commit
abf58928cf
@ -221,8 +221,10 @@ proc get_data_column_sidecars*(signed_block: deneb.SignedBeaconBlock |
|
||||
cellsAndProofs: seq[KzgCellsAndKzgProofs]
|
||||
kzg_incl_proof: array[4, Eth2Digest]
|
||||
|
||||
var sidecars = newSeqOfCap[DataColumnSidecar](CELLS_PER_EXT_BLOB)
|
||||
|
||||
if blobs.len == 0:
|
||||
return ok(@[])
|
||||
return ok(sidecars)
|
||||
|
||||
for blob in blobs:
|
||||
let
|
||||
@ -247,8 +249,6 @@ proc get_data_column_sidecars*(signed_block: deneb.SignedBeaconBlock |
|
||||
for j in 0..<int(CELLS_PER_EXT_BLOB):
|
||||
proofs[i][j] = (cellsAndProofs[i].proofs[j])
|
||||
|
||||
var sidecars = newSeqOfCap[DataColumnSidecar](CELLS_PER_EXT_BLOB)
|
||||
|
||||
for columnIndex in 0..<CELLS_PER_EXT_BLOB:
|
||||
var column: DataColumn
|
||||
var kzgProofOfColumn: KzgProofs
|
||||
|
Loading…
x
Reference in New Issue
Block a user