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

Reward indexing #100

Open
aBMania opened this issue Feb 9, 2024 · 3 comments
Open

Reward indexing #100

aBMania opened this issue Feb 9, 2024 · 3 comments

Comments

@aBMania
Copy link
Contributor

aBMania commented Feb 9, 2024

Hello,

I'm interested in indexing the detail of validators rewards returned by the /eth/v1/beacon/rewards/attestations/:epoch endpoint.
Is it planned for chaind to do so ?

If so, I'd be willing to help.

@mcdee
Copy link
Collaborator

mcdee commented Feb 11, 2024

This is not something that we are looking to add, but if you wish to do so I'd accept a PR.

Due to the size of the database already, it makes sense for the information to be added to existing tables. The lowest-level table would be t_validator_epoch_summaries, which is rolled up to t_validator_day_summaries. It may also be useful to add this information to t_epoch_summaries as well.

I'd be happy to provide guidance on how to add this functionality if necessary.

@aBMania
Copy link
Contributor Author

aBMania commented Feb 12, 2024

I'd be happy to provide guidance on how to add this functionality if necessary.

Sure, it'd be appreciated !

@aBMania
Copy link
Contributor Author

aBMania commented Mar 4, 2024

Can you tell me what's your take on how to proceed ?

I've thought about querying the node, but it could be quite slow and necessary if all necessary information to compute detailed reward is already in the chaind db.

The way I'm trying to achieve this is by trying to compute them following the spec.

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

No branches or pull requests

2 participants