From bc780a003fea958502773712671897463e66f615 Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Wed, 2 Oct 2024 19:03:55 +0530 Subject: [PATCH] fix logic --- beacon_chain/validators/message_router.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/beacon_chain/validators/message_router.nim b/beacon_chain/validators/message_router.nim index fa565c398..b4ab111a4 100644 --- a/beacon_chain/validators/message_router.nim +++ b/beacon_chain/validators/message_router.nim @@ -203,9 +203,11 @@ proc routeSignedBeaconBlock*( debugEcho "custodycols" debugEcho custody_columns.len + var final_columns: seq[DataColumnSidecar] for dc in data_columns: if dc.index in custody_columns: - dataColumnRefs = Opt.some(dataColumnsOpt[].get().mapIt(newClone(it))) + final_columns.add(dc) + dataColumnRefs = Opt.some(final_columns.mapIt(newClone(it))) let added = await router[].blockProcessor[].addBlock( MsgSource.api, ForkedSignedBeaconBlock.init(blck), blobRefs, dataColumnRefs)