From fadd8b2676f6d68ec87189871461c9a6a6aa3cac Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Thu, 24 Mar 2022 19:56:00 +0100 Subject: addrman: Use system time instead of adjusted network time --- src/rpc/net.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rpc') diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 059be61bb4..e2d727e0a6 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -942,7 +943,7 @@ static RPCHelpMan addpeeraddress() if (LookupHost(addr_string, net_addr, false)) { CAddress address{{net_addr, port}, ServiceFlags{NODE_NETWORK | NODE_WITNESS}}; - address.nTime = AdjustedTime(); + address.nTime = Now(); // The source address is set equal to the address. This is equivalent to the peer // announcing itself. if (node.addrman->Add({address}, address)) { -- cgit v1.2.3