Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand Down Expand Up @@ -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
} // namespace atomic_dex::kdf
4 changes: 3 additions & 1 deletion src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string> swap_contract_address{std::nullopt};
std::optional<std::string> fallback_swap_contract{std::nullopt};
std::optional<address_format_t> address_format;
Expand All @@ -59,4 +61,4 @@ namespace atomic_dex
{
using t_electrum_request = kdf::electrum_request;
using t_electrum_answer = kdf::electrum_answer;
} // namespace atomic_dex
} // namespace atomic_dex