Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 1,226 Lines • ▼ Show 20 Lines | 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}; | ||||
// Best measured round-trip time. | // Best measured round-trip time. | ||||
std::atomic<int64_t> nMinPingUsecTime{std::numeric_limits<int64_t>::max()}; | std::atomic<int64_t> nMinPingUsecTime{std::numeric_limits<int64_t>::max()}; | ||||
// Whether a ping is requested. | // Whether a ping is requested. | ||||
std::atomic<bool> fPingQueued{false}; | std::atomic<bool> fPingQueued{false}; | ||||
std::set<TxId> m_orphan_work_set; | |||||
CNode(NodeId id, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn, | CNode(NodeId id, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn, | ||||
SOCKET hSocketIn, const CAddress &addrIn, uint64_t nKeyedNetGroupIn, | SOCKET hSocketIn, const CAddress &addrIn, uint64_t nKeyedNetGroupIn, | ||||
uint64_t nLocalHostNonceIn, uint64_t nLocalExtraEntropyIn, | uint64_t nLocalHostNonceIn, uint64_t nLocalExtraEntropyIn, | ||||
const CAddress &addrBindIn, const std::string &addrNameIn, | const CAddress &addrBindIn, const std::string &addrNameIn, | ||||
ConnectionType conn_type_in, bool inbound_onion = false); | ConnectionType conn_type_in, bool inbound_onion = false); | ||||
~CNode(); | ~CNode(); | ||||
CNode(const CNode &) = delete; | CNode(const CNode &) = delete; | ||||
CNode &operator=(const CNode &) = delete; | CNode &operator=(const CNode &) = delete; | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |