Skip to content

Commit

Permalink
drop dataColumnOpt from message router
Browse files Browse the repository at this point in the history
  • Loading branch information
agnxsh committed Jan 24, 2025
1 parent 5c83be9 commit a790995
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions beacon_chain/validators/message_router.nim
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,9 @@ proc routeSignedBeaconBlock*(
var dataColumnRefs =
Opt.none(DataColumnSidecars)
when typeof(blck).kind >= ConsensusFork.Fulu:
let dataColumnsOpt =
when typeof(blck).kind >= ConsensusFork.Fulu:
newClone Opt.some(get_data_column_sidecars(blck,
blobsOpt.get.mapIt(
KzgBlob(bytes: it.blob))))
else:
newClone Opt.none(seq[DataColumnSidecar])
if dataColumnsOpt[].isSome:
let dataColumns = dataColumnsOpt[].get()
if blobsOpt.isSome():
let dataColumns =
get_data_column_sidecars(blck, blobsOpt.get.mapIt(KzgBlob(bytes: it.blob)))
var das_workers =
newSeq[Future[SendResult]](dataColumns.len)

Expand Down

0 comments on commit a790995

Please sign in to comment.