Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,6 @@ solana-rayon-threadlimit = { path = "rayon-threadlimit", version = "=3.0.0" }
solana-remote-wallet = { path = "remote-wallet", version = "=3.0.0", default-features = false }
solana-rent = "2.2.1"
solana-rent-collector = "2.2.1"
solana-rent-debits = "2.2.1"
solana-reward-info = "2.2.1"
solana-rpc = { path = "rpc", version = "=3.0.0" }
solana-rpc-client = { path = "rpc-client", version = "=3.0.0", default-features = false }
Expand Down
1 change: 0 additions & 1 deletion feature-set/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ impl FeatureSet {
.is_active(&fix_alt_bn128_multiplication_input_length::id()),
loosen_cpi_size_restriction: self.is_active(&loosen_cpi_size_restriction::id()),
increase_tx_account_lock_limit: self.is_active(&increase_tx_account_lock_limit::id()),
disable_rent_fees_collection: self.is_active(&disable_rent_fees_collection::id()),
enable_extend_program_checked: self.is_active(&enable_extend_program_checked::id()),
formalize_loaded_transaction_data_size: self
.is_active(&formalize_loaded_transaction_data_size::id()),
Expand Down
6 changes: 3 additions & 3 deletions ledger/src/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3441,9 +3441,9 @@ pub mod tests {
assert_eq!(bank.get_balance(&keypair1.pubkey()), 3);
}

#[test_case(true, true; "rent_collected")]
#[test_case(false, true; "rent_not_collected")]
#[test_case(true, false; "rent_not-collected_part_rent_disabled")]
#[test_case(true, true; "fee_payer_in_rent_partition")]
#[test_case(false, true; "fee_payer_not_in_rent_partition")]
#[test_case(true, false; "fee_payer_in_rent_partition-partitioned_rent_disabled")]
fn test_transaction_result_does_not_affect_bankhash(
fee_payer_in_rent_partition: bool,
should_run_partitioned_rent_collection: bool,
Expand Down
12 changes: 0 additions & 12 deletions programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ solana-nonce-account = { workspace = true }
solana-program-option = { workspace = true }
solana-program-runtime = { workspace = true }
solana-rent = { workspace = true }
solana-rent-debits = { workspace = true }
solana-rpc = { path = ".", features = ["dev-context-only-utils"] }
solana-runtime = { workspace = true, features = ["dev-context-only-utils"] }
solana-runtime-transaction = { workspace = true, features = [
Expand Down
21 changes: 1 addition & 20 deletions rpc/src/transaction_status_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ impl TransactionStatusService {
return_data,
executed_units,
fee_details,
rent_debits,
..
} = committed_tx;

Expand All @@ -175,18 +174,7 @@ impl TransactionStatusService {

let pre_token_balances = Some(pre_token_balances);
let post_token_balances = Some(post_token_balances);
let rewards = Some(
rent_debits
.into_unordered_rewards_iter()
.map(|(pubkey, reward_info)| Reward {
pubkey: pubkey.to_string(),
lamports: reward_info.lamports,
post_balance: reward_info.post_balance,
reward_type: Some(reward_info.reward_type),
commission: reward_info.commission,
})
.collect(),
);
let rewards = Some(vec![]);
Comment thread
buffalojoec marked this conversation as resolved.
let loaded_addresses = transaction.get_loaded_addresses();
let mut transaction_status_meta = TransactionStatusMeta {
status,
Expand Down Expand Up @@ -346,7 +334,6 @@ pub(crate) mod tests {
solana_nonce::{self as nonce, state::DurableNonce},
solana_nonce_account as nonce_account,
solana_pubkey::Pubkey,
solana_rent_debits::RentDebits,
solana_runtime::bank::{Bank, TransactionBalancesSet},
solana_signature::Signature,
solana_signer::Signer,
Expand Down Expand Up @@ -443,7 +430,6 @@ pub(crate) mod tests {
.unwrap();

let expected_transaction = transaction.clone();
let pubkey = Pubkey::new_unique();

let mut nonce_account = nonce_account::create_account(1).into_inner();
let durable_nonce = DurableNonce::from_blockhash(&Hash::new_from_array([42u8; 32]));
Expand All @@ -454,17 +440,13 @@ pub(crate) mod tests {
))
.unwrap();

let mut rent_debits = RentDebits::default();
rent_debits.insert(&pubkey, 123, 456);

let commit_result = Ok(CommittedTransaction {
status: Ok(()),
log_messages: None,
inner_instructions: None,
return_data: None,
executed_units: 0,
fee_details: FeeDetails::default(),
rent_debits,
loaded_account_stats: TransactionLoadedAccountsStats::default(),
});

Expand Down Expand Up @@ -591,7 +573,6 @@ pub(crate) mod tests {
return_data: None,
executed_units: 0,
fee_details: FeeDetails::default(),
rent_debits: RentDebits::default(),
loaded_account_stats: TransactionLoadedAccountsStats::default(),
});

Expand Down
2 changes: 0 additions & 2 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ solana-pubkey = { workspace = true, features = ["rand"] }
solana-rayon-threadlimit = { workspace = true }
solana-rent = { workspace = true }
solana-rent-collector = { workspace = true, features = ["serde"] }
solana-rent-debits = { workspace = true }
solana-reward-info = { workspace = true }
solana-runtime-transaction = { workspace = true }
solana-sdk-ids = { workspace = true }
Expand Down Expand Up @@ -192,7 +191,6 @@ rand_chacha = { workspace = true }
solana-accounts-db = { workspace = true, features = ["dev-context-only-utils"] }
solana-builtins = { workspace = true, features = ["dev-context-only-utils"] }
solana-logger = { workspace = true }
solana-rent-debits = { workspace = true, features = ["dev-context-only-utils"] }
# See order-crates-for-publishing.py for using this unusual `path = "."`
solana-runtime = { path = ".", features = ["dev-context-only-utils"] }
solana-runtime-transaction = { workspace = true, features = [
Expand Down
3 changes: 1 addition & 2 deletions runtime/benches/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ fn bench_accounts_create(bencher: &mut Bencher) {

#[bench]
fn bench_accounts_squash(bencher: &mut Bencher) {
let (mut genesis_config, _) = create_genesis_config(100_000);
genesis_config.rent.burn_percent = 100; // Avoid triggering an assert in Bank::distribute_rent_to_validators()
let (genesis_config, _) = create_genesis_config(100_000);
let mut prev_bank = Arc::new(Bank::new_with_paths_for_benches(
&genesis_config,
vec![PathBuf::from("bench_a1")],
Expand Down
11 changes: 0 additions & 11 deletions runtime/src/account_saver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ mod tests {
},
solana_nonce_account as nonce_account,
solana_program_runtime::execution_budget::SVMTransactionExecutionBudget,
solana_rent_debits::RentDebits,
solana_sdk_ids::native_loader,
solana_signer::{signers::Signers, Signer},
solana_svm::{
Expand Down Expand Up @@ -280,8 +279,6 @@ mod tests {
fee_details: FeeDetails::default(),
rollback_accounts: RollbackAccounts::default(),
compute_budget: SVMTransactionExecutionBudget::default(),
rent: 0,
rent_debits: RentDebits::default(),
loaded_accounts_data_size: 0,
};

Expand All @@ -291,8 +288,6 @@ mod tests {
fee_details: FeeDetails::default(),
rollback_accounts: RollbackAccounts::default(),
compute_budget: SVMTransactionExecutionBudget::default(),
rent: 0,
rent_debits: RentDebits::default(),
loaded_accounts_data_size: 0,
};

Expand Down Expand Up @@ -354,8 +349,6 @@ mod tests {
fee_payer_account: from_account_pre.clone(),
},
compute_budget: SVMTransactionExecutionBudget::default(),
rent: 0,
rent_debits: RentDebits::default(),
loaded_accounts_data_size: 0,
};

Expand Down Expand Up @@ -449,8 +442,6 @@ mod tests {
fee_payer_account: from_account_pre.clone(),
},
compute_budget: SVMTransactionExecutionBudget::default(),
rent: 0,
rent_debits: RentDebits::default(),
loaded_accounts_data_size: 0,
};

Expand Down Expand Up @@ -557,8 +548,6 @@ mod tests {
nonce: nonce.clone(),
},
compute_budget: SVMTransactionExecutionBudget::default(),
rent: 0,
rent_debits: RentDebits::default(),
loaded_accounts_data_size: 0,
};

Expand Down
Loading
Loading