Skip to content

ledger-tool persist reward epoch delegated stakes account - #15871

Merged
AshwinSekar merged 1 commit into
anza-xyz:masterfrom
davidkleymann:master
Oct 8, 2026
Merged

AshwinSekar merged 1 commit into
anza-xyz:masterfrom
davidkleymann:master

Conversation

@davidkleymann

Copy link
Copy Markdown

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_ACCOUNT public to the crate. Add the PDA to the minimized_account_set to 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

@mergify
mergify Bot requested a review from a team October 8, 2026 11:25
@AshwinSekar AshwinSekar added the CI Pull Request is ready to enter CI label Oct 8, 2026
@AshwinSekar
AshwinSekar self-requested a review October 8, 2026 14:12
@github-actions github-actions Bot removed the CI Pull Request is ready to enter CI label Oct 8, 2026
@steviez

steviez commented Oct 8, 2026

Copy link
Copy Markdown

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.

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-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.5%. Comparing base (8278d8e) to head (bdd23a0).
⚠️ Report is 7 commits behind head on master.

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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AshwinSekar AshwinSekar left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

since this is non production, i'm fine with this without more in depth testing

@AshwinSekar
AshwinSekar added this pull request to the merge queue Oct 8, 2026
Merged via the queue into anza-xyz:master with commit 1c25b88 Oct 8, 2026
61 of 62 checks passed
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.

Minimized snapshots do not include PDA for reward-epoch delegated stakes

4 participants