Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 48ab307

Browse files
committed
Reboot program address derivation helpers
1 parent 8b989d5 commit 48ab307

File tree

7 files changed

+135
-170
lines changed

7 files changed

+135
-170
lines changed

stake-pool/cli/src/client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,17 @@ pub(crate) fn get_stake_state(
7979
Ok(stake_state)
8080
}
8181

82-
pub(crate) fn get_stake_accounts_by_withdrawer(
82+
pub(crate) fn get_stake_accounts_by_withdraw_authority(
8383
rpc_client: &RpcClient,
84-
withdrawer: &Pubkey,
84+
withdraw_authority: &Pubkey,
8585
) -> Result<Vec<(Pubkey, u64, stake_program::StakeState)>, ClientError> {
8686
rpc_client
8787
.get_program_accounts_with_config(
8888
&stake_program::id(),
8989
RpcProgramAccountsConfig {
9090
filters: Some(vec![RpcFilterType::Memcmp(Memcmp {
9191
offset: 44, // 44 is Withdrawer authority offset in stake account stake
92-
bytes: MemcmpEncodedBytes::Binary(format!("{}", withdrawer)),
92+
bytes: MemcmpEncodedBytes::Binary(format!("{}", withdraw_authority)),
9393
encoding: None,
9494
})]),
9595
account_config: RpcAccountInfoConfig {

0 commit comments

Comments
 (0)