[net processing] Use std::chrono for type-safe time offsets

This commit is contained in:
stickies-v
2024-02-03 17:15:41 +00:00
parent 038fd979ef
commit 55361a15d1
4 changed files with 9 additions and 6 deletions

View File

@@ -9,6 +9,8 @@
#include <net.h>
#include <validationinterface.h>
#include <chrono>
class AddrMan;
class CChainParams;
class CTxMemPool;
@@ -41,7 +43,7 @@ struct CNodeStateStats {
bool m_addr_relay_enabled{false};
ServiceFlags their_services;
int64_t presync_height{-1};
int64_t time_offset{0};
std::chrono::seconds time_offset{0};
};
class PeerManager : public CValidationInterface, public NetEventsInterface