diff --git a/rpc-client-api/src/request.rs b/rpc-client-api/src/request.rs index 1bcc42179d96ec..f26024e7afbb19 100644 --- a/rpc-client-api/src/request.rs +++ b/rpc-client-api/src/request.rs @@ -8,7 +8,9 @@ use { #[derive(Debug, PartialEq, Eq, Hash, Clone, Copy)] pub enum RpcRequest { - Custom { method: &'static str }, + Custom { + method: &'static str, + }, DeregisterNode, GetAccountInfo, GetBalance, @@ -48,6 +50,10 @@ pub enum RpcRequest { GetStorageTurn, GetStorageTurnRate, GetSlotsPerSegment, + #[deprecated( + since = "1.18.18", + note = "Do not use; getStakeActivation is not supported by the JSON-RPC server." + )] GetStakeActivation, GetStakeMinimumDelegation, GetStoragePubkeysForSlot, diff --git a/rpc-client/src/nonblocking/rpc_client.rs b/rpc-client/src/nonblocking/rpc_client.rs index 624e4ba183a62a..0c058b1c90d12a 100644 --- a/rpc-client/src/nonblocking/rpc_client.rs +++ b/rpc-client/src/nonblocking/rpc_client.rs @@ -2110,10 +2110,11 @@ impl RpcClient { /// ``` #[deprecated( since = "1.18.18", - note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server. Please use \ - the stake account and StakeHistory sysvar to call \ + note = "Do not use; getStakeActivation is not supported by the JSON-RPC server. Please \ + use the stake account and StakeHistory sysvar to call \ `Delegation::stake_activating_and_deactivating()` instead" )] + #[allow(deprecated)] pub async fn get_stake_activation( &self, stake_account: Pubkey, diff --git a/rpc-client/src/rpc_client.rs b/rpc-client/src/rpc_client.rs index eedb1c14ec1539..d81a0e5067efcd 100644 --- a/rpc-client/src/rpc_client.rs +++ b/rpc-client/src/rpc_client.rs @@ -1776,8 +1776,8 @@ impl RpcClient { /// ``` #[deprecated( since = "1.18.18", - note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server. Please use \ - the stake account and StakeHistory sysvar to call \ + note = "Do not use; getStakeActivation is not supported by the JSON-RPC server. Please \ + use the stake account and StakeHistory sysvar to call \ `Delegation::stake_activating_and_deactivating()` instead" )] #[allow(deprecated)]