Skip to content

Commit 02fbe3a

Browse files
committed
net: add nLastBlockTime/TXTime to CNodeStats, CNode::copyStats
1 parent 30dd562 commit 02fbe3a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/net.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,8 @@ void CNode::copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap)
530530
}
531531
X(nLastSend);
532532
X(nLastRecv);
533+
X(nLastTXTime);
534+
X(nLastBlockTime);
533535
X(nTimeConnected);
534536
X(nTimeOffset);
535537
stats.addrName = GetAddrName();

src/net.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,8 @@ class CNodeStats
619619
bool fRelayTxes;
620620
int64_t nLastSend;
621621
int64_t nLastRecv;
622+
int64_t nLastTXTime;
623+
int64_t nLastBlockTime;
622624
int64_t nTimeConnected;
623625
int64_t nTimeOffset;
624626
std::string addrName;

0 commit comments

Comments
 (0)