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

[Merged by Bors] - increase tortoise window for past layers on mainnet #5762

Closed
wants to merge 7 commits into from

Conversation

dshulyak
Copy link
Contributor

closes: #5659

in order to decode ballots while syncing layers before 30_000 window needs to be set to 10_000 (this is what this value was originally). otherwise many ballots can't be decoded as they reference base ballots outside of 4032 window. this breaks the chain of votes and make tortoise unable to cross necessary weight.

this change introduces HistoricalWindowSize parameter in tortoise, that sets window size to 10_000 for layers before 30_000.
it also removes eviction logic from atxsdata and moves it inside tortoise, so that we don't have to have similar conditionals in more than 1 place.

@dshulyak
Copy link
Contributor Author

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Mar 22, 2024
closes: #5659

in order to decode ballots while syncing layers before 30_000 window needs to be set to 10_000 (this is what this value was originally). otherwise many ballots can't be decoded as they reference base ballots outside of 4032 window. this breaks the chain of votes and make tortoise unable to cross necessary weight.

this change introduces HistoricalWindowSize parameter in tortoise, that sets window size to 10_000 for layers before 30_000.
it also removes eviction logic from atxsdata and moves it inside tortoise, so that we don't have to have similar conditionals in more than 1 place.
@spacemesh-bors
Copy link

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title increase tortoise window for past layers on mainnet [Merged by Bors] - increase tortoise window for past layers on mainnet Mar 22, 2024
@spacemesh-bors spacemesh-bors bot closed this Mar 22, 2024
@spacemesh-bors spacemesh-bors bot deleted the ballots-stuckness branch March 22, 2024 12:51
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.

layers with 22000 - 28000 should be synced while keeping tortoise window as 10000
2 participants