Update deprecation versions (#20959)

This commit is contained in:
Jack May
2021-10-26 09:06:41 -07:00
committed by GitHub
parent 43168e6365
commit 2515f6a04f
10 changed files with 32 additions and 32 deletions

View File

@ -81,12 +81,12 @@ pub trait SyncClient {
fn get_minimum_balance_for_rent_exemption(&self, data_len: usize) -> Result<u64>;
/// 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)>;
/// Get recent blockhash. Uses explicit commitment configuration.
#[deprecated(
since = "1.8.0",
since = "1.9.0",
note = "Please use `get_latest_blockhash_with_commitment` and `get_fee_for_message` instead"
)]
fn get_recent_blockhash_with_commitment(
@ -97,14 +97,14 @@ pub trait SyncClient {
/// Get `Some(FeeCalculator)` associated with `blockhash` if it is still in
/// the BlockhashQueue`, otherwise `None`
#[deprecated(
since = "1.8.0",
since = "1.9.0",
note = "Please use `get_fee_for_message` or `is_blockhash_valid` instead"
)]
fn get_fee_calculator_for_blockhash(&self, blockhash: &Hash) -> Result<Option<FeeCalculator>>;
/// Get recent fee rate governor
#[deprecated(
since = "1.8.0",
since = "1.9.0",
note = "Please do not use, will no longer be available in the future"
)]
fn get_fee_rate_governor(&self) -> Result<FeeRateGovernor>;
@ -150,7 +150,7 @@ pub trait SyncClient {
fn poll_for_signature(&self, signature: &Signature) -> Result<()>;
#[deprecated(
since = "1.8.0",
since = "1.9.0",
note = "Please use `get_new_latest_blockhash` instead"
)]
fn get_new_blockhash(&self, blockhash: &Hash) -> Result<(Hash, FeeCalculator)>;

View File

@ -10,7 +10,7 @@ use solana_program::sysvar::recent_blockhashes::{
use std::{collections::BinaryHeap, iter::FromIterator};
#[deprecated(
since = "1.8.0",
since = "1.9.0",
note = "Please do not use, will no longer be available in the future"
)]
#[allow(deprecated)]
@ -45,7 +45,7 @@ where
}
#[deprecated(
since = "1.8.0",
since = "1.9.0",
note = "Please do not use, will no longer be available in the future"
)]
#[allow(deprecated)]
@ -65,7 +65,7 @@ where
}
#[deprecated(
since = "1.8.0",
since = "1.9.0",
note = "Please do not use, will no longer be available in the future"
)]
#[allow(deprecated)]