aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJon Atack <[email protected]>2020-08-09 21:49:31 +0200
committerJon Atack <[email protected]>2020-08-15 12:03:16 +0200
commit02fbe3ae0bd91cbab2828cb7aa46f6493c82f026 (patch)
treeda7cefaa9baa4e824c5088e0cf93544df9c49edb /src
parentMerge #19457: wallet: Cleanup wallettool salvage and walletdb extraneous decl... (diff)
downloaddiscoin-02fbe3ae0bd91cbab2828cb7aa46f6493c82f026.tar.xz
discoin-02fbe3ae0bd91cbab2828cb7aa46f6493c82f026.zip
net: add nLastBlockTime/TXTime to CNodeStats, CNode::copyStats
Diffstat (limited to 'src')
-rw-r--r--src/net.cpp2
-rw-r--r--src/net.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 6c1980735..883e57bdf 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -530,6 +530,8 @@ void CNode::copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap)
}
X(nLastSend);
X(nLastRecv);
+ X(nLastTXTime);
+ X(nLastBlockTime);
X(nTimeConnected);
X(nTimeOffset);
stats.addrName = GetAddrName();
diff --git a/src/net.h b/src/net.h
index 7a8abb401..c72eada3f 100644
--- a/src/net.h
+++ b/src/net.h
@@ -619,6 +619,8 @@ public:
bool fRelayTxes;
int64_t nLastSend;
int64_t nLastRecv;
+ int64_t nLastTXTime;
+ int64_t nLastBlockTime;
int64_t nTimeConnected;
int64_t nTimeOffset;
std::string addrName;