refactor: Use NodeClock alias over deprecated GetTime

GetTime returns a duration, but a time point is the correct type to use
here.

This refactor does not change any behavior.
This commit is contained in:
MarcoFalke
2026-03-20 10:48:38 +01:00
parent 4f8bd396f8
commit fa41e072b3

View File

@@ -1564,7 +1564,7 @@ void PeerManagerImpl::PushNodeVersion(CNode& pnode, const Peer& peer)
} else {
const CAddress& addr{pnode.addr};
my_services = peer.m_our_services;
my_time = count_seconds(GetTime<std::chrono::seconds>());
my_time = TicksSinceEpoch<std::chrono::seconds>(NodeClock::now());
your_services = addr.nServices;
your_addr = addr.IsRoutable() && !IsProxy(addr) && addr.IsAddrV1Compatible() ? CService{addr} : CService{};
my_user_agent = strSubVersion;