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 epoched last update #2667

Merged
merged 3 commits into from Apr 12, 2024
Merged

Fix epoched last update #2667

merged 3 commits into from Apr 12, 2024

Conversation

brentstone
Copy link
Contributor

@brentstone brentstone commented Feb 20, 2024

Describe your changes

Closes #2665.

Indicate on which release or other PRs this topic is based on

v0.31.9

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@brentstone brentstone marked this pull request as ready for review February 20, 2024 05:03
Copy link

codecov bot commented Feb 20, 2024

Codecov Report

Attention: Patch coverage is 81.81818% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 53.87%. Comparing base (2ba001d) to head (0f85396).
Report is 131 commits behind head on main.

Files Patch % Lines
crates/proof_of_stake/src/lib.rs 73.33% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2667      +/-   ##
==========================================
- Coverage   53.88%   53.87%   -0.02%     
==========================================
  Files         308      308              
  Lines      100154   100161       +7     
==========================================
- Hits        53966    53959       -7     
- Misses      46188    46202      +14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@brentstone brentstone force-pushed the brent/fix-last-update-usage branch 2 times, most recently from 49d1cfe to 92b6353 Compare February 23, 2024 20:39
brentstone added a commit that referenced this pull request Feb 24, 2024
Comment on lines +2705 to +2704
let start = validator_set_update_epoch
.0
.checked_sub(current_epoch.0)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
let start = validator_set_update_epoch
.0
.checked_sub(current_epoch.0)
let start = validator_set_update_epoch
.checked_sub(current_epoch)

brentstone added a commit that referenced this pull request Feb 28, 2024
brentstone added a commit that referenced this pull request Mar 3, 2024
@brentstone brentstone mentioned this pull request Mar 8, 2024
10 tasks
tzemanovic added a commit that referenced this pull request Mar 19, 2024
* origin/brent/fix-last-update-usage:
  changelog: add #2667
  properly update a simple epoched object considering last update
  fix last update for nested epoched objects
tzemanovic added a commit that referenced this pull request Apr 10, 2024
* origin/brent/fix-last-update-usage:
  changelog: add #2667
  properly update a simple epoched object considering last update
  fix last update for nested epoched objects
@tzemanovic tzemanovic merged commit 364d0c0 into main Apr 12, 2024
15 of 17 checks passed
@tzemanovic tzemanovic deleted the brent/fix-last-update-usage branch April 12, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

All uses of Epoched past epoch tracking and handling of last_update may not be consistent
2 participants