Skip to content

Commit

Permalink
Add header
Browse files Browse the repository at this point in the history
  • Loading branch information
ensi321 committed Dec 22, 2023
1 parent 158c9c3 commit c2dda6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/api/src/beacon/server/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export function getRoutes(config: ChainForkConfig, api: ServerApi<Api>): ServerR
handler: async (req, res) => {
const response = await api.produceBlockV3(...reqSerializers.produceBlockV3.parseReq(req));
void res.header("Eth-Consensus-Version", response.version);
void res.header("Eth-Execution-Payload-Blinded", response.executionPayloadBlinded);
void res.header("Eth-Execution-Payload-Value", response.executionPayloadValue);
void res.header("Eth-Consensus-Block-Value", response.consensusBlockValue);

return returnTypes.produceBlockV3.toJson(response);
},
},
Expand Down

0 comments on commit c2dda6d

Please sign in to comment.