Repository navigation
ledger-tool persist reward epoch delegated stakes account - #15871
Conversation
You might be able to easily / quickly do this with test validator where you can adjust epoch duration to be quite short. Altho I see you added a PoC in the issue writeup; agree we probably don't need to merge that so if that resolves the issue and Ashwin is confident that we can probably forego any additional manual testing |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #15871 +/- ##
=======================================
Coverage 82.5% 82.5%
=======================================
Files 938 938
Lines 374223 374225 +2
=======================================
+ Hits 308771 308809 +38
+ Misses 65452 65416 -36 🚀 New features to boost your workflow:
|
AshwinSekar
left a comment
There was a problem hiding this comment.
since this is non production, i'm fine with this without more in depth testing
Problem
The minimized snapshots omit an account that is required for partitioned epoch rewards payout. This will make a node restarting from a minimized snapshot crash. See #15844
Summary of Changes
Make the PDA for
REWARD_EPOCH_DELEGATED_STAKES_ACCOUNTpublic to the crate. Add the PDA to theminimized_account_setto persist it.Testing
To test this this would require running a node until the partitioned epoch rewards are being paid out, creating a snapshot and restarting from that snapshot.
Fixes #15844