respond even in not-yet-supported Deneb beacon+builder API case in REST server (#5628)

This commit is contained in:
tersec 2023-11-26 10:00:04 +00:00 committed by GitHub
parent bbf4551ff9
commit af0b36f2e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -524,7 +524,8 @@ proc installValidatorApiHandlers*(router: var RestRouter, node: BeaconNode) =
# TODO # TODO
# We should return a block with sidecars here # We should return a block with sidecars here
# https://github.com/ethereum/beacon-APIs/pull/302/files # https://github.com/ethereum/beacon-APIs/pull/302/files
debugRaiseAssert $denebImplementationMissing & ": GET /eth/v1/validator/blinded_blocks/{slot}" return RestApiResponse.jsonError(
Http400, "Deneb builder API beacon API not yet supported: " & $denebImplementationMissing)
of ConsensusFork.Capella: of ConsensusFork.Capella:
let res = await makeBlindedBeaconBlockForHeadAndSlot[ let res = await makeBlindedBeaconBlockForHeadAndSlot[
capella_mev.BlindedBeaconBlock]( capella_mev.BlindedBeaconBlock](