mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-11 22:43:06 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user