SVM: Move RentDebits from accounts-db to Solana SDK (#35135)
This commit is contained in:
parent
1b9dfd447e
commit
b9ee3b475b
|
@ -7,7 +7,6 @@ use {
|
|||
accounts_index::{IndexKey, ScanConfig, ScanError, ScanResult, ZeroLamport},
|
||||
ancestors::Ancestors,
|
||||
nonce_info::{NonceFull, NonceInfo},
|
||||
rent_debits::RentDebits,
|
||||
storable_accounts::StorableAccounts,
|
||||
transaction_results::TransactionExecutionResult,
|
||||
},
|
||||
|
@ -24,6 +23,7 @@ use {
|
|||
State as NonceState,
|
||||
},
|
||||
pubkey::Pubkey,
|
||||
rent_debits::RentDebits,
|
||||
slot_hashes::SlotHashes,
|
||||
transaction::{Result, SanitizedTransaction, TransactionAccountLocks, TransactionError},
|
||||
transaction_context::{IndexOfAccount, TransactionAccount},
|
||||
|
|
|
@ -35,7 +35,6 @@ pub mod partitioned_rewards;
|
|||
mod pubkey_bins;
|
||||
mod read_only_accounts_cache;
|
||||
pub mod rent_collector;
|
||||
pub mod rent_debits;
|
||||
mod rolling_bit_field;
|
||||
pub mod secondary_index;
|
||||
pub mod shared_buffer_reader;
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
use {
|
||||
crate::rent_debits::RentDebits,
|
||||
solana_sdk::{
|
||||
account::{AccountSharedData, ReadableAccount, WritableAccount},
|
||||
message::SanitizedMessage,
|
||||
nonce_account,
|
||||
pubkey::Pubkey,
|
||||
transaction::{self, TransactionError},
|
||||
transaction_context::TransactionAccount,
|
||||
},
|
||||
use solana_sdk::{
|
||||
account::{AccountSharedData, ReadableAccount, WritableAccount},
|
||||
message::SanitizedMessage,
|
||||
nonce_account,
|
||||
pubkey::Pubkey,
|
||||
rent_debits::RentDebits,
|
||||
transaction::{self, TransactionError},
|
||||
transaction_context::TransactionAccount,
|
||||
};
|
||||
|
||||
pub trait NonceInfo {
|
||||
|
|
|
@ -5,12 +5,10 @@
|
|||
)]
|
||||
pub use solana_sdk::inner_instruction::{InnerInstruction, InnerInstructionsList};
|
||||
use {
|
||||
crate::{
|
||||
nonce_info::{NonceFull, NonceInfo, NoncePartial},
|
||||
rent_debits::RentDebits,
|
||||
},
|
||||
crate::nonce_info::{NonceFull, NonceInfo, NoncePartial},
|
||||
solana_program_runtime::loaded_programs::LoadedProgramsForTxBatch,
|
||||
solana_sdk::{
|
||||
rent_debits::RentDebits,
|
||||
transaction::{self, TransactionError},
|
||||
transaction_context::TransactionReturnData,
|
||||
},
|
||||
|
|
|
@ -20,7 +20,6 @@ use {
|
|||
accounts_index::AccountSecondaryIndexes,
|
||||
accounts_update_notifier_interface::AccountsUpdateNotifier,
|
||||
epoch_accounts_hash::EpochAccountsHash,
|
||||
rent_debits::RentDebits,
|
||||
transaction_results::{
|
||||
TransactionExecutionDetails, TransactionExecutionResult, TransactionResults,
|
||||
},
|
||||
|
@ -49,6 +48,7 @@ use {
|
|||
genesis_config::GenesisConfig,
|
||||
hash::Hash,
|
||||
pubkey::Pubkey,
|
||||
rent_debits::RentDebits,
|
||||
saturating_add_assign,
|
||||
signature::{Keypair, Signature},
|
||||
timing,
|
||||
|
|
|
@ -212,10 +212,7 @@ pub(crate) mod tests {
|
|||
crossbeam_channel::unbounded,
|
||||
dashmap::DashMap,
|
||||
solana_account_decoder::parse_token::token_amount_to_ui_amount,
|
||||
solana_accounts_db::{
|
||||
nonce_info::{NonceFull, NoncePartial},
|
||||
rent_debits::RentDebits,
|
||||
},
|
||||
solana_accounts_db::nonce_info::{NonceFull, NoncePartial},
|
||||
solana_ledger::{genesis_utils::create_genesis_config, get_tmp_ledger_path_auto_delete},
|
||||
solana_runtime::bank::{Bank, TransactionBalancesSet},
|
||||
solana_sdk::{
|
||||
|
@ -227,6 +224,7 @@ pub(crate) mod tests {
|
|||
nonce::{self, state::DurableNonce},
|
||||
nonce_account,
|
||||
pubkey::Pubkey,
|
||||
rent_debits::RentDebits,
|
||||
signature::{Keypair, Signature, Signer},
|
||||
system_transaction,
|
||||
transaction::{
|
||||
|
|
|
@ -89,7 +89,6 @@ use {
|
|||
nonce_info::{NonceInfo, NoncePartial},
|
||||
partitioned_rewards::PartitionedEpochRewardsConfig,
|
||||
rent_collector::{CollectedInfo, RentCollector, RENT_EXEMPT_RENT_EPOCH},
|
||||
rent_debits::RentDebits,
|
||||
sorted_storages::SortedStorages,
|
||||
stake_rewards::StakeReward,
|
||||
storable_accounts::StorableAccounts,
|
||||
|
@ -143,6 +142,7 @@ use {
|
|||
precompiles::get_precompiles,
|
||||
pubkey::Pubkey,
|
||||
rent::RentDue,
|
||||
rent_debits::RentDebits,
|
||||
reward_info::RewardInfo,
|
||||
saturating_add_assign,
|
||||
signature::{Keypair, Signature},
|
||||
|
|
|
@ -92,6 +92,7 @@ pub mod program_utils;
|
|||
pub mod pubkey;
|
||||
pub mod quic;
|
||||
pub mod recent_blockhashes_account;
|
||||
pub mod rent_debits;
|
||||
pub mod reward_info;
|
||||
pub mod reward_type;
|
||||
pub mod rpc_port;
|
||||
|
|
|
@ -10,7 +10,6 @@ use {
|
|||
accounts::{LoadedTransaction, TransactionLoadResult, TransactionRent},
|
||||
nonce_info::NonceFull,
|
||||
rent_collector::{RentCollector, RENT_EXEMPT_RENT_EPOCH},
|
||||
rent_debits::RentDebits,
|
||||
transaction_results::TransactionCheckResult,
|
||||
},
|
||||
solana_program_runtime::{
|
||||
|
@ -29,6 +28,7 @@ use {
|
|||
nonce::State as NonceState,
|
||||
pubkey::Pubkey,
|
||||
rent::RentDue,
|
||||
rent_debits::RentDebits,
|
||||
saturating_add_assign,
|
||||
sysvar::{self, instructions::construct_instructions_data},
|
||||
transaction::{Result, SanitizedTransaction, TransactionError},
|
||||
|
|
Loading…
Reference in New Issue