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

This commit is contained in:
Jon Atack 2020-08-09 21:49:31 +02:00
parent 30dd562fd2
commit 02fbe3ae0b
No known key found for this signature in database
GPG key ID: 4F5721B3D0E3921D
2 changed files with 4 additions and 0 deletions

View file

@ -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();

View file

@ -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;