Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 668 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
struct CNodeStats { | struct CNodeStats { | ||||
NodeId nodeid; | NodeId nodeid; | ||||
ServiceFlags nServices; | ServiceFlags nServices; | ||||
bool fRelayTxes; | bool fRelayTxes; | ||||
int64_t nLastSend; | int64_t nLastSend; | ||||
int64_t nLastRecv; | int64_t nLastRecv; | ||||
int64_t nLastTXTime; | int64_t nLastTXTime; | ||||
int64_t nLastProofTime; | |||||
int64_t nLastBlockTime; | int64_t nLastBlockTime; | ||||
int64_t nTimeConnected; | int64_t nTimeConnected; | ||||
int64_t nTimeOffset; | int64_t nTimeOffset; | ||||
std::string addrName; | std::string addrName; | ||||
int nVersion; | int nVersion; | ||||
std::string cleanSubVer; | std::string cleanSubVer; | ||||
bool fInbound; | bool fInbound; | ||||
bool m_manual_connection; | bool m_manual_connection; | ||||
▲ Show 20 Lines • Show All 374 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* UNIX epoch time of the last transaction received from this peer that we | * UNIX epoch time of the last transaction received from this peer that we | ||||
* had not yet seen (e.g. not already received from another peer) and that | * had not yet seen (e.g. not already received from another peer) and that | ||||
* was accepted into our mempool. Used as an inbound peer eviction criterium | * was accepted into our mempool. Used as an inbound peer eviction criterium | ||||
* in CConnman::AttemptToEvictConnection. | * in CConnman::AttemptToEvictConnection. | ||||
*/ | */ | ||||
std::atomic<int64_t> nLastTXTime{0}; | std::atomic<int64_t> nLastTXTime{0}; | ||||
/** | |||||
* UNIX epoch time of the last proof received from this peer that we | |||||
* had not yet seen (e.g. not already received from another peer) and that | |||||
* was accepted into our proof pool. Used as an inbound peer eviction | |||||
* criterium in CConnman::AttemptToEvictConnection. | |||||
*/ | |||||
std::atomic<int64_t> nLastProofTime{0}; | |||||
// Ping time measurement: | // Ping time measurement: | ||||
// The pong reply we're expecting, or 0 if no pong expected. | // The pong reply we're expecting, or 0 if no pong expected. | ||||
std::atomic<uint64_t> nPingNonceSent{0}; | std::atomic<uint64_t> nPingNonceSent{0}; | ||||
/** When the last ping was sent, or 0 if no ping was ever sent */ | /** When the last ping was sent, or 0 if no ping was ever sent */ | ||||
std::atomic<std::chrono::microseconds> m_ping_start{ | std::atomic<std::chrono::microseconds> m_ping_start{ | ||||
std::chrono::microseconds{0}}; | std::chrono::microseconds{0}}; | ||||
// Last measured round-trip time. | // Last measured round-trip time. | ||||
std::atomic<int64_t> nPingUsecTime{0}; | std::atomic<int64_t> nPingUsecTime{0}; | ||||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |