Create SVM folder as a placeholder for the relevant code (#34942)

This commit is contained in:
Pankaj Garg 2024-01-25 06:20:00 -08:00 committed by GitHub
parent b04765f8b5
commit b161f6ce08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 9 additions and 9 deletions

View File

@ -23,8 +23,8 @@ use {
compute_budget_processor::process_compute_budget_instructions, timings::ExecuteTimings,
},
solana_runtime::{
accounts::validate_fee_payer,
bank::{Bank, LoadAndExecuteTransactionsOutput},
svm::account_loader::validate_fee_payer,
transaction_batch::TransactionBatch,
},
solana_sdk::{

View File

@ -59,6 +59,7 @@ use {
},
stakes::{InvalidCacheEntryReason, Stakes, StakesCache, StakesEnum},
status_cache::{SlotDelta, StatusCache},
svm::account_loader::load_accounts,
transaction_batch::TransactionBatch,
},
byteorder::{ByteOrder, LittleEndian},
@ -282,7 +283,6 @@ pub struct BankRc {
pub(crate) bank_id_generator: Arc<AtomicU64>,
}
use crate::accounts::load_accounts;
#[cfg(RUSTC_WITH_SPECIALIZATION)]
use solana_frozen_abi::abi_example::AbiExample;

View File

@ -1,6 +1,6 @@
use {
super::Bank,
crate::accounts::account_rent_state::RentState,
crate::svm::account_rent_state::RentState,
log::{debug, warn},
solana_accounts_db::stake_rewards::RewardInfo,
solana_sdk::{

View File

@ -1,5 +1,5 @@
use {
crate::{accounts::account_rent_state::RentState, bank::Bank},
crate::{bank::Bank, svm::account_rent_state::RentState},
solana_sdk::{
account::ReadableAccount,
message::SanitizedMessage,

View File

@ -4,7 +4,6 @@
#[macro_use]
extern crate lazy_static;
pub mod accounts;
pub mod accounts_background_service;
pub mod bank;
pub mod bank_client;
@ -37,6 +36,7 @@ pub mod stake_weighted_timestamp;
pub mod stakes;
pub mod static_ids;
pub mod status_cache;
pub mod svm;
pub mod transaction_batch;
pub mod transaction_priority_details;

View File

@ -1,7 +1,5 @@
pub mod account_rent_state;
use {
crate::{accounts::account_rent_state::RentState, bank::RewardInterval},
crate::{bank::RewardInterval, svm::account_rent_state::RentState},
itertools::Itertools,
log::warn,
solana_accounts_db::{
@ -42,7 +40,7 @@ use {
};
#[allow(clippy::too_many_arguments)]
pub(super) fn load_accounts(
pub(crate) fn load_accounts(
accounts_db: &AccountsDb,
ancestors: &Ancestors,
txs: &[SanitizedTransaction],

2
runtime/src/svm/mod.rs Normal file
View File

@ -0,0 +1,2 @@
pub mod account_loader;
pub mod account_rent_state;