aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authordergoegge <n.goeggi@gmail.com>2022-11-25 15:31:04 +0000
committerstickies-v <stickies-v@protonmail.com>2024-04-10 16:15:46 +0200
commit038fd979effb54ee76ce1b7cf078e920c652326a (patch)
tree6f395ed7eaf7038a7db31d00fe4939929822d9cd /src/rpc
parenta175efe768892f6e983a7c814a201c506c4d1ce5 (diff)
downloadbitcoin-038fd979effb54ee76ce1b7cf078e920c652326a.tar.xz
[net processing] Move nTimeOffset to net_processing
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp
index 3fa2b18495..14eae8c5df 100644
--- a/src/rpc/net.cpp
+++ b/src/rpc/net.cpp
@@ -239,7 +239,7 @@ static RPCHelpMan getpeerinfo()
obj.pushKV("bytessent", stats.nSendBytes);
obj.pushKV("bytesrecv", stats.nRecvBytes);
obj.pushKV("conntime", count_seconds(stats.m_connected));
- obj.pushKV("timeoffset", stats.nTimeOffset);
+ obj.pushKV("timeoffset", statestats.time_offset);
if (stats.m_last_ping_time > 0us) {
obj.pushKV("pingtime", Ticks<SecondsDouble>(stats.m_last_ping_time));
}