diff --git a/Cargo.lock b/Cargo.lock index bc446c70bb6d85..955b3cf5c0908f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9989,12 +9989,17 @@ dependencies = [ "log", "qualifier_attr", "scopeguard", + "solana-clock", + "solana-keypair", "solana-ledger", "solana-logger", + "solana-pubkey", "solana-runtime", "solana-runtime-transaction", - "solana-sdk", + "solana-system-transaction", "solana-timings", + "solana-transaction", + "solana-transaction-error", "solana-unified-scheduler-logic", "static_assertions", "vec_extract_if_polyfill", diff --git a/programs/sbf/Cargo.lock b/programs/sbf/Cargo.lock index a75be35eab0470..23f72f121cd00f 100644 --- a/programs/sbf/Cargo.lock +++ b/programs/sbf/Cargo.lock @@ -8315,10 +8315,12 @@ dependencies = [ "qualifier_attr", "scopeguard", "solana-ledger", + "solana-pubkey", "solana-runtime", "solana-runtime-transaction", - "solana-sdk", "solana-timings", + "solana-transaction", + "solana-transaction-error", "solana-unified-scheduler-logic", "static_assertions", "vec_extract_if_polyfill", diff --git a/svm/examples/Cargo.lock b/svm/examples/Cargo.lock index 5ba86432eba1c9..7e788ab142b350 100644 --- a/svm/examples/Cargo.lock +++ b/svm/examples/Cargo.lock @@ -7651,10 +7651,12 @@ dependencies = [ "qualifier_attr", "scopeguard", "solana-ledger", + "solana-pubkey", "solana-runtime", "solana-runtime-transaction", - "solana-sdk", "solana-timings", + "solana-transaction", + "solana-transaction-error", "solana-unified-scheduler-logic", "static_assertions", "vec_extract_if_polyfill", diff --git a/unified-scheduler-pool/Cargo.toml b/unified-scheduler-pool/Cargo.toml index e1b17308633798..3b0a0df66d0ec1 100644 --- a/unified-scheduler-pool/Cargo.toml +++ b/unified-scheduler-pool/Cargo.toml @@ -18,10 +18,12 @@ log = { workspace = true } qualifier_attr = { workspace = true } scopeguard = { workspace = true } solana-ledger = { workspace = true } +solana-pubkey = { workspace = true } solana-runtime = { workspace = true } solana-runtime-transaction = { workspace = true } -solana-sdk = { workspace = true } solana-timings = { workspace = true } +solana-transaction = { workspace = true } +solana-transaction-error = { workspace = true } solana-unified-scheduler-logic = { workspace = true } static_assertions = { workspace = true } vec_extract_if_polyfill = { workspace = true } @@ -29,8 +31,11 @@ vec_extract_if_polyfill = { workspace = true } [dev-dependencies] assert_matches = { workspace = true } lazy_static = { workspace = true } +solana-clock = { workspace = true } +solana-keypair = { workspace = true } solana-logger = { workspace = true } solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } +solana-system-transaction = { workspace = true } [features] dev-context-only-utils = [] diff --git a/unified-scheduler-pool/src/lib.rs b/unified-scheduler-pool/src/lib.rs index f22cb404d1fe38..480548a088dd39 100644 --- a/unified-scheduler-pool/src/lib.rs +++ b/unified-scheduler-pool/src/lib.rs @@ -31,10 +31,9 @@ use { vote_sender_types::ReplayVoteSender, }, solana_runtime_transaction::runtime_transaction::RuntimeTransaction, - solana_sdk::{ - pubkey::Pubkey, - transaction::{Result, SanitizedTransaction, TransactionError}, - }, + solana_pubkey::Pubkey, + solana_transaction::sanitized::SanitizedTransaction, + solana_transaction_error::{TransactionResult as Result, TransactionError}, solana_timings::ExecuteTimings, solana_unified_scheduler_logic::{SchedulingStateMachine, Task, UsageQueue}, static_assertions::const_assert_eq, @@ -1480,13 +1479,12 @@ mod tests { installed_scheduler_pool::{BankWithScheduler, SchedulingContext}, prioritization_fee_cache::PrioritizationFeeCache, }, - solana_sdk::{ - clock::{Slot, MAX_PROCESSING_AGE}, - pubkey::Pubkey, - signer::keypair::Keypair, - system_transaction, - transaction::{SanitizedTransaction, TransactionError}, - }, + solana_clock::{Slot, MAX_PROCESSING_AGE}, + solana_pubkey::Pubkey, + solana_keypair::Keypair, + solana_system_transaction as system_transaction, + solana_transaction::sanitized::SanitizedTransaction + solana_transaction_error::TransactionError, solana_timings::ExecuteTimingType, std::{ sync::{Arc, RwLock}, @@ -1787,7 +1785,7 @@ mod tests { let tx_before_stale = RuntimeTransaction::from_transaction_for_tests(system_transaction::transfer( &mint_keypair, - &solana_sdk::pubkey::new_rand(), + &solana_pubkey::new_rand(), 2, genesis_config.hash(), )); @@ -1799,7 +1797,7 @@ mod tests { let tx_after_stale = RuntimeTransaction::from_transaction_for_tests(system_transaction::transfer( &mint_keypair, - &solana_sdk::pubkey::new_rand(), + &solana_pubkey::new_rand(), 2, genesis_config.hash(), )); @@ -1907,7 +1905,7 @@ mod tests { let tx_before_stale = RuntimeTransaction::from_transaction_for_tests(system_transaction::transfer( &mint_keypair, - &solana_sdk::pubkey::new_rand(), + &solana_pubkey::new_rand(), 2, genesis_config.hash(), )); @@ -1920,7 +1918,7 @@ mod tests { let tx_after_stale = RuntimeTransaction::from_transaction_for_tests(system_transaction::transfer( &mint_keypair, - &solana_sdk::pubkey::new_rand(), + &solana_pubkey::new_rand(), 2, genesis_config.hash(), )); @@ -1970,7 +1968,7 @@ mod tests { let tx = RuntimeTransaction::from_transaction_for_tests(system_transaction::transfer( &mint_keypair, - &solana_sdk::pubkey::new_rand(), + &solana_pubkey::new_rand(), 2, genesis_config.hash(), )); @@ -2090,7 +2088,7 @@ mod tests { for i in 0..MAX_TASK_COUNT { let tx = RuntimeTransaction::from_transaction_for_tests(system_transaction::transfer( &mint_keypair, - &solana_sdk::pubkey::new_rand(), + &solana_pubkey::new_rand(), 2, genesis_config.hash(), )); @@ -2241,7 +2239,7 @@ mod tests { } = create_genesis_config(10_000); let tx0 = RuntimeTransaction::from_transaction_for_tests(system_transaction::transfer( &mint_keypair, - &solana_sdk::pubkey::new_rand(), + &solana_pubkey::new_rand(), 2, genesis_config.hash(), )); @@ -2301,7 +2299,7 @@ mod tests { let unfunded_keypair = Keypair::new(); let bad_tx = RuntimeTransaction::from_transaction_for_tests(system_transaction::transfer( &unfunded_keypair, - &solana_sdk::pubkey::new_rand(), + &solana_pubkey::new_rand(), 2, genesis_config.hash(), )); @@ -2313,7 +2311,7 @@ mod tests { let good_tx_after_bad_tx = RuntimeTransaction::from_transaction_for_tests(system_transaction::transfer( &mint_keypair, - &solana_sdk::pubkey::new_rand(), + &solana_pubkey::new_rand(), 3, genesis_config.hash(), )); @@ -2431,7 +2429,7 @@ mod tests { // Use 2 non-conflicting txes to exercise the channel disconnected case as well. let tx = RuntimeTransaction::from_transaction_for_tests(system_transaction::transfer( &Keypair::new(), - &solana_sdk::pubkey::new_rand(), + &solana_pubkey::new_rand(), 1, genesis_config.hash(), )); @@ -2504,7 +2502,7 @@ mod tests { for i in 0..10 { let tx = RuntimeTransaction::from_transaction_for_tests(system_transaction::transfer( &mint_keypair, - &solana_sdk::pubkey::new_rand(), + &solana_pubkey::new_rand(), 2, genesis_config.hash(), )); @@ -2561,13 +2559,13 @@ mod tests { // tx0 and tx1 is definitely conflicting to write-lock the mint address let tx0 = RuntimeTransaction::from_transaction_for_tests(system_transaction::transfer( &mint_keypair, - &solana_sdk::pubkey::new_rand(), + &solana_pubkey::new_rand(), 2, genesis_config.hash(), )); let tx1 = RuntimeTransaction::from_transaction_for_tests(system_transaction::transfer( &mint_keypair, - &solana_sdk::pubkey::new_rand(), + &solana_pubkey::new_rand(), 2, genesis_config.hash(), )); @@ -2653,7 +2651,7 @@ mod tests { let dummy_tx = RuntimeTransaction::from_transaction_for_tests(system_transaction::transfer( &mint_keypair, - &solana_sdk::pubkey::new_rand(), + &solana_pubkey::new_rand(), 2, genesis_config.hash(), )); @@ -2831,7 +2829,7 @@ mod tests { let very_old_valid_tx = RuntimeTransaction::from_transaction_for_tests(system_transaction::transfer( &mint_keypair, - &solana_sdk::pubkey::new_rand(), + &solana_pubkey::new_rand(), 2, genesis_config.hash(), )); @@ -2921,7 +2919,7 @@ mod tests { let mut tx = system_transaction::transfer( mint_keypair, - &solana_sdk::pubkey::new_rand(), + &solana_pubkey::new_rand(), 2, genesis_config.hash(), );