mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
net: add nLastBlockTime/TXTime to CNodeStats, CNode::copyStats
This commit is contained in:
parent
30dd562fd2
commit
02fbe3ae0b
2 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue