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

Move calculation methods; partitioned epoch-rewards reorg, 4 of 5 #529

Merged
merged 3 commits into from
Apr 3, 2024

Conversation

CriesofCarrots
Copy link

@CriesofCarrots CriesofCarrots commented Apr 2, 2024

Problem

Code for partitioned epoch rewards is peppered throughout bank.rs. It is very hard to trace the flows, and figure out which structs and methods are needed for calculation vs distribution, or for sysvar handling.

Summary of Changes

Moves calculation-related methods to submodule of bank::partitioned_epoch_rewards
Moves unit tests

Best reviewed by commit

This is PR 4 of 5 refactor this section of Bank code. The complete change is visible in a draft PR

@codecov-commenter
Copy link

codecov-commenter commented Apr 2, 2024

Codecov Report

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

Project coverage is 81.8%. Comparing base (85c14b4) to head (90e2856).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #529   +/-   ##
=======================================
  Coverage    81.8%    81.8%           
=======================================
  Files         846      848    +2     
  Lines      229148   229154    +6     
=======================================
+ Hits       187529   187574   +45     
+ Misses      41619    41580   -39     

@CriesofCarrots
Copy link
Author

This is the penultimate one @joncinque , so if we can roll through these last two, I can finally move on to substantive changes 🙏

@joncinque
Copy link

Sorry for the delay, I will definitely get to the last ones today

Copy link

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Looks good!

@CriesofCarrots CriesofCarrots merged commit 72c526b into anza-xyz:master Apr 3, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants