Skip to content

Commit

Permalink
v2.0: Remove deprecated, unused methods from Bank (backport of anza-x…
Browse files Browse the repository at this point in the history
…yz#1980) (anza-xyz#1988)

Remove deprecated, unused methods from Bank (anza-xyz#1980)

Remove deprecated methods from Bank (not in use)

(cherry picked from commit 0313047)

Co-authored-by: Tyera <tyera@anza.xyz>
  • Loading branch information
2 people authored and neutrinoks committed Jul 17, 2024
1 parent cbe1616 commit 8db30c6
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3074,11 +3074,6 @@ impl Bank {
blockhash_queue.get_lamports_per_signature(hash)
}

#[deprecated(since = "1.9.0", note = "Please use `get_fee_for_message` instead")]
pub fn get_fee_rate_governor(&self) -> &FeeRateGovernor {
&self.fee_rate_governor
}

pub fn get_fee_for_message(&self, message: &SanitizedMessage) -> Option<u64> {
let lamports_per_signature = {
let blockhash_queue = self.blockhash_queue.read().unwrap();
Expand Down Expand Up @@ -3132,19 +3127,6 @@ impl Bank {
)
}

#[deprecated(
since = "1.6.11",
note = "Please use `get_blockhash_last_valid_block_height`"
)]
pub fn get_blockhash_last_valid_slot(&self, blockhash: &Hash) -> Option<Slot> {
let blockhash_queue = self.blockhash_queue.read().unwrap();
// This calculation will need to be updated to consider epoch boundaries if BlockhashQueue
// length is made variable by epoch
blockhash_queue
.get_hash_age(blockhash)
.map(|age| self.slot + MAX_PROCESSING_AGE as u64 - age)
}

pub fn get_blockhash_last_valid_block_height(&self, blockhash: &Hash) -> Option<Slot> {
let blockhash_queue = self.blockhash_queue.read().unwrap();
// This calculation will need to be updated to consider epoch boundaries if BlockhashQueue
Expand Down

0 comments on commit 8db30c6

Please sign in to comment.