Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/disable/time-sync-check' into …
Browse files Browse the repository at this point in the history
…nogeo
  • Loading branch information
cipig committed Sep 21, 2024
2 parents 5e0b17e + 4c95543 commit c2afa21
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/core/atomicdex/api/kdf/address_format.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#pragma once

#include <optional>
#include <string>
#include <nlohmann/json_fwd.hpp>

Expand Down
1 change: 1 addition & 0 deletions src/core/atomicdex/api/kdf/kdf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
//! Deps
#include <antara/gaming/ecs/system.manager.hpp>
#include <nlohmann/json.hpp>
#include <optional>

//! Project Headers
#include "atomicdex/config/coins.cfg.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_erc20.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#pragma once

#include <string>
#include <optional>

#include <nlohmann/json_fwd.hpp> //> nlohmann::json
#include "atomicdex/api/kdf/rpc.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/core/atomicdex/config/raw.kdf.coins.cfg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//! Deps
#include <antara/gaming/core/real.path.hpp>
#include <nlohmann/json.hpp>
#include <optional>

//! Project
#include "atomicdex/api/kdf/kdf.constants.hpp"
Expand Down
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

0 comments on commit c2afa21

Please sign in to comment.