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

Query only past 84 eras of Era Points #2867

Merged
merged 4 commits into from
May 13, 2024
Merged

Query only past 84 eras of Era Points #2867

merged 4 commits into from
May 13, 2024

Conversation

wpank
Copy link
Contributor

@wpank wpank commented Apr 15, 2024

@wpank wpank requested a review from ironoa April 15, 2024 09:21
@wpank wpank marked this pull request as ready for review April 15, 2024 09:22
@ironoa ironoa merged commit 5b4a29f into staging May 13, 2024
16 checks passed
@ironoa ironoa deleted the will-update-eras branch May 13, 2024 20:45
Copy link
Contributor

@FlorianFranzen FlorianFranzen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The codebase is full enough of negative number and division by zero bugs. Please do not add any more!

let i = activeEra - 1, processedEras = 1;
i >= activeEra - Constants.ERAPOINTS_JOB_MAX_ERAS;
i--, processedEras++
) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So if this is run at any era before 85, this will terribly fail and try to query negative eras.

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.

3 participants