From e9c7a758a04a5854ed8db5decf39249d20a759e1 Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Tue, 27 Aug 2024 00:08:05 +0530 Subject: [PATCH] change get data column sidecar logic in proposer to alpha 4 --- beacon_chain/validators/message_router.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/beacon_chain/validators/message_router.nim b/beacon_chain/validators/message_router.nim index 2169cdbe6..9add62d25 100644 --- a/beacon_chain/validators/message_router.nim +++ b/beacon_chain/validators/message_router.nim @@ -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()