Skip to content

Commit

Permalink
Merge pull request #2332 from KomodoPlatform/debug-zcash-params-download
Browse files Browse the repository at this point in the history
Fix zcash params download
  • Loading branch information
smk762 authored Jul 14, 2023
2 parents febbd4d + e92312b commit 8a8d53e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/core/atomicdex/services/mm2/mm2.service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,7 @@ namespace atomic_dex

std::string status = z_answers[0].at("result").at("status").get<std::string>();
SPDLOG_DEBUG("{} status : {}", tickers[idx], status);
SPDLOG_DEBUG("{} activation status response [{}]", tickers[idx], z_answers[0].dump());
SPDLOG_DEBUG("{} Activation Status: {}", tickers[idx], z_answers[0].dump());

if (status == "Ok")
{
Expand All @@ -1510,6 +1510,11 @@ namespace atomic_dex
this->m_nb_update_required += 1;
break;
}
else if (status == "Error")
{
event = z_answers[0].at("result").at("details").at("error_data").at("error").get<std::string>();
break;
}
else
{
// todo(syl): many unused variables.
Expand Down Expand Up @@ -1553,8 +1558,7 @@ namespace atomic_dex
try {
if (z_error[0].at("result").at("details").contains("error"))
{
std::string zhtlc_error = z_error[0].at("result").at("details").at("error").get<std::string>();
SPDLOG_DEBUG("Error enabling {}: {} ", tickers[idx], zhtlc_error);
SPDLOG_DEBUG("Error enabling {}: {} ", tickers[idx], event);
SPDLOG_DEBUG(
"Removing zhtlc from enabling, idx: {}, tickers size: {}, answers size: {}",
tickers[idx], idx, tickers.size(), answers.size()
Expand Down

0 comments on commit 8a8d53e

Please sign in to comment.