fix logic

This commit is contained in:
Agnish Ghosh 2024-10-02 19:03:55 +05:30
parent 4f7eedb72b
commit bc780a003f
1 changed files with 3 additions and 1 deletions

View File

@ -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)