diff --git a/chain/client/tests/process_blocks.rs b/chain/client/tests/process_blocks.rs index a5ea27ca4fb..2396d08a689 100644 --- a/chain/client/tests/process_blocks.rs +++ b/chain/client/tests/process_blocks.rs @@ -477,7 +477,7 @@ fn test_time_attack() { let hash = hash(&b1.header.inner.try_to_vec().expect("Failed to serialize")); b1.header.hash = hash; b1.header.signature = signer.sign(hash.as_ref()); - client.process_block(b1, Provenance::NONE); + let _ = client.process_block(b1, Provenance::NONE); let b2 = client.produce_block(2, Duration::from_secs(1)).unwrap().unwrap(); assert!(client.process_block(b2, Provenance::PRODUCED).1.is_ok()); diff --git a/runtime/near-vm-logic/tests/fixtures.rs b/runtime/near-vm-logic/tests/fixtures.rs index fbe9556e0dc..790fc562ba3 100644 --- a/runtime/near-vm-logic/tests/fixtures.rs +++ b/runtime/near-vm-logic/tests/fixtures.rs @@ -1,5 +1,6 @@ use near_vm_logic::VMContext; +#[allow(dead_code)] pub fn get_context(input: Vec, is_view: bool) -> VMContext { VMContext { current_account_id: "alice.near".to_string(), diff --git a/runtime/near-vm-logic/tests/test_context.rs b/runtime/near-vm-logic/tests/test_context.rs index ac5386ccde0..a9b0e375707 100644 --- a/runtime/near-vm-logic/tests/test_context.rs +++ b/runtime/near-vm-logic/tests/test_context.rs @@ -34,7 +34,7 @@ macro_rules! decl_test_bytes { let mut logic = VMLogic::new(&mut ext, context, &config, &promise_results, &mut memory); let res = vec![0u8; $input.len()]; logic.$method(0).expect("read bytes into register from context should be ok"); - logic.read_register(0, res.as_ptr() as _).expect("read register should be ok");; + logic.read_register(0, res.as_ptr() as _).expect("read register should be ok"); assert_eq!(res, $input); } }; diff --git a/runtime/near-vm-logic/tests/test_miscs.rs b/runtime/near-vm-logic/tests/test_miscs.rs index 5b7db6656bb..08068224994 100644 --- a/runtime/near-vm-logic/tests/test_miscs.rs +++ b/runtime/near-vm-logic/tests/test_miscs.rs @@ -258,7 +258,7 @@ fn test_hash256() { logic.sha256(data.len() as _, data.as_ptr() as _, 0).unwrap(); let res = &vec![0u8; 32]; - logic.read_register(0, res.as_ptr() as _); + let _ = logic.read_register(0, res.as_ptr() as _); assert_eq!( res, &[ diff --git a/runtime/near-vm-logic/tests/test_view_method.rs b/runtime/near-vm-logic/tests/test_view_method.rs index 99d97bf9b5f..13b7a5254f4 100644 --- a/runtime/near-vm-logic/tests/test_view_method.rs +++ b/runtime/near-vm-logic/tests/test_view_method.rs @@ -12,6 +12,7 @@ macro_rules! test_prohibited { let config = Config::default(); let promise_results = vec![]; let mut memory = MockedMemory::default(); + #[allow(unused_mut)] let mut logic = VMLogic::new(&mut ext, context, &config, &promise_results, &mut memory); let name = stringify!($f); diff --git a/runtime/near-vm-runner/tests/utils.rs b/runtime/near-vm-runner/tests/utils.rs index 00a70e257c2..58636a375e4 100644 --- a/runtime/near-vm-runner/tests/utils.rs +++ b/runtime/near-vm-runner/tests/utils.rs @@ -47,6 +47,7 @@ pub fn make_simple_contract_call_with_gas( run(code_hash, code, method_name, &mut fake_external, context, &config, &promise_results) } +#[allow(dead_code)] pub fn make_simple_contract_call( code: &[u8], method_name: &[u8], @@ -54,6 +55,7 @@ pub fn make_simple_contract_call( make_simple_contract_call_with_gas(code, method_name, 1_000_000) } +#[allow(dead_code)] pub fn wat2wasm_no_validate(wat: &str) -> Vec { Wat2Wasm::new().validate(false).convert(wat).unwrap().as_ref().to_vec() } diff --git a/scripts/start_testnet.py b/scripts/start_testnet.py index 99a5b8fb84a..e012e418e7e 100755 --- a/scripts/start_testnet.py +++ b/scripts/start_testnet.py @@ -11,7 +11,12 @@ print("* Running NEAR validator node for Official TestNet *") print("****************************************************") - DEFAULT_BOOT_NODE = "AJLCcX4Uymeq5ssavjUCyEA8SV6Y365Mh5h4shqMSTDA@34.94.33.164:24567" + DEFAULT_BOOT_NODE = ','.join([ + "AJLCcX4Uymeq5ssavjUCyEA8SV6Y365Mh5h4shqMSTDA@34.94.33.164:24567", + "EY9mX5FYyR1sqrGwkqCbUrmjgAtXs4DeNaf1sjG9MrkY@35.226.146.230:24567", + "8K7NG5v2yvSq4A1wQuqSNvyY334BVq3ohvdu9wgpgjLG@104.154.188.160:24567", + "FNCMYTt9Gexq6Nq3Z67gRX7eeZAh27swd1nrwN3smT9Q@35.246.133.183:24567", + ]) parser = argparse.ArgumentParser() parser.add_argument('--local', action='store_true', help='deprecated: use --nodocker') diff --git a/tests/test_rejoin.rs b/tests/test_rejoin.rs index 5465216b240..d4d7f7bb4d4 100644 --- a/tests/test_rejoin.rs +++ b/tests/test_rejoin.rs @@ -26,7 +26,7 @@ mod test { // to ensure they are not run in parallel. fn send_transaction( - nodes: &Vec>>, + nodes: &Vec>>, account_names: &Vec, nonces: &Vec, from: usize, @@ -147,7 +147,7 @@ mod test { } }) .collect(); - let nodes: Vec>> = + let nodes: Vec>> = nodes.into_iter().map(|cfg| Node::new_sharable(cfg)).collect(); let account_names: Vec<_> = nodes.iter().map(|node| node.read().unwrap().account_id().unwrap()).collect();