Update deprecation versions (#20959)
This commit is contained in:
@ -19,7 +19,7 @@ pub enum Source {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Source {
|
impl Source {
|
||||||
#[deprecated(since = "1.8.0", note = "Please use `get_blockhash` instead")]
|
#[deprecated(since = "1.9.0", note = "Please use `get_blockhash` instead")]
|
||||||
pub fn get_blockhash_and_fee_calculator(
|
pub fn get_blockhash_and_fee_calculator(
|
||||||
&self,
|
&self,
|
||||||
rpc_client: &RpcClient,
|
rpc_client: &RpcClient,
|
||||||
@ -43,7 +43,7 @@ impl Source {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please do not use, will no longer be available in the future"
|
note = "Please do not use, will no longer be available in the future"
|
||||||
)]
|
)]
|
||||||
pub fn get_fee_calculator(
|
pub fn get_fee_calculator(
|
||||||
@ -134,7 +134,7 @@ impl BlockhashQuery {
|
|||||||
BlockhashQuery::new(blockhash, sign_only, nonce_account)
|
BlockhashQuery::new(blockhash, sign_only, nonce_account)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(since = "1.8.0", note = "Please use `get_blockhash` instead")]
|
#[deprecated(since = "1.9.0", note = "Please use `get_blockhash` instead")]
|
||||||
pub fn get_blockhash_and_fee_calculator(
|
pub fn get_blockhash_and_fee_calculator(
|
||||||
&self,
|
&self,
|
||||||
rpc_client: &RpcClient,
|
rpc_client: &RpcClient,
|
||||||
|
@ -4113,7 +4113,7 @@ impl RpcClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please use `get_latest_blockhash` and `get_fee_for_message` instead"
|
note = "Please use `get_latest_blockhash` and `get_fee_for_message` instead"
|
||||||
)]
|
)]
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
@ -4123,7 +4123,7 @@ impl RpcClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please use `get_latest_blockhash_with_commitment` and `get_fee_for_message` instead"
|
note = "Please use `get_latest_blockhash_with_commitment` and `get_fee_for_message` instead"
|
||||||
)]
|
)]
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
@ -4151,7 +4151,7 @@ impl RpcClient {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(since = "1.8.0", note = "Please use `get_latest_blockhash` instead")]
|
#[deprecated(since = "1.9.0", note = "Please use `get_latest_blockhash` instead")]
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
pub fn get_recent_blockhash(&self) -> ClientResult<(Hash, FeeCalculator)> {
|
pub fn get_recent_blockhash(&self) -> ClientResult<(Hash, FeeCalculator)> {
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
@ -4162,7 +4162,7 @@ impl RpcClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please use `get_latest_blockhash_with_commitment` instead"
|
note = "Please use `get_latest_blockhash_with_commitment` instead"
|
||||||
)]
|
)]
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
@ -4229,7 +4229,7 @@ impl RpcClient {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(since = "1.8.0", note = "Please `get_fee_for_message` instead")]
|
#[deprecated(since = "1.9.0", note = "Please `get_fee_for_message` instead")]
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
pub fn get_fee_calculator_for_blockhash(
|
pub fn get_fee_calculator_for_blockhash(
|
||||||
&self,
|
&self,
|
||||||
@ -4242,7 +4242,7 @@ impl RpcClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please `get_latest_blockhash_with_commitment` and `get_fee_for_message` instead"
|
note = "Please `get_latest_blockhash_with_commitment` and `get_fee_for_message` instead"
|
||||||
)]
|
)]
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
@ -4266,7 +4266,7 @@ impl RpcClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please do not use, will no longer be available in the future"
|
note = "Please do not use, will no longer be available in the future"
|
||||||
)]
|
)]
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
@ -4284,7 +4284,7 @@ impl RpcClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please use `get_new_latest_blockhash` instead"
|
note = "Please use `get_new_latest_blockhash` instead"
|
||||||
)]
|
)]
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
|
@ -43,18 +43,18 @@ pub enum RpcRequest {
|
|||||||
GetEpochInfo,
|
GetEpochInfo,
|
||||||
GetEpochSchedule,
|
GetEpochSchedule,
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please use RpcRequest::GetFeeForMessage instead"
|
note = "Please use RpcRequest::GetFeeForMessage instead"
|
||||||
)]
|
)]
|
||||||
GetFeeCalculatorForBlockhash,
|
GetFeeCalculatorForBlockhash,
|
||||||
GetFeeForMessage,
|
GetFeeForMessage,
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please do not use, will no longer be available in the future"
|
note = "Please do not use, will no longer be available in the future"
|
||||||
)]
|
)]
|
||||||
GetFeeRateGovernor,
|
GetFeeRateGovernor,
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please use RpcRequest::GetFeeForMessage instead"
|
note = "Please use RpcRequest::GetFeeForMessage instead"
|
||||||
)]
|
)]
|
||||||
GetFees,
|
GetFees,
|
||||||
@ -74,14 +74,14 @@ pub enum RpcRequest {
|
|||||||
GetMultipleAccounts,
|
GetMultipleAccounts,
|
||||||
GetProgramAccounts,
|
GetProgramAccounts,
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please use RpcRequest::GetLatestBlockhash instead"
|
note = "Please use RpcRequest::GetLatestBlockhash instead"
|
||||||
)]
|
)]
|
||||||
GetRecentBlockhash,
|
GetRecentBlockhash,
|
||||||
GetRecentPerformanceSamples,
|
GetRecentPerformanceSamples,
|
||||||
GetHighestSnapshotSlot,
|
GetHighestSnapshotSlot,
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please use RpcRequest::GetHighestSnapshotSlot instead"
|
note = "Please use RpcRequest::GetHighestSnapshotSlot instead"
|
||||||
)]
|
)]
|
||||||
GetSnapshotSlot,
|
GetSnapshotSlot,
|
||||||
|
@ -3113,7 +3113,7 @@ impl Bank {
|
|||||||
blockhash_queue.get_lamports_per_signature(hash)
|
blockhash_queue.get_lamports_per_signature(hash)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(since = "1.8.0", note = "Please use `get_fee_for_message` instead")]
|
#[deprecated(since = "1.9.0", note = "Please use `get_fee_for_message` instead")]
|
||||||
pub fn get_fee_rate_governor(&self) -> &FeeRateGovernor {
|
pub fn get_fee_rate_governor(&self) -> &FeeRateGovernor {
|
||||||
&self.fee_rate_governor
|
&self.fee_rate_governor
|
||||||
}
|
}
|
||||||
|
@ -123,7 +123,7 @@ impl BlockhashQueue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please do not use, will no longer be available in the future"
|
note = "Please do not use, will no longer be available in the future"
|
||||||
)]
|
)]
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
|
@ -21,7 +21,7 @@ impl FeeCalculator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please do not use, will no longer be available in the future"
|
note = "Please do not use, will no longer be available in the future"
|
||||||
)]
|
)]
|
||||||
pub fn calculate_fee(&self, message: &Message) -> u64 {
|
pub fn calculate_fee(&self, message: &Message) -> u64 {
|
||||||
|
@ -9,7 +9,7 @@ use crate::{
|
|||||||
crate::declare_deprecated_sysvar_id!("SysvarFees111111111111111111111111111111111", Fees);
|
crate::declare_deprecated_sysvar_id!("SysvarFees111111111111111111111111111111111", Fees);
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please do not use, will no longer be available in the future"
|
note = "Please do not use, will no longer be available in the future"
|
||||||
)]
|
)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
@ -9,7 +9,7 @@ use crate::{
|
|||||||
use std::{cmp::Ordering, collections::BinaryHeap, iter::FromIterator, ops::Deref};
|
use std::{cmp::Ordering, collections::BinaryHeap, iter::FromIterator, ops::Deref};
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please do not use, will no longer be available in the future"
|
note = "Please do not use, will no longer be available in the future"
|
||||||
)]
|
)]
|
||||||
pub const MAX_ENTRIES: usize = 150;
|
pub const MAX_ENTRIES: usize = 150;
|
||||||
@ -20,7 +20,7 @@ declare_deprecated_sysvar_id!(
|
|||||||
);
|
);
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please do not use, will no longer be available in the future"
|
note = "Please do not use, will no longer be available in the future"
|
||||||
)]
|
)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
@ -39,7 +39,7 @@ impl Entry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please do not use, will no longer be available in the future"
|
note = "Please do not use, will no longer be available in the future"
|
||||||
)]
|
)]
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
@ -70,7 +70,7 @@ impl<'a> PartialOrd for IterItem<'a> {
|
|||||||
/// The entries are ordered by descending block height, so the first entry holds
|
/// The entries are ordered by descending block height, so the first entry holds
|
||||||
/// the most recent block hash, and the last entry holds an old block hash.
|
/// the most recent block hash, and the last entry holds an old block hash.
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please do not use, will no longer be available in the future"
|
note = "Please do not use, will no longer be available in the future"
|
||||||
)]
|
)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
@ -81,12 +81,12 @@ pub trait SyncClient {
|
|||||||
fn get_minimum_balance_for_rent_exemption(&self, data_len: usize) -> Result<u64>;
|
fn get_minimum_balance_for_rent_exemption(&self, data_len: usize) -> Result<u64>;
|
||||||
|
|
||||||
/// Get recent blockhash
|
/// Get recent blockhash
|
||||||
#[deprecated(since = "1.8.0", note = "Please use `get_latest_blockhash` instead")]
|
#[deprecated(since = "1.9.0", note = "Please use `get_latest_blockhash` instead")]
|
||||||
fn get_recent_blockhash(&self) -> Result<(Hash, FeeCalculator)>;
|
fn get_recent_blockhash(&self) -> Result<(Hash, FeeCalculator)>;
|
||||||
|
|
||||||
/// Get recent blockhash. Uses explicit commitment configuration.
|
/// Get recent blockhash. Uses explicit commitment configuration.
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please use `get_latest_blockhash_with_commitment` and `get_fee_for_message` instead"
|
note = "Please use `get_latest_blockhash_with_commitment` and `get_fee_for_message` instead"
|
||||||
)]
|
)]
|
||||||
fn get_recent_blockhash_with_commitment(
|
fn get_recent_blockhash_with_commitment(
|
||||||
@ -97,14 +97,14 @@ pub trait SyncClient {
|
|||||||
/// Get `Some(FeeCalculator)` associated with `blockhash` if it is still in
|
/// Get `Some(FeeCalculator)` associated with `blockhash` if it is still in
|
||||||
/// the BlockhashQueue`, otherwise `None`
|
/// the BlockhashQueue`, otherwise `None`
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please use `get_fee_for_message` or `is_blockhash_valid` instead"
|
note = "Please use `get_fee_for_message` or `is_blockhash_valid` instead"
|
||||||
)]
|
)]
|
||||||
fn get_fee_calculator_for_blockhash(&self, blockhash: &Hash) -> Result<Option<FeeCalculator>>;
|
fn get_fee_calculator_for_blockhash(&self, blockhash: &Hash) -> Result<Option<FeeCalculator>>;
|
||||||
|
|
||||||
/// Get recent fee rate governor
|
/// Get recent fee rate governor
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please do not use, will no longer be available in the future"
|
note = "Please do not use, will no longer be available in the future"
|
||||||
)]
|
)]
|
||||||
fn get_fee_rate_governor(&self) -> Result<FeeRateGovernor>;
|
fn get_fee_rate_governor(&self) -> Result<FeeRateGovernor>;
|
||||||
@ -150,7 +150,7 @@ pub trait SyncClient {
|
|||||||
fn poll_for_signature(&self, signature: &Signature) -> Result<()>;
|
fn poll_for_signature(&self, signature: &Signature) -> Result<()>;
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please use `get_new_latest_blockhash` instead"
|
note = "Please use `get_new_latest_blockhash` instead"
|
||||||
)]
|
)]
|
||||||
fn get_new_blockhash(&self, blockhash: &Hash) -> Result<(Hash, FeeCalculator)>;
|
fn get_new_blockhash(&self, blockhash: &Hash) -> Result<(Hash, FeeCalculator)>;
|
||||||
|
@ -10,7 +10,7 @@ use solana_program::sysvar::recent_blockhashes::{
|
|||||||
use std::{collections::BinaryHeap, iter::FromIterator};
|
use std::{collections::BinaryHeap, iter::FromIterator};
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please do not use, will no longer be available in the future"
|
note = "Please do not use, will no longer be available in the future"
|
||||||
)]
|
)]
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
@ -45,7 +45,7 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please do not use, will no longer be available in the future"
|
note = "Please do not use, will no longer be available in the future"
|
||||||
)]
|
)]
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
@ -65,7 +65,7 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.8.0",
|
since = "1.9.0",
|
||||||
note = "Please do not use, will no longer be available in the future"
|
note = "Please do not use, will no longer be available in the future"
|
||||||
)]
|
)]
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
|
Reference in New Issue
Block a user