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

Fix/the first epoch downloaded has incomplete data #136

Merged

Conversation

santi1234567
Copy link
Member

@santi1234567 santi1234567 commented Sep 24, 2024

Description

The first epoch downloaded when running goteth would allways have the PrevState.EmptyStateRoot() flag on. This means that this epoch would be stored with incomplete data on the database.

Now we wait until we have 2 epochs downloaded before the current epoch to start storing epoch and rewards data. This ensures that we have the required info and there isn't incomplete data. Goteth now always downloads two epochs before the starting point as well to not leave gaps.

Closes #131

@santi1234567 santi1234567 linked an issue Sep 24, 2024 that may be closed by this pull request
@santi1234567 santi1234567 self-assigned this Sep 24, 2024
@santi1234567 santi1234567 added the bug Something isn't working label Sep 24, 2024
@santi1234567 santi1234567 merged commit c9cf917 into master Oct 9, 2024
@santi1234567 santi1234567 deleted the fix/the-first-epoch-downloaded-has-incomplete-data branch October 9, 2024 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The first epoch downloaded has incomplete data
1 participant