send DenebBlockContents in produceBlockV2 (#5519)

This commit is contained in:
tersec 2023-10-24 02:50:26 +00:00 committed by GitHub
parent fd21882e24
commit 026ad21906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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"