SVM: Move TransactionErrorMetrics to SVM folder (#35112)
This commit is contained in:
parent
3e24b410fb
commit
10defb161f
|
@ -43,7 +43,6 @@ pub mod sorted_storages;
|
|||
pub mod stake_rewards;
|
||||
pub mod storable_accounts;
|
||||
pub mod tiered_storage;
|
||||
pub mod transaction_error_metrics;
|
||||
pub mod transaction_results;
|
||||
pub mod utils;
|
||||
mod verify_accounts_hash_in_background;
|
||||
|
|
|
@ -5,9 +5,8 @@ use {
|
|||
scheduler_messages::{ConsumeWork, FinishedConsumeWork},
|
||||
},
|
||||
crossbeam_channel::{Receiver, RecvError, SendError, Sender},
|
||||
solana_accounts_db::transaction_error_metrics::TransactionErrorMetrics,
|
||||
solana_poh::leader_bank_notifier::LeaderBankNotifier,
|
||||
solana_runtime::bank::Bank,
|
||||
solana_runtime::{bank::Bank, svm::transaction_error_metrics::TransactionErrorMetrics},
|
||||
solana_sdk::timing::AtomicInterval,
|
||||
std::{
|
||||
sync::{
|
||||
|
|
|
@ -9,10 +9,7 @@ use {
|
|||
BankingStageStats,
|
||||
},
|
||||
itertools::Itertools,
|
||||
solana_accounts_db::{
|
||||
transaction_error_metrics::TransactionErrorMetrics,
|
||||
transaction_results::TransactionCheckResult,
|
||||
},
|
||||
solana_accounts_db::transaction_results::TransactionCheckResult,
|
||||
solana_ledger::token_balances::collect_token_balances,
|
||||
solana_measure::{measure::Measure, measure_us},
|
||||
solana_poh::poh_recorder::{
|
||||
|
@ -25,7 +22,9 @@ use {
|
|||
solana_runtime::{
|
||||
bank::{Bank, LoadAndExecuteTransactionsOutput},
|
||||
compute_budget_details::GetComputeBudgetDetails,
|
||||
svm::account_loader::validate_fee_payer,
|
||||
svm::{
|
||||
account_loader::validate_fee_payer, transaction_error_metrics::TransactionErrorMetrics,
|
||||
},
|
||||
transaction_batch::TransactionBatch,
|
||||
},
|
||||
solana_sdk::{
|
||||
|
|
|
@ -5,8 +5,8 @@ use {
|
|||
InsertPacketBatchSummary, UnprocessedTransactionStorage,
|
||||
},
|
||||
},
|
||||
solana_accounts_db::transaction_error_metrics::*,
|
||||
solana_poh::poh_recorder::BankStart,
|
||||
solana_runtime::svm::transaction_error_metrics::*,
|
||||
solana_sdk::{clock::Slot, saturating_add_assign},
|
||||
std::time::Instant,
|
||||
};
|
||||
|
|
|
@ -18,10 +18,11 @@ use {
|
|||
},
|
||||
crossbeam_channel::RecvTimeoutError,
|
||||
itertools::MinMaxResult,
|
||||
solana_accounts_db::transaction_error_metrics::TransactionErrorMetrics,
|
||||
solana_cost_model::cost_model::CostModel,
|
||||
solana_measure::measure_us,
|
||||
solana_runtime::{bank::Bank, bank_forks::BankForks},
|
||||
solana_runtime::{
|
||||
bank::Bank, bank_forks::BankForks, svm::transaction_error_metrics::TransactionErrorMetrics,
|
||||
},
|
||||
solana_sdk::{
|
||||
clock::MAX_PROCESSING_AGE, saturating_add_assign, timing::AtomicInterval,
|
||||
transaction::SanitizedTransaction,
|
||||
|
|
|
@ -17,9 +17,8 @@ use {
|
|||
},
|
||||
itertools::Itertools,
|
||||
min_max_heap::MinMaxHeap,
|
||||
solana_accounts_db::transaction_error_metrics::TransactionErrorMetrics,
|
||||
solana_measure::{measure, measure_us},
|
||||
solana_runtime::bank::Bank,
|
||||
solana_runtime::{bank::Bank, svm::transaction_error_metrics::TransactionErrorMetrics},
|
||||
solana_sdk::{
|
||||
clock::FORWARD_TRANSACTIONS_TO_LEADER_AT_SLOT_OFFSET, feature_set::FeatureSet, hash::Hash,
|
||||
saturating_add_assign, transaction::SanitizedTransaction,
|
||||
|
|
|
@ -61,6 +61,7 @@ use {
|
|||
svm::{
|
||||
account_overrides::AccountOverrides,
|
||||
runtime_config::RuntimeConfig,
|
||||
transaction_error_metrics::TransactionErrorMetrics,
|
||||
transaction_processor::{
|
||||
TransactionBatchProcessor, TransactionLogMessages, TransactionProcessingCallback,
|
||||
},
|
||||
|
@ -100,7 +101,6 @@ use {
|
|||
sorted_storages::SortedStorages,
|
||||
stake_rewards::{RewardInfo, StakeReward},
|
||||
storable_accounts::StorableAccounts,
|
||||
transaction_error_metrics::TransactionErrorMetrics,
|
||||
transaction_results::{
|
||||
TransactionCheckResult, TransactionExecutionDetails, TransactionExecutionResult,
|
||||
TransactionResults,
|
||||
|
|
|
@ -21,6 +21,7 @@ use {
|
|||
svm::{
|
||||
account_loader::load_accounts,
|
||||
transaction_account_state_info::TransactionAccountStateInfo,
|
||||
transaction_error_metrics::TransactionErrorMetrics,
|
||||
},
|
||||
},
|
||||
assert_matches::assert_matches,
|
||||
|
@ -41,7 +42,6 @@ use {
|
|||
nonce_info::NonceFull,
|
||||
partitioned_rewards::TestPartitionedEpochRewards,
|
||||
rent_collector::RENT_EXEMPT_RENT_EPOCH,
|
||||
transaction_error_metrics::TransactionErrorMetrics,
|
||||
transaction_results::DurableNonceFee,
|
||||
},
|
||||
solana_logger,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
use {
|
||||
crate::svm::{
|
||||
account_overrides::AccountOverrides, account_rent_state::RentState,
|
||||
transaction_error_metrics::TransactionErrorMetrics,
|
||||
transaction_processor::TransactionProcessingCallback,
|
||||
},
|
||||
itertools::Itertools,
|
||||
|
@ -10,7 +11,6 @@ use {
|
|||
nonce_info::NonceFull,
|
||||
rent_collector::{RentCollector, RENT_EXEMPT_RENT_EPOCH},
|
||||
rent_debits::RentDebits,
|
||||
transaction_error_metrics::TransactionErrorMetrics,
|
||||
transaction_results::TransactionCheckResult,
|
||||
},
|
||||
solana_program_runtime::{
|
||||
|
|
|
@ -3,4 +3,5 @@ pub mod account_overrides;
|
|||
pub mod account_rent_state;
|
||||
pub mod runtime_config;
|
||||
pub mod transaction_account_state_info;
|
||||
pub mod transaction_error_metrics;
|
||||
pub mod transaction_processor;
|
||||
|
|
|
@ -2,6 +2,7 @@ use {
|
|||
crate::svm::{
|
||||
account_loader::load_accounts, account_overrides::AccountOverrides,
|
||||
runtime_config::RuntimeConfig, transaction_account_state_info::TransactionAccountStateInfo,
|
||||
transaction_error_metrics::TransactionErrorMetrics,
|
||||
},
|
||||
log::debug,
|
||||
percentage::Percentage,
|
||||
|
@ -9,7 +10,6 @@ use {
|
|||
accounts::{LoadedTransaction, TransactionLoadResult},
|
||||
accounts_file::MatchAccountOwnerError,
|
||||
rent_collector::RentCollector,
|
||||
transaction_error_metrics::TransactionErrorMetrics,
|
||||
transaction_results::{
|
||||
DurableNonceFee, TransactionCheckResult, TransactionExecutionDetails,
|
||||
TransactionExecutionResult,
|
||||
|
|
Loading…
Reference in New Issue