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

pull/764/head
Jon Atack 4 years ago
parent 30dd562fd2
commit 02fbe3ae0b
No known key found for this signature in database
GPG Key ID: 4F5721B3D0E3921D

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

Loading…
Cancel
Save