From c2dda6db596066d4db8d962d90884ffe4320b6a3 Mon Sep 17 00:00:00 2001 From: NC Date: Fri, 22 Dec 2023 17:07:53 +0800 Subject: [PATCH] Add header --- packages/api/src/beacon/server/validator.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/api/src/beacon/server/validator.ts b/packages/api/src/beacon/server/validator.ts index 98a0e766c707..5d6c22557060 100644 --- a/packages/api/src/beacon/server/validator.ts +++ b/packages/api/src/beacon/server/validator.ts @@ -20,6 +20,10 @@ export function getRoutes(config: ChainForkConfig, api: ServerApi): 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); }, },