Skip to content

Commit

Permalink
don't disable failed coins
Browse files Browse the repository at this point in the history
  • Loading branch information
cipig committed Dec 20, 2023
1 parent 49d4495 commit a8a6ea3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/core/atomicdex/services/mm2/mm2.service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ namespace atomic_dex
m_coins_informations[coin.ticker].currently_enabled = false;
failed_tickers.push_back(coin.ticker);
}
update_coin_active(failed_tickers, false);
//update_coin_active(failed_tickers, false);
fetch_infos_thread(false, false);
}
}
Expand Down Expand Up @@ -836,7 +836,7 @@ namespace atomic_dex
m_coins_informations[coin.ticker].currently_enabled = false;
failed_tickers.push_back(coin.ticker);
}
update_coin_active(failed_tickers, false);
//update_coin_active(failed_tickers, false);
fetch_infos_thread(false, false);
}
}
Expand Down Expand Up @@ -924,7 +924,7 @@ namespace atomic_dex
SPDLOG_ERROR("marking {} as inactive: {}", rpc.request.ticker, rpc.error->error_type);
std::unique_lock lock(m_coin_cfg_mutex);
m_coins_informations[rpc.request.ticker].currently_enabled = false;
update_coin_active({rpc.request.ticker}, false);
//update_coin_active({rpc.request.ticker}, false);
this->dispatcher_.trigger<enabling_coin_failed>(rpc.request.ticker, rpc.error->error);
}
}
Expand Down Expand Up @@ -1042,7 +1042,7 @@ namespace atomic_dex
{
std::unique_lock lock(m_coin_cfg_mutex);
m_coins_informations[rpc.request.ticker].currently_enabled = false;
update_coin_active({rpc.request.ticker}, false);
//update_coin_active({rpc.request.ticker}, false);
this->dispatcher_.trigger<enabling_coin_failed>(rpc.request.ticker, rpc.error->error);
}
}
Expand Down Expand Up @@ -1254,7 +1254,7 @@ namespace atomic_dex
{
std::unique_lock lock(m_coin_cfg_mutex);
m_coins_informations[rpc.request.ticker].currently_enabled = false;
update_coin_active({rpc.request.ticker}, false);
//update_coin_active({rpc.request.ticker}, false);
this->dispatcher_.trigger<enabling_coin_failed>(rpc.request.ticker, rpc.error->error);
}
}
Expand Down Expand Up @@ -1361,7 +1361,7 @@ namespace atomic_dex
{
std::unique_lock lock(m_coin_cfg_mutex);
m_coins_informations[rpc.request.ticker].currently_enabled = false;
update_coin_active({rpc.request.ticker}, false);
//update_coin_active({rpc.request.ticker}, false);
this->dispatcher_.trigger<enabling_coin_failed>(rpc.request.ticker, rpc.error->error);
}
}
Expand Down

0 comments on commit a8a6ea3

Please sign in to comment.