From b6a9c9252b3edbe00e118029efbe03898c553a33 Mon Sep 17 00:00:00 2001 From: shamardy <39480341+shamardy@users.noreply.github.com> Date: Mon, 6 Mar 2023 17:11:22 +0200 Subject: [PATCH] fix: update testnet node of atom, ignore RUSTSEC-2023-0018 (#1692) * update testnet node of atom * add duplicate crates to deny.toml * ignore RUSTSEC-2023-0018 for now * remove added duplicates from deny.toml --------- Signed-off-by: ozkanonur Co-authored-by: ozkanonur --- deny.toml | 1 + mm2src/coins/tendermint/rpc/tendermint_wasm_rpc.rs | 2 +- mm2src/coins/tendermint/tendermint_coin.rs | 2 +- mm2src/mm2_main/tests/mm2_tests/tendermint_tests.rs | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/deny.toml b/deny.toml index d18973554c..0120610616 100644 --- a/deny.toml +++ b/deny.toml @@ -66,6 +66,7 @@ ignore = [ "RUSTSEC-2021-0059", "RUSTSEC-2021-0060", "RUSTSEC-2022-0090", + "RUSTSEC-2023-0018", ] # Threshold for security vulnerabilities, any vulnerability with a CVSS score # lower than the range specified will be ignored. Note that ignored advisories diff --git a/mm2src/coins/tendermint/rpc/tendermint_wasm_rpc.rs b/mm2src/coins/tendermint/rpc/tendermint_wasm_rpc.rs index d0fc1a1f96..036815a25f 100644 --- a/mm2src/coins/tendermint/rpc/tendermint_wasm_rpc.rs +++ b/mm2src/coins/tendermint/rpc/tendermint_wasm_rpc.rs @@ -117,7 +117,7 @@ mod tests { #[wasm_bindgen_test] async fn test_get_abci_info() { - let client = HttpClient::new("https://cosmos-testnet-rpc.allthatnode.com:26657").unwrap(); + let client = HttpClient::new("https://rpc.sentry-02.theta-testnet.polypore.xyz").unwrap(); client.abci_info().await.unwrap(); } } diff --git a/mm2src/coins/tendermint/tendermint_coin.rs b/mm2src/coins/tendermint/tendermint_coin.rs index f99e55967b..cb70b0b8fb 100644 --- a/mm2src/coins/tendermint/tendermint_coin.rs +++ b/mm2src/coins/tendermint/tendermint_coin.rs @@ -182,7 +182,7 @@ impl RpcCommonOps for TendermintCoin { let mut client_impl = self.client.0.lock().await; // try to find first live client for (i, client) in client_impl.rpc_clients.clone().into_iter().enumerate() { - match client.perform(HealthRequest).timeout(Duration::from_secs(5)).await { + match client.perform(HealthRequest).timeout(Duration::from_secs(15)).await { Ok(Ok(_)) => { // Bring the live client to the front of rpc_clients client_impl.rpc_clients.rotate_left(i); diff --git a/mm2src/mm2_main/tests/mm2_tests/tendermint_tests.rs b/mm2src/mm2_main/tests/mm2_tests/tendermint_tests.rs index 709dd72938..796162de48 100644 --- a/mm2src/mm2_main/tests/mm2_tests/tendermint_tests.rs +++ b/mm2src/mm2_main/tests/mm2_tests/tendermint_tests.rs @@ -10,7 +10,7 @@ use serde_json::{self as json, json}; const ATOM_TEST_BALANCE_SEED: &str = "atom test seed"; const ATOM_TEST_WITHDRAW_SEED: &str = "atom test withdraw seed"; const ATOM_TICKER: &str = "ATOM"; -const ATOM_TENDERMINT_RPC_URLS: &[&str] = &["https://cosmos-testnet-rpc.allthatnode.com:26657"]; +const ATOM_TENDERMINT_RPC_URLS: &[&str] = &["https://rpc.sentry-02.theta-testnet.polypore.xyz"]; const IRIS_TESTNET_RPC_URLS: &[&str] = &["http://34.80.202.172:26657"];