Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 861 Lines • ▼ Show 20 Lines | bool HasPermission(NetPermissionFlags permission) const { | ||||
return NetPermissions::HasFlag(m_permissionFlags, permission); | return NetPermissions::HasFlag(m_permissionFlags, permission); | ||||
} | } | ||||
// This boolean is unusued in actual processing, only present for backward | // This boolean is unusued in actual processing, only present for backward | ||||
// compatibility at RPC/QT level | // compatibility at RPC/QT level | ||||
bool m_legacyWhitelisted{false}; | bool m_legacyWhitelisted{false}; | ||||
// If true this node is being used as a short lived feeler. | // If true this node is being used as a short lived feeler. | ||||
bool fFeeler{false}; | bool fFeeler{false}; | ||||
bool m_addr_fetch{false}; | bool m_addr_fetch{false}; | ||||
bool m_manual_connection{false}; | |||||
// set by version message | // set by version message | ||||
bool fClient{false}; | bool fClient{false}; | ||||
// after BIP159, set by version message | // after BIP159, set by version message | ||||
bool m_limited_node{false}; | bool m_limited_node{false}; | ||||
const bool fInbound; | const bool fInbound; | ||||
std::atomic_bool fSuccessfullyConnected{false}; | std::atomic_bool fSuccessfullyConnected{false}; | ||||
// Setting fDisconnect to true will cause the node to be disconnected the | // Setting fDisconnect to true will cause the node to be disconnected the | ||||
// next time DisconnectNodes() runs | // next time DisconnectNodes() runs | ||||
std::atomic_bool fDisconnect{false}; | std::atomic_bool fDisconnect{false}; | ||||
bool fSentAddr{false}; | bool fSentAddr{false}; | ||||
CSemaphoreGrant grantOutbound; | CSemaphoreGrant grantOutbound; | ||||
std::atomic<int> nRefCount{0}; | std::atomic<int> nRefCount{0}; | ||||
const uint64_t nKeyedNetGroup; | const uint64_t nKeyedNetGroup; | ||||
std::atomic_bool fPauseRecv{false}; | std::atomic_bool fPauseRecv{false}; | ||||
std::atomic_bool fPauseSend{false}; | std::atomic_bool fPauseSend{false}; | ||||
bool IsManualConn() const { return m_conn_type == ConnectionType::MANUAL; } | |||||
protected: | protected: | ||||
mapMsgCmdSize mapSendBytesPerMsgCmd; | mapMsgCmdSize mapSendBytesPerMsgCmd; | ||||
mapMsgCmdSize mapRecvBytesPerMsgCmd GUARDED_BY(cs_vRecv); | mapMsgCmdSize mapRecvBytesPerMsgCmd GUARDED_BY(cs_vRecv); | ||||
public: | public: | ||||
BlockHash hashContinue; | BlockHash hashContinue; | ||||
std::atomic<int> nStartingHeight{-1}; | std::atomic<int> nStartingHeight{-1}; | ||||
▲ Show 20 Lines • Show All 223 Lines • Show Last 20 Lines |