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

Improve updating, tracking and indexing in epoch indexer #469

Closed
pharr117 opened this issue Sep 8, 2023 · 0 comments · Fixed by #476
Closed

Improve updating, tracking and indexing in epoch indexer #469

pharr117 opened this issue Sep 8, 2023 · 0 comments · Fixed by #476
Assignees
Labels
2023 enhancement New feature or request rewards

Comments

@pharr117
Copy link
Collaborator

pharr117 commented Sep 8, 2023

The epoch indexer is still a bit underdeveloped and requires manual tracking and intervention to get rewards distributions. We want to improve the workflow like so:

  1. Add a new indexed boolean column to the Epochs model, defaulting to false when stored by the update-epochs command
  2. During epoch indexing, as a first step:
    • Get the current epoch from the RPC server
    • Compare to our database
    • Gather epochs that are missing
    • Run the epoch indexer for all epochs where indexed == false
  3. When an epoch finishes indexing, set indexed = true
@pharr117 pharr117 added enhancement New feature or request 2023 rewards labels Sep 8, 2023
@pharr117 pharr117 self-assigned this Sep 8, 2023
@pharr117 pharr117 moved this to Todo in Defiant OSS Sep 8, 2023
@pharr117 pharr117 moved this from Todo to In Progress in Defiant OSS Sep 16, 2023
@pharr117 pharr117 linked a pull request Sep 16, 2023 that will close this issue
@pharr117 pharr117 moved this from In Progress to Done in Defiant OSS Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2023 enhancement New feature or request rewards
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant