diff options
| author | Jon Atack <[email protected]> | 2020-08-09 21:49:31 +0200 |
|---|---|---|
| committer | Jon Atack <[email protected]> | 2020-08-15 12:03:16 +0200 |
| commit | 02fbe3ae0bd91cbab2828cb7aa46f6493c82f026 (patch) | |
| tree | da7cefaa9baa4e824c5088e0cf93544df9c49edb /src | |
| parent | Merge #19457: wallet: Cleanup wallettool salvage and walletdb extraneous decl... (diff) | |
| download | discoin-02fbe3ae0bd91cbab2828cb7aa46f6493c82f026.tar.xz discoin-02fbe3ae0bd91cbab2828cb7aa46f6493c82f026.zip | |
net: add nLastBlockTime/TXTime to CNodeStats, CNode::copyStats
Diffstat (limited to 'src')
| -rw-r--r-- | src/net.cpp | 2 | ||||
| -rw-r--r-- | src/net.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp index 6c1980735..883e57bdf 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -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; |