change get data column sidecar logic in proposer to alpha 4

This commit is contained in:
Agnish Ghosh 2024-08-27 00:08:05 +05:30
parent 4730a4b246
commit e9c7a758a0
1 changed files with 4 additions and 2 deletions

View File

@ -172,8 +172,10 @@ proc routeSignedBeaconBlock*(
debugEcho blobs.len
debugEcho blobs.len
if blobs.len != 0:
let dataColumnsOpt = newClone get_data_column_sidecars(blck, blobs.mapIt(KzgBlob(bytes: it.blob)))
let cells_and_proofs = computeCellsAndProofs(blobs.mapIt(KzgBlob(bytes: it.blob)))
if not cells_and_proofs.isOk:
debug "Issue computing cells and proofs from blob payload"
let dataColumnsOpt = newClone get_data_column_sidecars(blck, cells_and_proofs)
if not dataColumnsOpt[].isOk:
debug "Issue with computing data column from blob bundle"
let data_columns = dataColumnsOpt[].get()