Skip to content

Commit

Permalink
Remove version check from handler
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Jan 10, 2025
1 parent 6109a83 commit 2f3a081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beacon-node/src/network/reqresp/handlers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function getReqRespHandlers({db, chain}: {db: IBeaconDb; chain: IBeaconCh
return onBeaconBlocksByRoot(body, chain, db);
},
[ReqRespMethod.BlobSidecarsByRoot]: (req) => {
const fork = req.version === Version.V2 ? ForkName.electra : ForkName.deneb;
const fork = chain.config.getForkName(chain.clock.currentSlot);
const body = BlobSidecarsByRootRequestType(fork, chain.config).deserialize(req.data);
return onBlobSidecarsByRoot(body, chain, db);
},
Expand Down

0 comments on commit 2f3a081

Please sign in to comment.