Run codemod --extensions rs Pubkey::new_rand solana_sdk::pubkey::new_rand
This commit is contained in:
@@ -42,7 +42,7 @@ fn run_dos(
|
||||
|
||||
let source = thread_rng().gen_range(0, nodes.len());
|
||||
let mut contact = nodes[source].clone();
|
||||
contact.id = Pubkey::new_rand();
|
||||
contact.id = solana_sdk::pubkey::new_rand();
|
||||
match data_type.as_str() {
|
||||
"repair_highest" => {
|
||||
let slot = 100;
|
||||
@@ -175,7 +175,7 @@ pub mod test {
|
||||
|
||||
#[test]
|
||||
fn test_dos() {
|
||||
let nodes = [ContactInfo::new_localhost(&Pubkey::new_rand(), timestamp())];
|
||||
let nodes = [ContactInfo::new_localhost(&solana_sdk::pubkey::new_rand(), timestamp())];
|
||||
let entrypoint_addr = nodes[0].gossip;
|
||||
run_dos(
|
||||
&nodes,
|
||||
|
Reference in New Issue
Block a user