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 state sync eta overflow #565

Merged
merged 4 commits into from
May 30, 2024
Merged

fix state sync eta overflow #565

merged 4 commits into from
May 30, 2024

Conversation

darioush
Copy link
Collaborator

@darioush darioush commented May 29, 2024

Why this should be merged

Currently the ETA calculation produces an intermediate value that can overflow int64, which causes the calculation to be incorrect (and even can produce negative numbers).

How this works

Uses avalanchego's ETA calculation.

How this was tested

  • CI
  • Added unit test

@darioush darioush marked this pull request as ready for review May 30, 2024 00:42
@darioush darioush requested a review from ceyonur as a code owner May 30, 2024 00:42
@StephenButtolph StephenButtolph added the bug Something isn't working label May 30, 2024
@ceyonur ceyonur enabled auto-merge (squash) May 30, 2024 12:06
@ceyonur ceyonur merged commit dbc0b27 into master May 30, 2024
8 checks passed
@ceyonur ceyonur deleted the overflow-statesync-eta branch May 30, 2024 12:07
oxbee pushed a commit to taurusgroup/coreth that referenced this pull request Nov 6, 2024
* add UT

* use max

* fix test

* use EstimateETA
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
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants