Skip to content

Commit

Permalink
add consensus version header to POST apis parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi committed May 28, 2024
1 parent 7625e1c commit 308ad76
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apis/beacon/pool/attestations.v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ post:
If an attestation is validated successfully the node MUST publish that attestation on the appropriate subnet.
If one or more attestations fail validation the node MUST return a 400 error with details of which attestations have failed, and why.
parameters:
- in: header
schema:
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/ConsensusVersion'
required: true
name: Eth-Consensus-Version
description: "Version of the block being submitted."
tags:
- Beacon
- ValidatorRequiredApi
Expand Down
7 changes: 7 additions & 0 deletions apis/beacon/pool/attester_slashings.v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ post:
operationId: submitPoolAttesterSlashingsV2
summary: Submit AttesterSlashing object to node's pool
description: Submits AttesterSlashing object to node's pool and if passes validation node MUST broadcast it to network.
parameters:
- in: header
schema:
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/ConsensusVersion'
required: true
name: Eth-Consensus-Version
description: "Version of the block being submitted."
tags:
- Beacon
requestBody:
Expand Down

0 comments on commit 308ad76

Please sign in to comment.