From 02fbe3ae0bd91cbab2828cb7aa46f6493c82f026 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Sun, 9 Aug 2020 21:49:31 +0200 Subject: [PATCH] net: add nLastBlockTime/TXTime to CNodeStats, CNode::copyStats --- src/net.cpp | 2 ++ src/net.h | 2 ++ 2 files changed, 4 insertions(+) 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 &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 7a8abb401d..c72eada3ff 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;