Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable/time sync check #2482

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
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
5 changes: 3 additions & 2 deletions src/core/atomicdex/services/sync/timesync.checker.service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ namespace

bool get_timesync_info_rpc(web::http::http_response resp_http)
{
return true;
using namespace std::string_literals;
nlohmann::json resp;
bool sync_ok = true;
Expand Down Expand Up @@ -73,7 +74,7 @@ namespace atomic_dex
{
m_timesync_clock = std::chrono::high_resolution_clock::now();
m_timesync_status = true;
fetch_timesync_status();
// fetch_timesync_status();
}

void timesync_checker_service::update()
Expand All @@ -85,7 +86,7 @@ namespace atomic_dex
int64_t ts_diff = now_ts - m_timesync_clock_ts;
if (abs(ts_diff) > 300)
{
fetch_timesync_status();
// fetch_timesync_status();
m_timesync_clock = std::chrono::high_resolution_clock::now();
}
}
Expand Down
Loading