Deprecate FeeCalculator returning APIs (#19120)
This commit is contained in:
@ -362,10 +362,12 @@ fn execute_transactions(bank: &Bank, txs: &[Transaction]) -> Vec<ConfirmedTransa
|
||||
post_token_balances,
|
||||
log_messages,
|
||||
)| {
|
||||
#[allow(deprecated)]
|
||||
let fee_calculator = nonce_rollback
|
||||
.map(|nonce_rollback| nonce_rollback.fee_calculator())
|
||||
.unwrap_or_else(|| bank.get_fee_calculator(&tx.message().recent_blockhash))
|
||||
.expect("FeeCalculator must exist");
|
||||
#[allow(deprecated)]
|
||||
let fee = fee_calculator.calculate_fee(tx.message());
|
||||
|
||||
let inner_instructions = inner_instructions.map(|inner_instructions| {
|
||||
|
Reference in New Issue
Block a user