net: add nLastBlockTime/TXTime to CNodeStats, CNode::copyStats

This commit is contained in:
Jon Atack committed 2020-08-15 12:03:16 +02:00
1 parent 30dd562fd2
commit 02fbe3ae0b
2 files changed
+4

No files matched your search

+2
View File
@@ -530,6 +530,8 @@ void CNode::copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap)
} }
X(nLastSend); X(nLastSend);
X(nLastRecv); X(nLastRecv);
X(nLastTXTime);
X(nLastBlockTime);
X(nTimeConnected); X(nTimeConnected);
X(nTimeOffset); X(nTimeOffset);
stats.addrName = GetAddrName(); stats.addrName = GetAddrName();
+2
View File
@@ -619,6 +619,8 @@ public:
bool fRelayTxes; bool fRelayTxes;
int64_t nLastSend; int64_t nLastSend;
int64_t nLastRecv; int64_t nLastRecv;
int64_t nLastTXTime;
int64_t nLastBlockTime;
int64_t nTimeConnected; int64_t nTimeConnected;
int64_t nTimeOffset; int64_t nTimeOffset;
std::string addrName; std::string addrName;