Skip to content

Commit 1fab40d

Browse files
v1.18: Deprecate RpcRequest::GetStakeActivation (backport of #2005) (#2012)
Deprecate RpcRequest::GetStakeActivation (#2005) * Correct deprecation note * Deprecate rpc-client-api request (cherry picked from commit 0deb6fb) Co-authored-by: Tyera <[email protected]>
1 parent 64732b9 commit 1fab40d

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

rpc-client-api/src/request.rs

+4
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ pub enum RpcRequest {
9494
GetStorageTurn,
9595
GetStorageTurnRate,
9696
GetSlotsPerSegment,
97+
#[deprecated(
98+
since = "1.18.18",
99+
note = "Do not use; getStakeActivation is not supported by the JSON-RPC server."
100+
)]
97101
GetStakeActivation,
98102
GetStakeMinimumDelegation,
99103
GetStoragePubkeysForSlot,

rpc-client/src/nonblocking/rpc_client.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -2152,10 +2152,11 @@ impl RpcClient {
21522152
/// ```
21532153
#[deprecated(
21542154
since = "1.18.18",
2155-
note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server. Please use \
2156-
the stake account and StakeHistory sysvar to call \
2155+
note = "Do not use; getStakeActivation is not supported by the JSON-RPC server. Please \
2156+
use the stake account and StakeHistory sysvar to call \
21572157
`Delegation::stake_activating_and_deactivating()` instead"
21582158
)]
2159+
#[allow(deprecated)]
21592160
pub async fn get_stake_activation(
21602161
&self,
21612162
stake_account: Pubkey,

rpc-client/src/rpc_client.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1790,8 +1790,8 @@ impl RpcClient {
17901790
/// ```
17911791
#[deprecated(
17921792
since = "1.18.18",
1793-
note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server. Please use \
1794-
the stake account and StakeHistory sysvar to call \
1793+
note = "Do not use; getStakeActivation is not supported by the JSON-RPC server. Please \
1794+
use the stake account and StakeHistory sysvar to call \
17951795
`Delegation::stake_activating_and_deactivating()` instead"
17961796
)]
17971797
#[allow(deprecated)]

0 commit comments

Comments
 (0)