-
Notifications
You must be signed in to change notification settings - Fork 890
Move remaining bits; partitioned epoch-rewards reorg, 5 of 5 #553
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #553 +/- ##
=========================================
- Coverage 81.8% 81.8% -0.1%
=========================================
Files 848 849 +1
Lines 229160 229163 +3
=========================================
- Hits 187547 187537 -10
- Misses 41613 41626 +13 |
8298b75 to
dd10965
Compare
dd10965 to
93455a1
Compare
|
There are a few distinct pieces to this one. I lumped them together because they are all relatively small, but let me know if you prefer this to be split up. |
93455a1 to
d2a9830
Compare
|
Rebased to pick up cargo audit fix |
|
It looks like the rebase didn't dismiss my review, which is... good? |
🤷♀️ It is definitely unexpected to me! I suppose it's convenient, though. |
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 epoch_rewards_hasher runtime functionality and associated unit tests into
partitioned_epoch_rewardssubmoduleMoves integration-like tests into submodule
Moves (test-only) compare functionality into submodule
Best reviewed by commit
This is the last PR refactoring this section of Bank code.
Closes #510