diff options
author | Jon Atack <jon@atack.com> | 2020-08-09 21:49:31 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2020-08-15 12:03:16 +0200 |
commit | 02fbe3ae0bd91cbab2828cb7aa46f6493c82f026 (patch) | |
tree | da7cefaa9baa4e824c5088e0cf93544df9c49edb | |
parent | 30dd562fd2c58536fa026fff9853b8d825216b01 (diff) | |
download | bitcoin-02fbe3ae0bd91cbab2828cb7aa46f6493c82f026.tar.xz |
net: add nLastBlockTime/TXTime to CNodeStats, CNode::copyStats
-rw-r--r-- | src/net.cpp | 2 | ||||
-rw-r--r-- | src/net.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp index 6c1980735c..883e57bdf0 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(); @@ -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; |