send DenebBlockContents in produceBlockV2 (#5519)
This commit is contained in:
parent
fd21882e24
commit
026ad21906
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue