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

Validator identities endpoint. #452

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mcdee
Copy link
Contributor

@mcdee mcdee commented Jun 10, 2024

In support of #449.

@mcdee mcdee mentioned this pull request Jun 10, 2024
@rolfyone
Copy link
Collaborator

This looks good. Will cross-post and seek more opinions.

pubkey:
$ref: './primitive.yaml#/Pubkey'
description: "Public key of validator."
activation_epoch:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add the activation_epoch? It's a curious in-between of no epoch and all epochs in the validator record

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's in case validator index reuse comes in, it will allow us to use (index,public key, activation epoch) as a unique identifier for a validator across all time regardless of reuse.

@rkapka
Copy link
Collaborator

rkapka commented Jun 13, 2024

I support this. Our validator client currently needs to grab the full validator to get the index

@nflaig
Copy link
Collaborator

nflaig commented Jun 13, 2024

I support this. Our validator client currently needs to grab the full validator to get the index

Curious, do you track the validator status on the VC side? This has a lot of benefits, e.g. not querying duties for exited validators, not registering to builder etc. but it would still require to query the full validator object if we don't include all information in this API to recalculate the status, or include the status itself here, preferably in a format that can be ssz-serialized.

@rkapka
Copy link
Collaborator

rkapka commented Jun 17, 2024

Curious, do you track the validator status on the VC side?

No, we don't. I agree it would allow for certain optimizations, but I am not sure if it's worth the extra complexity.

@rolfyone
Copy link
Collaborator

I think i prefer the idea that this is a simple index lookup that would allow us to continue to use it in a post index being unique world, and for the rest of the data you have the indices you could look up further info...

@rolfyone
Copy link
Collaborator

we can definitely add this to changes table though...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants