Skip to content

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

Merged
CriesofCarrots merged 3 commits intoanza-xyz:masterfrom
CriesofCarrots:simd-118-calc-sub
Apr 3, 2024
Merged

Move calculation methods; partitioned epoch-rewards reorg, 4 of 5#529
CriesofCarrots merged 3 commits intoanza-xyz:masterfrom
CriesofCarrots:simd-118-calc-sub

Conversation

@CriesofCarrots
Copy link
Copy Markdown

@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
Copy Markdown

codecov-commenter commented Apr 2, 2024

Codecov Report

❌ Patch coverage is 97.93814% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.8%. Comparing base (85c14b4) to head (90e2856).
⚠️ Report is 6958 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     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CriesofCarrots
Copy link
Copy Markdown
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
Copy Markdown

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

Copy link
Copy Markdown

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

3 participants