-
Notifications
You must be signed in to change notification settings - Fork 20
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
PROGRAM TWEAKS #52
PROGRAM TWEAKS #52
Conversation
coachchucksol
commented
Jun 26, 2024
- Separate authorities (blacklist, parameters, admin council: reset, pausing + passthrough?)
- Remove staker PDA in favor of State account
- Add ValidatorList address to Config so we can validate the list in instructions that don’t pass in the stake pool
- Test RemoveValidator for validators that don’t have score computed
- Adjust increase_validator_stake reserve_lamports to protect transient stake rent for other accounts
- Figure out a better system for persisting blacklist validator indices
- Add a check for Deactivate* state at the index marked for removal in epoch_maintenance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should update the integration tests with the new accounts/args too, lots of small changes that might let something slip through
} | ||
} | ||
|
||
// static_assertions::const_assert_eq!(StewardStateAccount::SIZE, 162584); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's keep this - still want to uncomment this once State size is finalized. Here to ensure that the account size doesn't change in future PRs after it goes live
@@ -44,9 +45,7 @@ pub struct ReallocState<'info> { | |||
pub config: AccountLoader<'info, Config>, | |||
|
|||
/// CHECK: TODO add validator_list address to config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove TODO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Before merge:
|