Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 567 Lines • ▼ Show 20 Lines | struct CNodeStats { | ||||
bool fInbound; | bool fInbound; | ||||
bool m_manual_connection; | bool m_manual_connection; | ||||
int nStartingHeight; | int nStartingHeight; | ||||
uint64_t nSendBytes; | uint64_t nSendBytes; | ||||
mapMsgCmdSize mapSendBytesPerMsgCmd; | mapMsgCmdSize mapSendBytesPerMsgCmd; | ||||
uint64_t nRecvBytes; | uint64_t nRecvBytes; | ||||
mapMsgCmdSize mapRecvBytesPerMsgCmd; | mapMsgCmdSize mapRecvBytesPerMsgCmd; | ||||
NetPermissionFlags m_permissionFlags; | NetPermissionFlags m_permissionFlags; | ||||
bool fWhitelisted; | bool m_legacyWhitelisted; | ||||
double dPingTime; | double dPingTime; | ||||
double dPingWait; | double dPingWait; | ||||
double dMinPing; | double dMinPing; | ||||
Amount minFeeFilter; | Amount minFeeFilter; | ||||
// Our address, as reported by the peer | // Our address, as reported by the peer | ||||
std::string addrLocal; | std::string addrLocal; | ||||
// Address of this peer | // Address of this peer | ||||
CAddress addr; | CAddress addr; | ||||
▲ Show 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | std::string strSubVer GUARDED_BY(cs_SubVer), cleanSubVer | ||||
GUARDED_BY(cs_SubVer); | GUARDED_BY(cs_SubVer); | ||||
// Used for both cleanSubVer and strSubVer. | // Used for both cleanSubVer and strSubVer. | ||||
RecursiveMutex cs_SubVer; | RecursiveMutex cs_SubVer; | ||||
// This peer is preferred for eviction. | // This peer is preferred for eviction. | ||||
bool m_prefer_evict{false}; | bool m_prefer_evict{false}; | ||||
bool HasPermission(NetPermissionFlags permission) const { | bool HasPermission(NetPermissionFlags permission) const { | ||||
return NetPermissions::HasFlag(m_permissionFlags, permission); | return NetPermissions::HasFlag(m_permissionFlags, permission); | ||||
} | } | ||||
// This peer can bypass DoS banning. | // This boolean is unusued in actual processing, only present for backward | ||||
bool fWhitelisted{false}; | // compatibility at RPC/QT level | ||||
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 fOneShot{false}; | bool fOneShot{false}; | ||||
bool m_manual_connection{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}; | ||||
▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines |