From d4e98c276c1484e81932bbb1a747c8f2feccae36 Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Mon, 19 Aug 2024 12:23:18 +0100 Subject: [PATCH] Remove deprecated produce block apis --- CHANGES.md | 2 + apis/validator/blinded_block.yaml | 78 ------------------------------- apis/validator/block.v2.yaml | 75 ----------------------------- beacon-node-oapi.yaml | 4 -- 4 files changed, 2 insertions(+), 157 deletions(-) delete mode 100644 apis/validator/blinded_block.yaml delete mode 100644 apis/validator/block.v2.yaml diff --git a/CHANGES.md b/CHANGES.md index 235c8c63..1bc57b0a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -21,6 +21,8 @@ The Following are no longer in the Standard API, removed since the latest versio | Endpoint | [Lighthouse](https://github.com/sigp/lighthouse) | [Lodestar](https://github.com/ChainSafe/lodestar) | [Nimbus](https://github.com/status-im/nimbus-eth2) | [Prysm](https://github.com/prysmaticlabs/prysm) | [Teku](https://github.com/ConsenSys/teku) | |----------------------------------------------------------------------------------------------------------|--------------------------------------------------|---------------------------------------------------|----------------------------------------------------|-------------------------------------------------|-------------------------------------------| +| [#466](https://github.com/ethereum/beacon-APIs/pull/466) `GET /eth/v2/validator/blocks/{slot}` removed | | | | | | +| [#466](https://github.com/ethereum/beacon-APIs/pull/466) `GET /eth/v1/validator/blinded_blocks/{slot}` removed | | | | | | ## v2.5.0 diff --git a/apis/validator/blinded_block.yaml b/apis/validator/blinded_block.yaml deleted file mode 100644 index d8a6e6a8..00000000 --- a/apis/validator/blinded_block.yaml +++ /dev/null @@ -1,78 +0,0 @@ -get: - tags: - - ValidatorRequiredApi - - Validator - operationId: "produceBlindedBlock" - summary: "Produce a new blinded block, without signature." - deprecated: true - description: | - Requests a beacon node to produce a valid blinded block, which can then be signed by a validator. - A blinded block is a block with only a transactions root, rather than a full transactions list. - - Metadata in the response indicates the type of block produced, and the supported types of block - will be added to as forks progress. - - Before Bellatrix, this endpoint will return a `BeaconBlock`. - parameters: - - name: slot - in: path - required: true - description: "The slot for which the block should be proposed." - schema: - $ref: "../../beacon-node-oapi.yaml#/components/schemas/Uint64" - - name: randao_reveal - in: query - required: true - description: "The validator's randao reveal value." - schema: - $ref: '../../beacon-node-oapi.yaml#/components/schemas/Signature' - - name: graffiti - in: query - required: false - description: "Arbitrary data validator wants to include in block." - schema: - $ref: '../../beacon-node-oapi.yaml#/components/schemas/Graffiti' - - name: skip_randao_verification - $ref: '../../beacon-node-oapi.yaml#/components/parameters/SkipRandaoVerification' - responses: - "200": - description: Success response - headers: - Eth-Consensus-Version: - $ref: '../../beacon-node-oapi.yaml#/components/headers/Eth-Consensus-Version' - content: - application/json: - schema: - title: ProduceBlindedBlockResponse - type: object - required: [version, data] - properties: - version: - type: string - enum: [ phase0, altair, bellatrix, capella, deneb ] - example: "bellatrix" - data: - anyOf: - - $ref: '../../beacon-node-oapi.yaml#/components/schemas/BeaconBlock' - - $ref: "../../beacon-node-oapi.yaml#/components/schemas/Altair.BeaconBlock" - - $ref: "../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.BlindedBeaconBlock" - - $ref: "../../beacon-node-oapi.yaml#/components/schemas/Capella.BlindedBeaconBlock" - - $ref: "../../beacon-node-oapi.yaml#/components/schemas/Deneb.BlindedBeaconBlock" - application/octet-stream: - schema: - description: "SSZ serialized block bytes. Use Accept header to choose this response type, version string is sent in header `Eth-Consensus-Version`." - "400": - description: "Invalid block production request" - content: - application/json: - schema: - $ref: "../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage" - examples: - InvalidRequest: - value: - code: 400 - message: "Invalid request to produce a block" - "500": - $ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError' - "503": - $ref: '../../beacon-node-oapi.yaml#/components/responses/CurrentlySyncing' diff --git a/apis/validator/block.v2.yaml b/apis/validator/block.v2.yaml deleted file mode 100644 index ff3fc8cb..00000000 --- a/apis/validator/block.v2.yaml +++ /dev/null @@ -1,75 +0,0 @@ -get: - tags: - - ValidatorRequiredApi - - Validator - operationId: "produceBlockV2" - summary: "Produce a new block, without signature." - deprecated: true - description: | - Requests a beacon node to produce a valid block, which can then be signed by a validator. - - Metadata in the response indicates the type of block produced, and the supported types of block - will be added to as forks progress. - parameters: - - name: slot - in: path - required: true - description: "The slot for which the block should be proposed." - schema: - $ref: "../../beacon-node-oapi.yaml#/components/schemas/Uint64" - - name: randao_reveal - in: query - required: true - description: "The validator's randao reveal value." - schema: - $ref: '../../beacon-node-oapi.yaml#/components/schemas/Signature' - - name: graffiti - in: query - required: false - description: "Arbitrary data validator wants to include in block." - schema: - $ref: '../../beacon-node-oapi.yaml#/components/schemas/Graffiti' - - name: skip_randao_verification - $ref: '../../beacon-node-oapi.yaml#/components/parameters/SkipRandaoVerification' - responses: - "200": - description: Success response - headers: - Eth-Consensus-Version: - $ref: '../../beacon-node-oapi.yaml#/components/headers/Eth-Consensus-Version' - content: - application/json: - schema: - title: ProduceBlockV2Response - type: object - required: [version, data] - properties: - version: - type: string - enum: [ phase0, altair, bellatrix, capella, deneb ] - example: "phase0" - data: - anyOf: - - $ref: '../../beacon-node-oapi.yaml#/components/schemas/BeaconBlock' - - $ref: "../../beacon-node-oapi.yaml#/components/schemas/Altair.BeaconBlock" - - $ref: "../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.BeaconBlock" - - $ref: "../../beacon-node-oapi.yaml#/components/schemas/Capella.BeaconBlock" - - $ref: "../../beacon-node-oapi.yaml#/components/schemas/Deneb.BlockContents" - application/octet-stream: - schema: - description: "SSZ serialized block bytes. Use Accept header to choose this response type, version string is sent in header `Eth-Consensus-Version`." - "400": - description: "Invalid block production request" - content: - application/json: - schema: - $ref: "../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage" - examples: - InvalidRequest: - value: - code: 400 - message: "Invalid request to produce a block" - "500": - $ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError' - "503": - $ref: '../../beacon-node-oapi.yaml#/components/responses/CurrentlySyncing' diff --git a/beacon-node-oapi.yaml b/beacon-node-oapi.yaml index c3608a84..a94592f3 100644 --- a/beacon-node-oapi.yaml +++ b/beacon-node-oapi.yaml @@ -176,12 +176,8 @@ paths: $ref: "./apis/validator/duties/proposer.yaml" /eth/v1/validator/duties/sync/{epoch}: $ref: "./apis/validator/duties/sync.yaml" - /eth/v2/validator/blocks/{slot}: - $ref: "./apis/validator/block.v2.yaml" /eth/v3/validator/blocks/{slot}: $ref: "./apis/validator/block.v3.yaml" - /eth/v1/validator/blinded_blocks/{slot}: - $ref: "./apis/validator/blinded_block.yaml" /eth/v1/validator/attestation_data: $ref: "./apis/validator/attestation_data.yaml" /eth/v1/validator/aggregate_attestation: