|
@@ -5484,9 +5484,9 @@ pub mod tests {
|
|
|
for x in 0..num_entries {
|
|
for x in 0..num_entries {
|
|
|
let transaction = Transaction::new_with_compiled_instructions(
|
|
let transaction = Transaction::new_with_compiled_instructions(
|
|
|
&[&Keypair::new()],
|
|
&[&Keypair::new()],
|
|
|
- &[solana_sdk::pubkey::new_rand()],
|
|
|
|
|
|
|
+ &[solana_pubkey::new_rand()],
|
|
|
Hash::default(),
|
|
Hash::default(),
|
|
|
- vec![solana_sdk::pubkey::new_rand()],
|
|
|
|
|
|
|
+ vec![solana_pubkey::new_rand()],
|
|
|
vec![CompiledInstruction::new(1, &(), vec![0])],
|
|
vec![CompiledInstruction::new(1, &(), vec![0])],
|
|
|
);
|
|
);
|
|
|
entries.push(next_entry_mut(&mut Hash::default(), 0, vec![transaction]));
|
|
entries.push(next_entry_mut(&mut Hash::default(), 0, vec![transaction]));
|
|
@@ -9108,8 +9108,8 @@ pub mod tests {
|
|
|
.put_protobuf((signature2, lowest_available_slot), &status)
|
|
.put_protobuf((signature2, lowest_available_slot), &status)
|
|
|
.unwrap();
|
|
.unwrap();
|
|
|
|
|
|
|
|
- let address0 = solana_sdk::pubkey::new_rand();
|
|
|
|
|
- let address1 = solana_sdk::pubkey::new_rand();
|
|
|
|
|
|
|
+ let address0 = solana_pubkey::new_rand();
|
|
|
|
|
+ let address1 = solana_pubkey::new_rand();
|
|
|
blockstore
|
|
blockstore
|
|
|
.write_transaction_status(
|
|
.write_transaction_status(
|
|
|
lowest_cleanup_slot,
|
|
lowest_cleanup_slot,
|
|
@@ -9481,8 +9481,8 @@ pub mod tests {
|
|
|
let ledger_path = get_tmp_ledger_path_auto_delete!();
|
|
let ledger_path = get_tmp_ledger_path_auto_delete!();
|
|
|
let blockstore = Blockstore::open(ledger_path.path()).unwrap();
|
|
let blockstore = Blockstore::open(ledger_path.path()).unwrap();
|
|
|
|
|
|
|
|
- let address0 = solana_sdk::pubkey::new_rand();
|
|
|
|
|
- let address1 = solana_sdk::pubkey::new_rand();
|
|
|
|
|
|
|
+ let address0 = solana_pubkey::new_rand();
|
|
|
|
|
+ let address1 = solana_pubkey::new_rand();
|
|
|
|
|
|
|
|
let slot1 = 1;
|
|
let slot1 = 1;
|
|
|
for x in 1..5 {
|
|
for x in 1..5 {
|
|
@@ -9577,7 +9577,7 @@ pub mod tests {
|
|
|
&[&Keypair::new()],
|
|
&[&Keypair::new()],
|
|
|
&[*address],
|
|
&[*address],
|
|
|
Hash::default(),
|
|
Hash::default(),
|
|
|
- vec![solana_sdk::pubkey::new_rand()],
|
|
|
|
|
|
|
+ vec![solana_pubkey::new_rand()],
|
|
|
vec![CompiledInstruction::new(1, &(), vec![0])],
|
|
vec![CompiledInstruction::new(1, &(), vec![0])],
|
|
|
);
|
|
);
|
|
|
entries.push(next_entry_mut(&mut Hash::default(), 0, vec![transaction]));
|
|
entries.push(next_entry_mut(&mut Hash::default(), 0, vec![transaction]));
|
|
@@ -9587,8 +9587,8 @@ pub mod tests {
|
|
|
entries
|
|
entries
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- let address0 = solana_sdk::pubkey::new_rand();
|
|
|
|
|
- let address1 = solana_sdk::pubkey::new_rand();
|
|
|
|
|
|
|
+ let address0 = solana_pubkey::new_rand();
|
|
|
|
|
+ let address1 = solana_pubkey::new_rand();
|
|
|
|
|
|
|
|
for slot in 2..=8 {
|
|
for slot in 2..=8 {
|
|
|
let entries = make_slot_entries_with_transaction_addresses(&[
|
|
let entries = make_slot_entries_with_transaction_addresses(&[
|
|
@@ -10047,9 +10047,9 @@ pub mod tests {
|
|
|
for x in 0..4 {
|
|
for x in 0..4 {
|
|
|
let transaction = Transaction::new_with_compiled_instructions(
|
|
let transaction = Transaction::new_with_compiled_instructions(
|
|
|
&[&Keypair::new()],
|
|
&[&Keypair::new()],
|
|
|
- &[solana_sdk::pubkey::new_rand()],
|
|
|
|
|
|
|
+ &[solana_pubkey::new_rand()],
|
|
|
Hash::default(),
|
|
Hash::default(),
|
|
|
- vec![solana_sdk::pubkey::new_rand()],
|
|
|
|
|
|
|
+ vec![solana_pubkey::new_rand()],
|
|
|
vec![CompiledInstruction::new(1, &(), vec![0])],
|
|
vec![CompiledInstruction::new(1, &(), vec![0])],
|
|
|
);
|
|
);
|
|
|
let status = TransactionStatusMeta {
|
|
let status = TransactionStatusMeta {
|
|
@@ -10088,9 +10088,9 @@ pub mod tests {
|
|
|
transactions.push(
|
|
transactions.push(
|
|
|
Transaction::new_with_compiled_instructions(
|
|
Transaction::new_with_compiled_instructions(
|
|
|
&[&Keypair::new()],
|
|
&[&Keypair::new()],
|
|
|
- &[solana_sdk::pubkey::new_rand()],
|
|
|
|
|
|
|
+ &[solana_pubkey::new_rand()],
|
|
|
Hash::default(),
|
|
Hash::default(),
|
|
|
- vec![solana_sdk::pubkey::new_rand()],
|
|
|
|
|
|
|
+ vec![solana_pubkey::new_rand()],
|
|
|
vec![CompiledInstruction::new(1, &(), vec![0])],
|
|
vec![CompiledInstruction::new(1, &(), vec![0])],
|
|
|
)
|
|
)
|
|
|
.into(),
|
|
.into(),
|
|
@@ -10775,7 +10775,7 @@ pub mod tests {
|
|
|
|
|
|
|
|
let rewards: Rewards = (0..100)
|
|
let rewards: Rewards = (0..100)
|
|
|
.map(|i| Reward {
|
|
.map(|i| Reward {
|
|
|
- pubkey: solana_sdk::pubkey::new_rand().to_string(),
|
|
|
|
|
|
|
+ pubkey: solana_pubkey::new_rand().to_string(),
|
|
|
lamports: 42 + i,
|
|
lamports: 42 + i,
|
|
|
post_balance: u64::MAX,
|
|
post_balance: u64::MAX,
|
|
|
reward_type: Some(RewardType::Fee),
|
|
reward_type: Some(RewardType::Fee),
|
|
@@ -10896,7 +10896,7 @@ pub mod tests {
|
|
|
let txs: Vec<_> = (0..num_txs)
|
|
let txs: Vec<_> = (0..num_txs)
|
|
|
.map(|_| {
|
|
.map(|_| {
|
|
|
let keypair0 = Keypair::new();
|
|
let keypair0 = Keypair::new();
|
|
|
- let to = solana_sdk::pubkey::new_rand();
|
|
|
|
|
|
|
+ let to = solana_pubkey::new_rand();
|
|
|
solana_sdk::system_transaction::transfer(&keypair0, &to, 1, Hash::default())
|
|
solana_sdk::system_transaction::transfer(&keypair0, &to, 1, Hash::default())
|
|
|
})
|
|
})
|
|
|
.collect();
|
|
.collect();
|