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

PROGRAM TWEAKS #52

Merged
merged 13 commits into from
Jun 28, 2024
Merged

PROGRAM TWEAKS #52

merged 13 commits into from
Jun 28, 2024

Conversation

coachchucksol
Copy link
Contributor

  • 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

@coachchucksol coachchucksol requested a review from ebatsell June 26, 2024 22:02
Copy link
Collaborator

@ebatsell ebatsell left a 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

programs/steward/src/score.rs Show resolved Hide resolved
programs/steward/src/state/steward_state.rs Show resolved Hide resolved
programs/steward/src/state/accounts.rs Outdated Show resolved Hide resolved
programs/steward/src/state/large_bitmask.rs Outdated Show resolved Hide resolved
programs/steward/src/state/large_bitmask.rs Show resolved Hide resolved
}
}

// static_assertions::const_assert_eq!(StewardStateAccount::SIZE, 162584);
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove TODO

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@coachchucksol
Copy link
Contributor Author

Before merge:

  • [] Fix tests
  • [] Fix Steward CLI

@coachchucksol coachchucksol merged commit 4facad0 into steward-test-branch Jun 28, 2024
6 checks passed
@coachchucksol coachchucksol deleted the christian/program-fixes branch June 28, 2024 16:58
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