From 026ad219062428d21e1b2a8d9d40548b39774188 Mon Sep 17 00:00:00 2001 From: tersec Date: Tue, 24 Oct 2023 02:50:26 +0000 Subject: [PATCH] send DenebBlockContents in produceBlockV2 (#5519) --- beacon_chain/rpc/rest_validator_api.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_chain/rpc/rest_validator_api.nim b/beacon_chain/rpc/rest_validator_api.nim index 139c52300..4312ff041 100644 --- a/beacon_chain/rpc/rest_validator_api.nim +++ b/beacon_chain/rpc/rest_validator_api.nim @@ -444,9 +444,9 @@ proc installValidatorApiHandlers*(router: var RestRouter, node: BeaconNode) = static: raiseAssert "produceBlockV2 received unexpected version" if contentType == sszMediaType: let headers = [("eth-consensus-version", message.blck.kind.toString())] - RestApiResponse.sszResponse(forkyBlck, headers) + RestApiResponse.sszResponse(data, headers) elif contentType == jsonMediaType: - RestApiResponse.jsonResponseWVersion(forkyBlck, message.blck.kind) + RestApiResponse.jsonResponseWVersion(data, message.blck.kind) else: raiseAssert "preferredContentType() returns invalid content type"