20
20
solana_ledger:: blockstore_processor:: {
21
21
execute_batch, TransactionBatchWithIndexes , TransactionStatusSender ,
22
22
} ,
23
+ solana_pubkey:: Pubkey ,
23
24
solana_runtime:: {
24
25
installed_scheduler_pool:: {
25
26
initialized_result_with_timings, InstalledScheduler , InstalledSchedulerBox ,
31
32
vote_sender_types:: ReplayVoteSender ,
32
33
} ,
33
34
solana_runtime_transaction:: runtime_transaction:: RuntimeTransaction ,
34
- solana_sdk:: {
35
- pubkey:: Pubkey ,
36
- transaction:: { Result , SanitizedTransaction , TransactionError } ,
37
- } ,
38
35
solana_timings:: ExecuteTimings ,
36
+ solana_transaction:: sanitized:: SanitizedTransaction ,
37
+ solana_transaction_error:: { TransactionError , TransactionResult as Result } ,
39
38
solana_unified_scheduler_logic:: { SchedulingStateMachine , Task , UsageQueue } ,
40
39
static_assertions:: const_assert_eq,
41
40
std:: {
@@ -1473,21 +1472,20 @@ mod tests {
1473
1472
super :: * ,
1474
1473
crate :: sleepless_testing,
1475
1474
assert_matches:: assert_matches,
1475
+ solana_clock:: { Slot , MAX_PROCESSING_AGE } ,
1476
+ solana_keypair:: Keypair ,
1477
+ solana_pubkey:: Pubkey ,
1476
1478
solana_runtime:: {
1477
1479
bank:: Bank ,
1478
1480
bank_forks:: BankForks ,
1479
1481
genesis_utils:: { create_genesis_config, GenesisConfigInfo } ,
1480
1482
installed_scheduler_pool:: { BankWithScheduler , SchedulingContext } ,
1481
1483
prioritization_fee_cache:: PrioritizationFeeCache ,
1482
1484
} ,
1483
- solana_sdk:: {
1484
- clock:: { Slot , MAX_PROCESSING_AGE } ,
1485
- pubkey:: Pubkey ,
1486
- signer:: keypair:: Keypair ,
1487
- system_transaction,
1488
- transaction:: { SanitizedTransaction , TransactionError } ,
1489
- } ,
1485
+ solana_system_transaction as system_transaction,
1490
1486
solana_timings:: ExecuteTimingType ,
1487
+ solana_transaction:: sanitized:: SanitizedTransaction ,
1488
+ solana_transaction_error:: TransactionError ,
1491
1489
std:: {
1492
1490
sync:: { Arc , RwLock } ,
1493
1491
thread:: JoinHandle ,
@@ -1787,7 +1785,7 @@ mod tests {
1787
1785
let tx_before_stale =
1788
1786
RuntimeTransaction :: from_transaction_for_tests ( system_transaction:: transfer (
1789
1787
& mint_keypair,
1790
- & solana_sdk :: pubkey :: new_rand ( ) ,
1788
+ & solana_pubkey :: new_rand ( ) ,
1791
1789
2 ,
1792
1790
genesis_config. hash ( ) ,
1793
1791
) ) ;
@@ -1799,7 +1797,7 @@ mod tests {
1799
1797
let tx_after_stale =
1800
1798
RuntimeTransaction :: from_transaction_for_tests ( system_transaction:: transfer (
1801
1799
& mint_keypair,
1802
- & solana_sdk :: pubkey :: new_rand ( ) ,
1800
+ & solana_pubkey :: new_rand ( ) ,
1803
1801
2 ,
1804
1802
genesis_config. hash ( ) ,
1805
1803
) ) ;
@@ -1907,7 +1905,7 @@ mod tests {
1907
1905
let tx_before_stale =
1908
1906
RuntimeTransaction :: from_transaction_for_tests ( system_transaction:: transfer (
1909
1907
& mint_keypair,
1910
- & solana_sdk :: pubkey :: new_rand ( ) ,
1908
+ & solana_pubkey :: new_rand ( ) ,
1911
1909
2 ,
1912
1910
genesis_config. hash ( ) ,
1913
1911
) ) ;
@@ -1920,7 +1918,7 @@ mod tests {
1920
1918
let tx_after_stale =
1921
1919
RuntimeTransaction :: from_transaction_for_tests ( system_transaction:: transfer (
1922
1920
& mint_keypair,
1923
- & solana_sdk :: pubkey :: new_rand ( ) ,
1921
+ & solana_pubkey :: new_rand ( ) ,
1924
1922
2 ,
1925
1923
genesis_config. hash ( ) ,
1926
1924
) ) ;
@@ -1970,7 +1968,7 @@ mod tests {
1970
1968
1971
1969
let tx = RuntimeTransaction :: from_transaction_for_tests ( system_transaction:: transfer (
1972
1970
& mint_keypair,
1973
- & solana_sdk :: pubkey :: new_rand ( ) ,
1971
+ & solana_pubkey :: new_rand ( ) ,
1974
1972
2 ,
1975
1973
genesis_config. hash ( ) ,
1976
1974
) ) ;
@@ -2090,7 +2088,7 @@ mod tests {
2090
2088
for i in 0 ..MAX_TASK_COUNT {
2091
2089
let tx = RuntimeTransaction :: from_transaction_for_tests ( system_transaction:: transfer (
2092
2090
& mint_keypair,
2093
- & solana_sdk :: pubkey :: new_rand ( ) ,
2091
+ & solana_pubkey :: new_rand ( ) ,
2094
2092
2 ,
2095
2093
genesis_config. hash ( ) ,
2096
2094
) ) ;
@@ -2241,7 +2239,7 @@ mod tests {
2241
2239
} = create_genesis_config ( 10_000 ) ;
2242
2240
let tx0 = RuntimeTransaction :: from_transaction_for_tests ( system_transaction:: transfer (
2243
2241
& mint_keypair,
2244
- & solana_sdk :: pubkey :: new_rand ( ) ,
2242
+ & solana_pubkey :: new_rand ( ) ,
2245
2243
2 ,
2246
2244
genesis_config. hash ( ) ,
2247
2245
) ) ;
@@ -2301,7 +2299,7 @@ mod tests {
2301
2299
let unfunded_keypair = Keypair :: new ( ) ;
2302
2300
let bad_tx = RuntimeTransaction :: from_transaction_for_tests ( system_transaction:: transfer (
2303
2301
& unfunded_keypair,
2304
- & solana_sdk :: pubkey :: new_rand ( ) ,
2302
+ & solana_pubkey :: new_rand ( ) ,
2305
2303
2 ,
2306
2304
genesis_config. hash ( ) ,
2307
2305
) ) ;
@@ -2313,7 +2311,7 @@ mod tests {
2313
2311
let good_tx_after_bad_tx =
2314
2312
RuntimeTransaction :: from_transaction_for_tests ( system_transaction:: transfer (
2315
2313
& mint_keypair,
2316
- & solana_sdk :: pubkey :: new_rand ( ) ,
2314
+ & solana_pubkey :: new_rand ( ) ,
2317
2315
3 ,
2318
2316
genesis_config. hash ( ) ,
2319
2317
) ) ;
@@ -2431,7 +2429,7 @@ mod tests {
2431
2429
// Use 2 non-conflicting txes to exercise the channel disconnected case as well.
2432
2430
let tx = RuntimeTransaction :: from_transaction_for_tests ( system_transaction:: transfer (
2433
2431
& Keypair :: new ( ) ,
2434
- & solana_sdk :: pubkey :: new_rand ( ) ,
2432
+ & solana_pubkey :: new_rand ( ) ,
2435
2433
1 ,
2436
2434
genesis_config. hash ( ) ,
2437
2435
) ) ;
@@ -2504,7 +2502,7 @@ mod tests {
2504
2502
for i in 0 ..10 {
2505
2503
let tx = RuntimeTransaction :: from_transaction_for_tests ( system_transaction:: transfer (
2506
2504
& mint_keypair,
2507
- & solana_sdk :: pubkey :: new_rand ( ) ,
2505
+ & solana_pubkey :: new_rand ( ) ,
2508
2506
2 ,
2509
2507
genesis_config. hash ( ) ,
2510
2508
) ) ;
@@ -2561,13 +2559,13 @@ mod tests {
2561
2559
// tx0 and tx1 is definitely conflicting to write-lock the mint address
2562
2560
let tx0 = RuntimeTransaction :: from_transaction_for_tests ( system_transaction:: transfer (
2563
2561
& mint_keypair,
2564
- & solana_sdk :: pubkey :: new_rand ( ) ,
2562
+ & solana_pubkey :: new_rand ( ) ,
2565
2563
2 ,
2566
2564
genesis_config. hash ( ) ,
2567
2565
) ) ;
2568
2566
let tx1 = RuntimeTransaction :: from_transaction_for_tests ( system_transaction:: transfer (
2569
2567
& mint_keypair,
2570
- & solana_sdk :: pubkey :: new_rand ( ) ,
2568
+ & solana_pubkey :: new_rand ( ) ,
2571
2569
2 ,
2572
2570
genesis_config. hash ( ) ,
2573
2571
) ) ;
@@ -2653,7 +2651,7 @@ mod tests {
2653
2651
let dummy_tx =
2654
2652
RuntimeTransaction :: from_transaction_for_tests ( system_transaction:: transfer (
2655
2653
& mint_keypair,
2656
- & solana_sdk :: pubkey :: new_rand ( ) ,
2654
+ & solana_pubkey :: new_rand ( ) ,
2657
2655
2 ,
2658
2656
genesis_config. hash ( ) ,
2659
2657
) ) ;
@@ -2831,7 +2829,7 @@ mod tests {
2831
2829
let very_old_valid_tx =
2832
2830
RuntimeTransaction :: from_transaction_for_tests ( system_transaction:: transfer (
2833
2831
& mint_keypair,
2834
- & solana_sdk :: pubkey :: new_rand ( ) ,
2832
+ & solana_pubkey :: new_rand ( ) ,
2835
2833
2 ,
2836
2834
genesis_config. hash ( ) ,
2837
2835
) ) ;
@@ -2921,7 +2919,7 @@ mod tests {
2921
2919
2922
2920
let mut tx = system_transaction:: transfer (
2923
2921
mint_keypair,
2924
- & solana_sdk :: pubkey :: new_rand ( ) ,
2922
+ & solana_pubkey :: new_rand ( ) ,
2925
2923
2 ,
2926
2924
genesis_config. hash ( ) ,
2927
2925
) ;
0 commit comments