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

stake_redelegate: Fix issues discovered through fuzzing #1666

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

jumpsiegel
Copy link
Contributor

No description provided.

topointon-jump
topointon-jump previously approved these changes Apr 29, 2024
@@ -159,7 +159,7 @@
{"name":"vote_state_add_vote_latency","pubkey": "7axKe5BTYBDD87ftzWbk5DfzWMGyRvqmWTduuo22Yaqy"},
{"name":"checked_arithmetic_in_fee_validation","pubkey": "5Pecy6ie6XGm22pc9d4P9W5c31BugcFBuy6hsP2zkETv","hardcoded":1},
{"name":"last_restart_slot_sysvar","pubkey": "HooKD5NC9QNxk25QuzCssB8ecrEzGt6eXEPBUxWp1LaR"},
{"name":"reduce_stake_warmup_cooldown","pubkey": "GwtDQBghCTBgmX2cpEGNPxTEBUTQRaDMGTr5qychdGMj"},
{"name":"reduce_stake_warmup_cooldown","pubkey": "GwtDQBghCTBgmX2cpEGNPxTEBUTQRaDMGTr5qychdGMj","hardcoded":1},
Copy link
Contributor

@topointon-jump topointon-jump Apr 29, 2024

Choose a reason for hiding this comment

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

There is still one usage of this feature in agave/sdk/src/feature_set.rs - anza-xyz/agave#470, which is used indirectly by the stake program.

I think in this case it is fine to treat this feature as hardcoded, however, as the feature account will still exist in mainnet/testnet ledgers.

.distributed_rewards = distributed_rewards,
.total_rewards = total_rewards,
.distribution_complete_block_height = distribution_complete_block_height
// THIS IS ALL WRONG... this needs to be fixed for how epoch rewards have been rewritten
Copy link
Contributor

@topointon-jump topointon-jump Apr 29, 2024

Choose a reason for hiding this comment

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

Could you add a comment at the top of this file clarifying that this is still potentially a WIP and so subject to change in Agave, and that this account does not exist in mainnet or testnet yet? 🙏

@jumpsiegel jumpsiegel added this pull request to the merge queue Apr 29, 2024
Merged via the queue into main with commit 8febcc0 Apr 29, 2024
10 checks passed
@jumpsiegel jumpsiegel deleted the stake_redelegate branch April 29, 2024 16:20
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