aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-01-02 17:47:08 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2015-01-02 17:54:21 +0100
commitc986972ad77242664c41c5e6fe07214e84aadd82 (patch)
treeade772431c84c3e839b5cb03161d57505d4c2766 /src/net.cpp
parent40d65eb66d0865aa64c410c3eb970dafcad71851 (diff)
parent73caf47dfe9c398aac75b5f6bcd1e0a644479a46 (diff)
downloadbitcoin-c986972ad77242664c41c5e6fe07214e84aadd82.tar.xz
Merge pull request #5476
73caf47 Display time offset in the debug window's Peers tab (Pavel Janík) 26a6bae Add time offset to getpeerinfo output (Pavel Janík)
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 474a3e4288..6401ecbf83 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -522,6 +522,7 @@ void CNode::copyStats(CNodeStats &stats)
X(nLastSend);
X(nLastRecv);
X(nTimeConnected);
+ X(nTimeOffset);
X(addrName);
X(nVersion);
X(cleanSubVer);
@@ -1933,6 +1934,7 @@ CNode::CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn, bool fIn
nSendBytes = 0;
nRecvBytes = 0;
nTimeConnected = GetTime();
+ nTimeOffset = 0;
addr = addrIn;
addrName = addrNameIn == "" ? addr.ToStringIPPort() : addrNameIn;
nVersion = 0;