From 7f681dc1fb4cf825fdc8b22630d9cf3a4083cc6e Mon Sep 17 00:00:00 2001 From: cipig Date: Tue, 22 Oct 2024 09:17:53 +0000 Subject: [PATCH] set max_connected 3 in electrum call --- src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.cpp | 4 +++- src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.hpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.cpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.cpp index 9b6d678da0..d381fd5c7e 100644 --- a/src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.cpp +++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.cpp @@ -29,6 +29,8 @@ namespace atomic_dex::kdf { j["coin"] = cfg.coin_name; j["tx_history"] = cfg.with_tx_history; + j["min_connected"] = 1; + j["max_connected"] = 3; if (!cfg.servers.empty()) { @@ -70,4 +72,4 @@ namespace atomic_dex::kdf j.at("balance").get_to(cfg.balance); j.at("result").get_to(cfg.result); } -} // namespace atomic_dex::kdf \ No newline at end of file +} // namespace atomic_dex::kdf diff --git a/src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.hpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.hpp index 1a12c2ca42..5774438580 100644 --- a/src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.hpp +++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.hpp @@ -33,6 +33,8 @@ namespace atomic_dex::kdf CoinType coin_type; bool is_testnet{false}; bool with_tx_history{true}; + int min_connected{1}; + int max_connected{3}; std::optional swap_contract_address{std::nullopt}; std::optional fallback_swap_contract{std::nullopt}; std::optional address_format; @@ -59,4 +61,4 @@ namespace atomic_dex { using t_electrum_request = kdf::electrum_request; using t_electrum_answer = kdf::electrum_answer; -} // namespace atomic_dex \ No newline at end of file +} // namespace atomic_dex