diff --git a/rpc-client/src/nonblocking/rpc_client.rs b/rpc-client/src/nonblocking/rpc_client.rs index 596b15499bb3a4..13e8dc624d476c 100644 --- a/rpc-client/src/nonblocking/rpc_client.rs +++ b/rpc-client/src/nonblocking/rpc_client.rs @@ -2152,7 +2152,9 @@ impl RpcClient { /// ``` #[deprecated( since = "1.18.18", - note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server" + note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server. Please use \ + the stake account and StakeHistory sysvar to call \ + `Delegation::stake_activating_and_deactivating()` instead" )] pub async fn get_stake_activation( &self, diff --git a/rpc-client/src/rpc_client.rs b/rpc-client/src/rpc_client.rs index a88febc409cd5f..bf5848f6e7a607 100644 --- a/rpc-client/src/rpc_client.rs +++ b/rpc-client/src/rpc_client.rs @@ -1790,7 +1790,9 @@ impl RpcClient { /// ``` #[deprecated( since = "1.18.18", - note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server" + note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server. Please use \ + the stake account and StakeHistory sysvar to call \ + `Delegation::stake_activating_and_deactivating()` instead" )] #[allow(deprecated)] pub fn get_stake_activation(