Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give liveness epoch same "shape" as attester duties #253

Merged
merged 6 commits into from
Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions apis/validator/liveness.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,24 @@ post:
and based upon a subjective view of the network. A beacon node that was recently
started or suffered a network partition may indicate that a validator is not live
when it actually is."
parameters:
- name: epoch
description: "The epoch for which liveness is being queried"
in: path
required: true
schema:
$ref: "../../beacon-node-oapi.yaml#/components/schemas/Uint64"
requestBody:
description: "An array of the validator indices for which to detect liveness."
required: true
content:
application/json:
schema:
title: PostLivenessRequestBody
type: object
properties:
epoch:
$ref: "../../beacon-node-oapi.yaml#/components/schemas/Uint64"
indices:
type: array
items:
$ref: '../../beacon-node-oapi.yaml#/components/schemas/Uint64'
minItems: 1
type: array
items:
$ref: '../../beacon-node-oapi.yaml#/components/schemas/Uint64'
minItems: 1
responses:
"200":
description: Success response
Expand Down
2 changes: 1 addition & 1 deletion beacon-node-oapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ paths:
$ref: "./apis/validator/prepare_beacon_proposer.yaml"
/eth/v1/validator/register_validator:
$ref: "./apis/validator/register_validator.yaml"
/eth/v1/validator/liveness:
/eth/v1/validator/liveness/{epoch}:
$ref: "./apis/validator/liveness.yaml"

/eth/v1/events:
Expand Down