mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-22 11:18:25 +00:00
fix: blob len 0 case
This commit is contained in:
parent
7b9c68b19d
commit
755c24d6aa
@ -222,14 +222,14 @@ proc get_data_column_sidecars*(signed_block: deneb.SignedBeaconBlock |
|
|||||||
kzg_incl_proof: array[4, Eth2Digest]
|
kzg_incl_proof: array[4, Eth2Digest]
|
||||||
|
|
||||||
if blobs.len == 0:
|
if blobs.len == 0:
|
||||||
return errIgnore ("Blob sequence can't be empty")
|
return ok(@[])
|
||||||
|
|
||||||
for blob in blobs:
|
for blob in blobs:
|
||||||
let
|
let
|
||||||
cell_and_proof = computeCellsAndProofs(blob)
|
cell_and_proof = computeCellsAndProofs(blob)
|
||||||
|
|
||||||
if cell_and_proof.isErr():
|
if cell_and_proof.isErr():
|
||||||
return errIgnore ("EIP7549: Could not compute cells")
|
return err("EIP7549: Could not compute cells")
|
||||||
|
|
||||||
if cell_and_proof.isOk:
|
if cell_and_proof.isOk:
|
||||||
cellsAndProofs.add(cell_and_proof.get())
|
cellsAndProofs.add(cell_and_proof.get())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user