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

Define epoch-rewards partition data program id #34862

Merged

Conversation

CriesofCarrots
Copy link
Contributor

@CriesofCarrots CriesofCarrots commented Jan 19, 2024

Problem

If the epoch-rewards partition data accounts are owned by the Stake program, parsers try to deserialize them as StakeState variants. This feels icky.

Summary of Changes

Use the sysvar program id to own these PDAs
Also, remove storage of HasherKind to save 4 bytes and provide mapping fn instead.

Copy link

codecov bot commented Jan 19, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (8f9d915) 81.8% compared to head (6907fd4) 81.7%.
Report is 26 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #34862     +/-   ##
=========================================
- Coverage    81.8%    81.7%   -0.1%     
=========================================
  Files         825      825             
  Lines      223269   223269             
=========================================
- Hits       182635   182580     -55     
- Misses      40634    40689     +55     

@CriesofCarrots CriesofCarrots marked this pull request as ready for review January 22, 2024 22:42
Copy link
Contributor

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

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

lgtm! thanks! :shipit:

@CriesofCarrots CriesofCarrots merged commit 8aa726b into solana-labs:master Jan 23, 2024
45 checks passed
CriesofCarrots added a commit to CriesofCarrots/solana that referenced this pull request Feb 2, 2024
CriesofCarrots added a commit that referenced this pull request Feb 6, 2024
mergify bot pushed a commit that referenced this pull request Feb 6, 2024
CriesofCarrots added a commit that referenced this pull request Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants