Skip to content

Commit

Permalink
allow deprecated RPC methods until rugged...
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Nov 14, 2024
1 parent 0467d18 commit eda2f64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3976,6 +3976,7 @@ async fn process_account_sync_sweep(
.value
.ok_or("Sweep stake account does not exist")?;

#[allow(deprecated)]
let sweep_stake_activation = rpc_client
.get_stake_activation(sweep_stake_account_info.address, None)
.map_err(|err| {
Expand Down Expand Up @@ -4030,6 +4031,7 @@ async fn process_account_sync_sweep(
Some(x) => x,
};

#[allow(deprecated)]
let transient_stake_activation = rpc_client
.get_stake_activation(transitory_sweep_stake_address, None)
.map_err(|err| {
Expand Down
1 change: 1 addition & 0 deletions src/rpc_client_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pub fn get_stake_authorized(
) -> Result<(Authorized, Pubkey), Box<dyn std::error::Error>> {
let stake_account = rpc_client.get_account(&stake_account_address)?;

#[allow(deprecated)]
match rpc_client
.get_stake_activation(stake_account_address, None)?
.state
Expand Down

0 comments on commit eda2f64

Please sign in to comment.