Skip to content

Commit

Permalink
account_saver moved to runtime (anza-xyz#2773)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored and ray-kast committed Nov 27, 2024
1 parent 5b4c7a5 commit 633ff9d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions svm/src/account_saver.rs → runtime/src/account_saver.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
use {
crate::{
solana_sdk::{
account::AccountSharedData, nonce::state::DurableNonce, pubkey::Pubkey,
transaction_context::TransactionAccount,
},
solana_svm::{
rollback_accounts::RollbackAccounts,
transaction_processing_result::{
ProcessedTransaction, TransactionProcessingResult,
TransactionProcessingResultExtensions,
},
},
solana_sdk::{
account::AccountSharedData, nonce::state::DurableNonce, pubkey::Pubkey,
transaction_context::TransactionAccount,
},
solana_svm_transaction::svm_message::SVMMessage,
};

Expand Down Expand Up @@ -158,11 +158,6 @@ fn collect_accounts_for_failed_tx<'a, T: SVMMessage>(
mod tests {
use {
super::*,
crate::{
account_loader::{FeesOnlyTransaction, LoadedTransaction},
nonce_info::NonceInfo,
transaction_execution_result::{ExecutedTransaction, TransactionExecutionDetails},
},
solana_compute_budget::compute_budget_limits::ComputeBudgetLimits,
solana_sdk::{
account::{AccountSharedData, ReadableAccount},
Expand All @@ -181,6 +176,11 @@ mod tests {
system_instruction, system_program,
transaction::{Result, SanitizedTransaction, Transaction, TransactionError},
},
solana_svm::{
account_loader::{FeesOnlyTransaction, LoadedTransaction},
nonce_info::NonceInfo,
transaction_execution_result::{ExecutedTransaction, TransactionExecutionDetails},
},
std::collections::HashMap,
};

Expand Down
2 changes: 1 addition & 1 deletion runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
//! already been signed and verified.
use {
crate::{
account_saver::collect_accounts_to_store,
bank::{
builtins::{BuiltinPrototype, BUILTINS, STATELESS_BUILTINS},
metrics::*,
Expand Down Expand Up @@ -154,7 +155,6 @@ use {
solana_svm::{
account_loader::{collect_rent_from_account, LoadedTransaction},
account_overrides::AccountOverrides,
account_saver::collect_accounts_to_store,
transaction_commit_result::{CommittedTransaction, TransactionCommitResult},
transaction_error_metrics::TransactionErrorMetrics,
transaction_execution_result::{
Expand Down
1 change: 1 addition & 0 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#[macro_use]
extern crate lazy_static;

mod account_saver;
pub mod accounts_background_service;
pub mod bank;
pub mod bank_client;
Expand Down
1 change: 0 additions & 1 deletion svm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

pub mod account_loader;
pub mod account_overrides;
pub mod account_saver;
pub mod message_processor;
pub mod nonce_info;
pub mod program_loader;
Expand Down

0 comments on commit 633ff9d

Please sign in to comment.