Changeset View
Changeset View
Standalone View
Standalone View
src/net.cpp
Show First 20 Lines • Show All 544 Lines • ▼ Show 20 Lines | void CNode::copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap) { | ||||
if (m_tx_relay != nullptr) { | if (m_tx_relay != nullptr) { | ||||
LOCK(m_tx_relay->cs_filter); | LOCK(m_tx_relay->cs_filter); | ||||
stats.fRelayTxes = m_tx_relay->fRelayTxes; | stats.fRelayTxes = m_tx_relay->fRelayTxes; | ||||
} else { | } else { | ||||
stats.fRelayTxes = false; | stats.fRelayTxes = false; | ||||
} | } | ||||
stats.nLastSend = nLastSend; | stats.nLastSend = nLastSend; | ||||
stats.nLastRecv = nLastRecv; | stats.nLastRecv = nLastRecv; | ||||
stats.nLastTXTime = nLastTXTime; | |||||
stats.nLastBlockTime = nLastBlockTime; | |||||
stats.nTimeConnected = nTimeConnected; | stats.nTimeConnected = nTimeConnected; | ||||
stats.nTimeOffset = nTimeOffset; | stats.nTimeOffset = nTimeOffset; | ||||
stats.addrName = GetAddrName(); | stats.addrName = GetAddrName(); | ||||
stats.nVersion = nVersion; | stats.nVersion = nVersion; | ||||
{ | { | ||||
LOCK(cs_SubVer); | LOCK(cs_SubVer); | ||||
stats.cleanSubVer = cleanSubVer; | stats.cleanSubVer = cleanSubVer; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 2,601 Lines • Show Last 20 Lines |