Move remaining nonce utils from runtime to SDK

This commit is contained in:
Trent Nelson
2020-09-29 22:15:11 -06:00
committed by mergify[bot]
parent 65b868f4eb
commit 3c7b9c2938
6 changed files with 6 additions and 8 deletions

View File

@@ -3,9 +3,9 @@ use itertools::izip;
use solana_ledger::{blockstore::Blockstore, blockstore_processor::TransactionStatusBatch};
use solana_runtime::{
bank::{Bank, HashAgeKind},
nonce_utils,
transaction_utils::OrderedIterator,
};
use solana_sdk::nonce;
use solana_transaction_status::{InnerInstructions, TransactionStatusMeta};
use std::{
sync::{
@@ -75,7 +75,7 @@ impl TransactionStatusService {
if Bank::can_commit(&status) && !transaction.signatures.is_empty() {
let fee_calculator = match hash_age_kind {
Some(HashAgeKind::DurableNonce(_, account)) => {
nonce_utils::fee_calculator_of(&account)
nonce::utils::fee_calculator_of(&account)
}
_ => bank.get_fee_calculator(&transaction.message().recent_blockhash),
}