Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Information about a peer. More...
#include <net.h>
Public Member Functions | |
SOCKET hSocket | GUARDED_BY (cs_hSocket) |
uint64_t nSendBytes | GUARDED_BY (cs_vSend) |
std::list< std::vector< unsigned char > > vSendMsg | GUARDED_BY (cs_vSend) |
std::list< CNetMessage > vProcessMsg | GUARDED_BY (cs_vProcessMsg) |
uint64_t nRecvBytes | GUARDED_BY (cs_vRecv) |
std::string strSubVer | GUARDED_BY (cs_SubVer) |
std::string strSubVer cleanSubVer | GUARDED_BY (cs_SubVer) |
std::unique_ptr< CBloomFilter > pfilter | PT_GUARDED_BY (cs_filter) |
int64_t nNextAddrSend | GUARDED_BY (cs_sendProcessing) |
int64_t nNextLocalAddrSend | GUARDED_BY (cs_sendProcessing) |
CRollingBloomFilter filterInventoryKnown | GUARDED_BY (cs_inventory) |
std::vector< uint256 > vInventoryBlockToSend | GUARDED_BY (cs_inventory) |
CNode (NodeId id, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn, SOCKET hSocketIn, const CAddress &addrIn, uint64_t nKeyedNetGroupIn, uint64_t nLocalHostNonceIn, const CAddress &addrBindIn, const std::string &addrNameIn="", bool fInboundIn=false) | |
~CNode () | |
CNode (const CNode &)=delete | |
CNode & | operator= (const CNode &)=delete |
NodeId | GetId () const |
uint64_t | GetLocalNonce () const |
int | GetMyStartingHeight () const |
int | GetRefCount () const |
bool | ReceiveMsgBytes (const char *pch, unsigned int nBytes, bool &complete) |
void | SetRecvVersion (int nVersionIn) |
int | GetRecvVersion () const |
void | SetSendVersion (int nVersionIn) |
int | GetSendVersion () const |
CService | GetAddrLocal () const |
void | SetAddrLocal (const CService &addrLocalIn) |
May not be called more than once. More... | |
CNode * | AddRef () |
void | Release () |
void | AddAddressKnown (const CAddress &_addr) |
void | PushAddress (const CAddress &_addr, FastRandomContext &insecure_rand) |
void | AddInventoryKnown (const CInv &inv) |
void | AddInventoryKnown (const uint256 &hash) |
void | PushInventory (const CInv &inv) |
void | PushBlockHash (const uint256 &hash) |
void | CloseSocketDisconnect (CConnman *connman) |
void | copyStats (CNodeStats &stats) |
ServiceFlags | GetLocalServices () const |
std::string | GetAddrName () const |
void | MaybeSetAddrName (const std::string &addrNameIn) |
Sets the addrName only if it was not previously set. More... | |
std::string | GetLogString () const |
Protected Member Functions | |
mapMsgCmdSize mapRecvBytesPerMsgCmd | GUARDED_BY (cs_vRecv) |
Protected Attributes | |
mapMsgCmdSize | mapSendBytesPerMsgCmd |
Private Member Functions | |
std::string addrName | GUARDED_BY (cs_addrName) |
CService addrLocal | GUARDED_BY (cs_addrLocal) |
Private Attributes | |
const NodeId | id |
const uint64_t | nLocalHostNonce |
const ServiceFlags | nLocalServices |
const int | nMyStartingHeight |
int | nSendVersion |
std::list< CNetMessage > | vRecvMsg |
CCriticalSection | cs_addrName |
CCriticalSection | cs_addrLocal |
Friends | |
class | CConnman |
Detailed Description
Constructor & Destructor Documentation
◆ CNode() [1/2]
CNode::CNode | ( | NodeId | id, |
ServiceFlags | nLocalServicesIn, | ||
int | nMyStartingHeightIn, | ||
SOCKET | hSocketIn, | ||
const CAddress & | addrIn, | ||
uint64_t | nKeyedNetGroupIn, | ||
uint64_t | nLocalHostNonceIn, | ||
const CAddress & | addrBindIn, | ||
const std::string & | addrNameIn = "" , |
||
bool | fInboundIn = false |
||
) |
Definition at line 3645 of file net.cpp.
References addr, fCanSendData, fClient, fDisconnect, fFeeler, fGetAddr, fHasRecvData, fLogIPs, fMasternode, fMasternodeProbe, fOneShot, fPauseRecv, fPauseSend, fPingQueued, fRelayTxes, fSendMempool, fSentAddr, fSuccessfullyConnected, fWhitelisted, getAllNetMessageTypes(), hashContinue, INIT_PROTO_VERSION, LogPrint, m_limited_node, m_manual_connection, BCLog::NET, NET_MESSAGE_COMMAND_OTHER, nLastBlockTime, nLastRecv, nLastSend, nLastTXTime, nLastWarningTime, nMinPingUsecTime, nNumWarningsSkipped, NODE_NONE, nPingNonceSent, nPingUsecStart, nPingUsecTime, nProcessQueueSize, nRecvVersion, nRefCount, nSendMsgSize, nSendOffset, nSendSize, nServices, nStartingHeight, nTimeOffset, nVersion, timeLastMempoolReq, and CService::ToStringIPPort().
◆ ~CNode()
CNode::~CNode | ( | ) |
Definition at line 3723 of file net.cpp.
References CloseSocket().
◆ CNode() [2/2]
|
delete |
Member Function Documentation
◆ AddAddressKnown()
|
inline |
Definition at line 1021 of file net.h.
References addrKnown, CService::GetKey(), and CRollingBloomFilter::insert().
Referenced by ProcessMessage().
◆ AddInventoryKnown() [1/2]
|
inline |
◆ AddInventoryKnown() [2/2]
|
inline |
Definition at line 1046 of file net.h.
References cs_inventory, and LOCK.
◆ AddRef()
|
inline |
Definition at line 1008 of file net.h.
References nRefCount.
Referenced by CConnman::AcceptConnection(), llmq::CInstantSendManager::AskNodesForLockedTx(), CConnman::ConnectNode(), CConnman::CopyNodeVector(), and CConnman::PushMessage().
◆ CloseSocketDisconnect()
void CNode::CloseSocketDisconnect | ( | CConnman * | connman | ) |
Definition at line 535 of file net.cpp.
References AssertLockHeld(), CloseSocket(), cs_hSocket, CConnman::cs_mapNodesWithDataToSend, CConnman::cs_vNodes, fCanSendData, fDisconnect, fHasRecvData, GetId(), INVALID_SOCKET, LOCK, LogPrint, CConnman::mapSocketToNode, BCLog::NET, Release(), and CConnman::UnregisterEvents().
Referenced by CConnman::DisconnectNodes(), and CConnman::SocketRecvData().
◆ copyStats()
void CNode::copyStats | ( | CNodeStats & | stats | ) |
Definition at line 757 of file net.cpp.
References addr, addrBind, CNodeStats::addrLocal, CNodeStats::addrName, cs_filter, cs_mnauth, cs_SubVer, cs_vRecv, cs_vSend, CNodeStats::dMinPing, CNodeStats::dPingTime, CNodeStats::dPingWait, fInbound, fMasternode, fWhitelisted, GetAddrLocal(), GetAddrName(), GetId(), GetTimeMicros(), CNetAddr::IsValid(), LOCK, m_manual_connection, mapSendBytesPerMsgCmd, nLastRecv, nLastSend, nMinPingUsecTime, CNodeStats::nodeid, nPingNonceSent, nPingUsecStart, nPingUsecTime, nServices, nStartingHeight, nTimeConnected, nTimeOffset, nVersion, CService::ToString(), verifiedProRegTxHash, and X.
◆ GetAddrLocal()
CService CNode::GetAddrLocal | ( | ) | const |
Definition at line 736 of file net.cpp.
References cs_addrLocal, and LOCK.
Referenced by AdvertiseLocal(), copyStats(), and IsPeerAddrLocalGood().
◆ GetAddrName()
std::string CNode::GetAddrName | ( | ) | const |
Definition at line 724 of file net.cpp.
References cs_addrName, and LOCK.
Referenced by copyStats(), and PeerLogicValidation::InitializeNode().
◆ GetId()
|
inline |
Definition at line 973 of file net.h.
References id.
Referenced by CConnman::AcceptConnection(), llmq::CInstantSendManager::AskNodesForLockedTx(), llmq::CSigSharesManager::Cleanup(), CloseSocketDisconnect(), PeerLogicValidation::ConsiderEviction(), copyStats(), CConnman::DeleteNode(), CConnman::DisconnectNodes(), PeerLogicValidation::EvictExtraOutboundPeers(), CConnman::ForNode(), CConnman::InactivityCheck(), PeerLogicValidation::InitializeNode(), PeerLogicValidation::NewPoWValidBlock(), CMNAuth::NotifyMasternodeListChanged(), CConnman::OpenNetworkConnection(), ProcessGetBlockData(), ProcessHeadersMessage(), CMasternodeUtils::ProcessMasternodeConnections(), llmq::CQuorumBlockProcessor::ProcessMessage(), CMNAuth::ProcessMessage(), llmq::CDKGSessionManager::ProcessMessage(), CMasternodeSync::ProcessMessage(), CPrivateSendServer::ProcessMessage(), llmq::CChainLocksHandler::ProcessMessage(), llmq::CDKGSessionHandler::ProcessMessage(), CPrivateSendClientSession::ProcessMessage(), CPrivateSendClientManager::ProcessMessage(), CGovernanceManager::ProcessMessage(), llmq::CSigSharesManager::ProcessMessage(), ProcessMessage(), llmq::CSigSharesManager::ProcessMessageBatchedSigShares(), llmq::CSigSharesManager::ProcessMessageGetSigShares(), llmq::CInstantSendManager::ProcessMessageInstantSendLock(), llmq::CSigningManager::ProcessMessageRecoveredSig(), PeerLogicValidation::ProcessMessages(), llmq::CSigSharesManager::ProcessMessageSigSesAnn(), llmq::CSigSharesManager::ProcessMessageSigSharesInv(), CSporkManager::ProcessSpork(), CConnman::PushMessage(), CMNAuth::PushMNAUTH(), ReceiveMsgBytes(), RelayAddress(), CGovernanceManager::RequestGovernanceObject(), SendBlockTransactions(), PeerLogicValidation::SendMessages(), SendRejectsAndCheckIfBanned(), CGovernanceManager::SyncObjects(), and CGovernanceManager::SyncSingleObjVotes().
◆ GetLocalNonce()
|
inline |
Definition at line 977 of file net.h.
References nLocalHostNonce.
◆ GetLocalServices()
|
inline |
Definition at line 1087 of file net.h.
References nLocalServices.
Referenced by AdvertiseLocal(), ProcessGetBlockData(), and ProcessMessage().
◆ GetLogString()
std::string CNode::GetLogString | ( | ) | const |
Definition at line 750 of file net.cpp.
References addr, fLogIPs, strprintf, and CService::ToString().
Referenced by CGovernanceManager::AddGovernanceObject(), CPrivateSendServer::ProcessMessage(), CPrivateSendClientManager::ProcessMessage(), CGovernanceManager::ProcessMessage(), and SendRejectsAndCheckIfBanned().
◆ GetMyStartingHeight()
|
inline |
Definition at line 981 of file net.h.
References nMyStartingHeight.
◆ GetRecvVersion()
|
inline |
Definition at line 997 of file net.h.
References nRecvVersion.
Referenced by PeerLogicValidation::ProcessMessages().
◆ GetRefCount()
|
inline |
Definition at line 985 of file net.h.
References nRefCount.
Referenced by CConnman::DisconnectNodes().
◆ GetSendVersion()
int CNode::GetSendVersion | ( | ) | const |
Definition at line 887 of file net.cpp.
References error(), INIT_PROTO_VERSION, and nSendVersion.
Referenced by PeerLogicValidation::ConsiderEviction(), ProcessGetBlockData(), ProcessGetData(), ProcessHeadersMessage(), CPrivateSendServer::ProcessMessage(), CPrivateSendClientSession::ProcessMessage(), CPrivateSendClientManager::ProcessMessage(), CGovernanceManager::ProcessMessage(), ProcessMessage(), CSporkManager::ProcessSpork(), CMNAuth::PushMNAUTH(), CPrivateSendServer::PushStatus(), CPrivateSendQueue::Relay(), CGovernanceManager::RequestGovernanceObject(), SendBlockTransactions(), CMasternodeSync::SendGovernanceSyncRequest(), PeerLogicValidation::SendMessages(), CPrivateSendClientSession::SignFinalTransaction(), CGovernanceManager::SyncObjects(), and CGovernanceManager::SyncSingleObjVotes().
◆ GUARDED_BY() [1/14]
SOCKET hSocket CNode::GUARDED_BY | ( | cs_hSocket | ) |
◆ GUARDED_BY() [2/14]
uint64_t nSendBytes CNode::GUARDED_BY | ( | cs_vSend | ) |
◆ GUARDED_BY() [3/14]
std::list<std::vector<unsigned char> > vSendMsg CNode::GUARDED_BY | ( | cs_vSend | ) |
◆ GUARDED_BY() [4/14]
std::list<CNetMessage> vProcessMsg CNode::GUARDED_BY | ( | cs_vProcessMsg | ) |
◆ GUARDED_BY() [5/14]
uint64_t nRecvBytes CNode::GUARDED_BY | ( | cs_vRecv | ) |
◆ GUARDED_BY() [6/14]
std::string strSubVer CNode::GUARDED_BY | ( | cs_SubVer | ) |
◆ GUARDED_BY() [7/14]
std::string strSubVer cleanSubVer CNode::GUARDED_BY | ( | cs_SubVer | ) |
◆ GUARDED_BY() [8/14]
|
protected |
◆ GUARDED_BY() [9/14]
int64_t nNextAddrSend CNode::GUARDED_BY | ( | cs_sendProcessing | ) |
◆ GUARDED_BY() [10/14]
int64_t nNextLocalAddrSend CNode::GUARDED_BY | ( | cs_sendProcessing | ) |
◆ GUARDED_BY() [11/14]
CRollingBloomFilter filterInventoryKnown CNode::GUARDED_BY | ( | cs_inventory | ) |
◆ GUARDED_BY() [12/14]
std::vector<uint256> vInventoryBlockToSend CNode::GUARDED_BY | ( | cs_inventory | ) |
◆ GUARDED_BY() [13/14]
|
private |
◆ GUARDED_BY() [14/14]
|
private |
◆ MaybeSetAddrName()
void CNode::MaybeSetAddrName | ( | const std::string & | addrNameIn | ) |
Sets the addrName only if it was not previously set.
Definition at line 729 of file net.cpp.
References cs_addrName, and LOCK.
Referenced by CConnman::ConnectNode().
◆ operator=()
◆ PT_GUARDED_BY()
std::unique_ptr<CBloomFilter> pfilter CNode::PT_GUARDED_BY | ( | cs_filter | ) |
◆ PushAddress()
|
inline |
Definition at line 1026 of file net.h.
References addrKnown, CRollingBloomFilter::contains(), CService::GetKey(), CNetAddr::IsValid(), MAX_ADDR_TO_SEND, FastRandomContext::randrange(), and vAddrToSend.
Referenced by AdvertiseLocal(), and ProcessMessage().
◆ PushBlockHash()
|
inline |
Definition at line 1077 of file net.h.
References cs_inventory, LOCK, and vBlockHashesToAnnounce.
◆ PushInventory()
|
inline |
Definition at line 1054 of file net.h.
References cs_inventory, CInv::hash, id, LOCK, LogPrint, MSG_BLOCK, MSG_DSTX, MSG_TX, BCLog::NET, setInventoryTxToSend, CInv::ToString(), CInv::type, and vInventoryOtherToSend.
Referenced by ProcessMessage(), llmq::CDKGSession::RelayInvToParticipants(), PeerLogicValidation::SendMessages(), CGovernanceManager::SyncObjects(), and CGovernanceManager::SyncSingleObjVotes().
◆ ReceiveMsgBytes()
bool CNode::ReceiveMsgBytes | ( | const char * | pch, |
unsigned int | nBytes, | ||
bool & | complete | ||
) |
Definition at line 820 of file net.cpp.
References CNetMessage::complete(), cs_vRecv, GetId(), GetTimeMicros(), CNetMessage::hdr, CMessageHeader::HEADER_SIZE, CNetMessage::in_data, INIT_PROTO_VERSION, LOCK, LogPrint, MAX_PROTOCOL_MESSAGE_LENGTH, BCLog::NET, NET_MESSAGE_COMMAND_OTHER, nLastRecv, CMessageHeader::nMessageSize, CNetMessage::nTime, Params(), CMessageHeader::pchCommand, CNetMessage::readData(), CNetMessage::readHeader(), SER_NETWORK, and vRecvMsg.
Referenced by CConnman::SocketRecvData().
◆ Release()
|
inline |
Definition at line 1014 of file net.h.
References nRefCount.
Referenced by llmq::CInstantSendManager::AskNodesForLockedTx(), CloseSocketDisconnect(), CConnman::DisconnectNodes(), and CConnman::ReleaseNodeVector().
◆ SetAddrLocal()
void CNode::SetAddrLocal | ( | const CService & | addrLocalIn | ) |
May not be called more than once.
Definition at line 741 of file net.cpp.
References cs_addrLocal, error(), LOCK, and CService::ToString().
Referenced by ProcessMessage().
◆ SetRecvVersion()
|
inline |
◆ SetSendVersion()
void CNode::SetSendVersion | ( | int | nVersionIn | ) |
Definition at line 873 of file net.cpp.
References error(), and nSendVersion.
Referenced by ProcessMessage().
Friends And Related Function Documentation
◆ CConnman
Member Data Documentation
◆ addr
const CAddress CNode::addr |
Definition at line 834 of file net.h.
Referenced by AdvertiseLocal(), CNode(), copyStats(), CConnman::DeleteNode(), CConnman::DisconnectNodes(), CConnman::ForNode(), CActiveMasternodeManager::GetLocalAddress(), GetLogString(), PeerLogicValidation::InitializeNode(), CConnman::IsMasternodeQuorumNode(), IsPeerAddrLocalGood(), CMasternodeUtils::ProcessMasternodeConnections(), CPrivateSendServer::ProcessMessage(), CPrivateSendClientSession::ProcessMessage(), ProcessMessage(), quorum_dkgstatus(), SendRejectsAndCheckIfBanned(), CMasternodeSync::SwitchToNextAsset(), CGovernanceManager::SyncObjects(), and CConnman::ThreadOpenMasternodeConnections().
◆ addrBind
const CAddress CNode::addrBind |
Definition at line 836 of file net.h.
Referenced by copyStats().
◆ addrKnown
CRollingBloomFilter CNode::addrKnown |
Definition at line 891 of file net.h.
Referenced by AddAddressKnown(), PushAddress(), and PeerLogicValidation::SendMessages().
◆ cs_addrLocal
|
mutableprivate |
Definition at line 970 of file net.h.
Referenced by GetAddrLocal(), and SetAddrLocal().
◆ cs_addrName
|
mutableprivate |
Definition at line 965 of file net.h.
Referenced by GetAddrName(), and MaybeSetAddrName().
◆ cs_filter
CCriticalSection CNode::cs_filter |
Definition at line 868 of file net.h.
Referenced by llmq::CInstantSendManager::AskNodesForLockedTx(), copyStats(), ProcessGetBlockData(), ProcessMessage(), and PeerLogicValidation::SendMessages().
◆ cs_hSocket
CCriticalSection CNode::cs_hSocket |
Definition at line 813 of file net.h.
Referenced by CloseSocketDisconnect(), CConnman::DisconnectNodes(), CConnman::RegisterEvents(), CConnman::SocketRecvData(), and CConnman::UnregisterEvents().
◆ cs_inventory
CCriticalSection CNode::cs_inventory |
Definition at line 908 of file net.h.
Referenced by AddInventoryKnown(), CConnman::DisconnectNodes(), ProcessMessage(), PushBlockHash(), PushInventory(), and PeerLogicValidation::SendMessages().
◆ cs_mnauth
|
mutable |
Definition at line 938 of file net.h.
Referenced by copyStats(), CMNAuth::NotifyMasternodeListChanged(), CMNAuth::ProcessMessage(), ProcessMessage(), and CMNAuth::PushMNAUTH().
◆ cs_sendProcessing
CCriticalSection CNode::cs_sendProcessing |
◆ cs_SubVer
CCriticalSection CNode::cs_SubVer |
Definition at line 844 of file net.h.
Referenced by copyStats(), and ProcessMessage().
◆ cs_vProcessMsg
CCriticalSection CNode::cs_vProcessMsg |
Definition at line 816 of file net.h.
Referenced by PeerLogicValidation::ProcessMessages(), and CConnman::SocketRecvData().
◆ cs_vRecv
CCriticalSection CNode::cs_vRecv |
Definition at line 814 of file net.h.
Referenced by copyStats(), and ReceiveMsgBytes().
◆ cs_vSend
CCriticalSection CNode::cs_vSend |
Definition at line 812 of file net.h.
Referenced by copyStats(), CConnman::DisconnectNodes(), and CConnman::PushMessage().
◆ fCanSendData
std::atomic_bool CNode::fCanSendData |
Definition at line 878 of file net.h.
Referenced by CloseSocketDisconnect(), and CNode().
◆ fClient
bool CNode::fClient |
Definition at line 849 of file net.h.
Referenced by CNode(), ProcessMessage(), and PeerLogicValidation::SendMessages().
◆ fDisconnect
std::atomic_bool CNode::fDisconnect |
Definition at line 853 of file net.h.
Referenced by CloseSocketDisconnect(), CNode(), PeerLogicValidation::ConsiderEviction(), CConnman::DisconnectNodes(), PeerLogicValidation::EvictExtraOutboundPeers(), CConnman::InactivityCheck(), CConnman::IsMasternodeOrDisconnectRequested(), PeerLogicValidation::NewPoWValidBlock(), CConnman::NodeFullyConnected(), CMNAuth::NotifyMasternodeListChanged(), ProcessGetBlockData(), ProcessHeadersMessage(), CMasternodeUtils::ProcessMasternodeConnections(), CMNAuth::ProcessMessage(), ProcessMessage(), PeerLogicValidation::ProcessMessages(), PeerLogicValidation::SendMessages(), SendRejectsAndCheckIfBanned(), and CConnman::SocketRecvData().
◆ fFeeler
bool CNode::fFeeler |
Definition at line 846 of file net.h.
Referenced by CNode(), IsOutboundDisconnectionCandidate(), CConnman::OpenNetworkConnection(), CMasternodeUtils::ProcessMasternodeConnections(), and ProcessMessage().
◆ fFirstMessageIsMNAUTH
std::atomic<bool> CNode::fFirstMessageIsMNAUTH |
Definition at line 832 of file net.h.
Referenced by ProcessMessage().
◆ fGetAddr
bool CNode::fGetAddr |
Definition at line 892 of file net.h.
Referenced by CNode(), and ProcessMessage().
◆ fHasRecvData
std::atomic_bool CNode::fHasRecvData |
Definition at line 877 of file net.h.
Referenced by CloseSocketDisconnect(), CNode(), and CConnman::SocketRecvData().
◆ fInbound
const bool CNode::fInbound |
Definition at line 851 of file net.h.
Referenced by copyStats(), CConnman::DisconnectNodes(), PeerLogicValidation::InitializeNode(), CConnman::IsMasternodeQuorumNode(), IsOutboundDisconnectionCandidate(), CMasternodeUtils::ProcessMasternodeConnections(), CMNAuth::ProcessMessage(), ProcessMessage(), CMNAuth::PushMNAUTH(), PeerLogicValidation::SendMessages(), and CConnman::ThreadOpenMasternodeConnections().
◆ fMasternode
bool CNode::fMasternode |
Definition at line 864 of file net.h.
Referenced by CNode(), copyStats(), CConnman::DisconnectNodes(), PeerLogicValidation::EvictExtraOutboundPeers(), CConnman::IsMasternodeOrDisconnectRequested(), CConnman::OpenNetworkConnection(), CMasternodeUtils::ProcessMasternodeConnections(), ProcessMessage(), PeerLogicValidation::SendMessages(), and PeerLogicValidation::UpdatedBlockTip().
◆ fMasternodeProbe
bool CNode::fMasternodeProbe |
Definition at line 866 of file net.h.
Referenced by CNode(), CConnman::OpenNetworkConnection(), CMasternodeUtils::ProcessMasternodeConnections(), CMNAuth::ProcessMessage(), and ProcessMessage().
◆ fOneShot
bool CNode::fOneShot |
Definition at line 847 of file net.h.
Referenced by CNode(), IsOutboundDisconnectionCandidate(), CConnman::OpenNetworkConnection(), ProcessMessage(), and PeerLogicValidation::SendMessages().
◆ fOtherSideDisconnected
std::atomic_bool CNode::fOtherSideDisconnected { false } |
Definition at line 856 of file net.h.
Referenced by CConnman::DisconnectNodes(), and CConnman::SocketRecvData().
◆ fPauseRecv
std::atomic_bool CNode::fPauseRecv |
Definition at line 874 of file net.h.
Referenced by CNode(), PeerLogicValidation::ProcessMessages(), and CConnman::SocketRecvData().
◆ fPauseSend
std::atomic_bool CNode::fPauseSend |
Definition at line 875 of file net.h.
Referenced by CNode(), ProcessGetData(), PeerLogicValidation::ProcessMessages(), and CConnman::PushMessage().
◆ fPingQueued
std::atomic<bool> CNode::fPingQueued |
Definition at line 932 of file net.h.
Referenced by CNode(), ping(), and PeerLogicValidation::SendMessages().
◆ fRelayTxes
bool CNode::fRelayTxes |
Definition at line 861 of file net.h.
Referenced by CNode(), ProcessMessage(), and PeerLogicValidation::SendMessages().
◆ fSendDSQueue
std::atomic<bool> CNode::fSendDSQueue {false} |
Definition at line 935 of file net.h.
Referenced by ProcessMessage(), and CPrivateSendQueue::Relay().
◆ fSendMempool
bool CNode::fSendMempool |
Definition at line 914 of file net.h.
Referenced by CNode(), ProcessMessage(), and PeerLogicValidation::SendMessages().
◆ fSendRecSigs
std::atomic<bool> CNode::fSendRecSigs {false} |
Definition at line 945 of file net.h.
Referenced by ProcessMessage().
◆ fSentAddr
bool CNode::fSentAddr |
Definition at line 862 of file net.h.
Referenced by CNode(), and ProcessMessage().
◆ fSocketShutdown
std::atomic_bool CNode::fSocketShutdown {false} |
Definition at line 855 of file net.h.
Referenced by CConnman::DisconnectNodes().
◆ fSuccessfullyConnected
std::atomic_bool CNode::fSuccessfullyConnected |
Definition at line 852 of file net.h.
Referenced by AdvertiseLocal(), CNode(), CConnman::InactivityCheck(), CConnman::NodeFullyConnected(), ProcessMessage(), and PeerLogicValidation::SendMessages().
◆ fWhitelisted
bool CNode::fWhitelisted |
Definition at line 845 of file net.h.
Referenced by CConnman::AcceptConnection(), CNode(), copyStats(), ProcessGetBlockData(), ProcessMessage(), PeerLogicValidation::SendMessages(), and SendRejectsAndCheckIfBanned().
◆ grantOutbound
CSemaphoreGrant CNode::grantOutbound |
Definition at line 867 of file net.h.
Referenced by CConnman::DisconnectNodes(), and CConnman::OpenNetworkConnection().
◆ hashContinue
uint256 CNode::hashContinue |
Definition at line 886 of file net.h.
Referenced by CNode(), ProcessGetBlockData(), and ProcessMessage().
◆ id
|
private |
Definition at line 957 of file net.h.
Referenced by GetId(), and PushInventory().
◆ m_limited_node
bool CNode::m_limited_node |
Definition at line 850 of file net.h.
Referenced by CNode(), ProcessMessage(), and PeerLogicValidation::SendMessages().
◆ m_manual_connection
bool CNode::m_manual_connection |
Definition at line 848 of file net.h.
Referenced by CNode(), copyStats(), IsOutboundDisconnectionCandidate(), CConnman::OpenNetworkConnection(), CMasternodeUtils::ProcessMasternodeConnections(), ProcessMessage(), and SendRejectsAndCheckIfBanned().
◆ mapSendBytesPerMsgCmd
|
protected |
Definition at line 882 of file net.h.
Referenced by copyStats(), and CConnman::PushMessage().
◆ nDisconnectLingerTime
std::atomic<int64_t> CNode::nDisconnectLingerTime {0} |
Definition at line 854 of file net.h.
Referenced by CConnman::DisconnectNodes().
◆ nKeyedNetGroup
◆ nLastBlockTime
std::atomic<int64_t> CNode::nLastBlockTime |
Definition at line 917 of file net.h.
Referenced by CNode(), and ProcessMessage().
◆ nLastRecv
std::atomic<int64_t> CNode::nLastRecv |
Definition at line 827 of file net.h.
Referenced by CNode(), copyStats(), CConnman::InactivityCheck(), and ReceiveMsgBytes().
◆ nLastSend
std::atomic<int64_t> CNode::nLastSend |
Definition at line 826 of file net.h.
Referenced by CNode(), copyStats(), and CConnman::InactivityCheck().
◆ nLastTXTime
std::atomic<int64_t> CNode::nLastTXTime |
Definition at line 918 of file net.h.
Referenced by CNode(), and ProcessMessage().
◆ nLastWarningTime
std::atomic<int64_t> CNode::nLastWarningTime |
◆ nLocalHostNonce
|
private |
Definition at line 958 of file net.h.
Referenced by GetLocalNonce().
◆ nLocalServices
|
private |
Definition at line 960 of file net.h.
Referenced by GetLocalServices().
◆ nMinPingUsecTime
std::atomic<int64_t> CNode::nMinPingUsecTime |
Definition at line 930 of file net.h.
Referenced by CNode(), copyStats(), and ProcessMessage().
◆ nMyStartingHeight
|
private |
Definition at line 961 of file net.h.
Referenced by GetMyStartingHeight().
◆ nNextInvSend
std::chrono::microseconds CNode::nNextInvSend {0} |
Definition at line 909 of file net.h.
Referenced by PeerLogicValidation::SendMessages().
◆ nNumWarningsSkipped
std::atomic<int> CNode::nNumWarningsSkipped |
◆ nPingNonceSent
std::atomic<uint64_t> CNode::nPingNonceSent |
Definition at line 924 of file net.h.
Referenced by CNode(), copyStats(), CConnman::InactivityCheck(), ProcessMessage(), and PeerLogicValidation::SendMessages().
◆ nPingUsecStart
std::atomic<int64_t> CNode::nPingUsecStart |
Definition at line 926 of file net.h.
Referenced by CNode(), copyStats(), CConnman::InactivityCheck(), ProcessMessage(), and PeerLogicValidation::SendMessages().
◆ nPingUsecTime
std::atomic<int64_t> CNode::nPingUsecTime |
Definition at line 928 of file net.h.
Referenced by CNode(), copyStats(), and ProcessMessage().
◆ nProcessQueueSize
size_t CNode::nProcessQueueSize |
Definition at line 818 of file net.h.
Referenced by CNode(), PeerLogicValidation::ProcessMessages(), and CConnman::SocketRecvData().
◆ nRecvVersion
std::atomic<int> CNode::nRecvVersion |
Definition at line 824 of file net.h.
Referenced by CNode(), GetRecvVersion(), and SetRecvVersion().
◆ nRefCount
std::atomic<int> CNode::nRefCount |
◆ nSendMsgSize
std::atomic<size_t> CNode::nSendMsgSize |
Definition at line 811 of file net.h.
Referenced by CNode(), CConnman::DisconnectNodes(), and CConnman::PushMessage().
◆ nSendOffset
◆ nSendSize
size_t CNode::nSendSize |
Definition at line 807 of file net.h.
Referenced by CNode(), and CConnman::PushMessage().
◆ nSendVersion
|
private |
Definition at line 962 of file net.h.
Referenced by GetSendVersion(), and SetSendVersion().
◆ nServices
std::atomic<ServiceFlags> CNode::nServices |
Definition at line 805 of file net.h.
Referenced by CNode(), copyStats(), CMNAuth::ProcessMessage(), and ProcessMessage().
◆ nStartingHeight
std::atomic<int> CNode::nStartingHeight |
Definition at line 887 of file net.h.
Referenced by CNode(), copyStats(), ProcessHeadersMessage(), ProcessMessage(), PeerLogicValidation::SendMessages(), and PeerLogicValidation::UpdatedBlockTip().
◆ nTimeConnected
const int64_t CNode::nTimeConnected |
Definition at line 828 of file net.h.
Referenced by copyStats(), PeerLogicValidation::EvictExtraOutboundPeers(), CConnman::InactivityCheck(), and CMasternodeUtils::ProcessMasternodeConnections().
◆ nTimeFirstMessageReceived
std::atomic<int64_t> CNode::nTimeFirstMessageReceived |
Definition at line 831 of file net.h.
Referenced by ProcessMessage().
◆ nTimeOffset
std::atomic<int64_t> CNode::nTimeOffset |
Definition at line 829 of file net.h.
Referenced by CNode(), copyStats(), and ProcessMessage().
◆ nVersion
std::atomic<int> CNode::nVersion |
Definition at line 838 of file net.h.
Referenced by CNode(), copyStats(), CConnman::InactivityCheck(), CMNAuth::ProcessMessage(), CPrivateSendServer::ProcessMessage(), CPrivateSendClientSession::ProcessMessage(), CPrivateSendClientManager::ProcessMessage(), CGovernanceManager::ProcessMessage(), ProcessMessage(), CMNAuth::PushMNAUTH(), CPrivateSendQueue::Relay(), RelayAddress(), CGovernanceManager::RequestGovernanceObject(), CGovernanceManager::RequestGovernanceObjectVotes(), CMasternodeSync::SendGovernanceSyncRequest(), PeerLogicValidation::SendMessages(), and llmq::CDKGSession::VerifyConnectionAndMinProtoVersions().
◆ orphan_work_set
std::set<uint256> CNode::orphan_work_set |
Definition at line 949 of file net.h.
Referenced by ProcessMessage(), and PeerLogicValidation::ProcessMessages().
◆ qwatch
std::atomic<bool> CNode::qwatch {false} |
Definition at line 947 of file net.h.
Referenced by llmq::CDKGSessionManager::ProcessMessage(), and llmq::CDKGSession::RelayInvToParticipants().
◆ receivedMNAuthChallenge
uint256 CNode::receivedMNAuthChallenge |
Definition at line 940 of file net.h.
Referenced by ProcessMessage(), and CMNAuth::PushMNAUTH().
◆ sentMNAuthChallenge
uint256 CNode::sentMNAuthChallenge |
Definition at line 939 of file net.h.
Referenced by CMNAuth::ProcessMessage().
◆ setInventoryTxToSend
std::set<uint256> CNode::setInventoryTxToSend |
Definition at line 901 of file net.h.
Referenced by PushInventory(), and PeerLogicValidation::SendMessages().
◆ setKnown
◆ timeLastMempoolReq
std::atomic<int64_t> CNode::timeLastMempoolReq |
Definition at line 921 of file net.h.
Referenced by CNode(), ProcessGetData(), and PeerLogicValidation::SendMessages().
◆ vAddrToSend
std::vector<CAddress> CNode::vAddrToSend |
Definition at line 890 of file net.h.
Referenced by ProcessMessage(), PushAddress(), and PeerLogicValidation::SendMessages().
◆ vBlockHashesToAnnounce
std::vector<uint256> CNode::vBlockHashesToAnnounce |
Definition at line 912 of file net.h.
Referenced by PushBlockHash(), and PeerLogicValidation::SendMessages().
◆ verifiedProRegTxHash
uint256 CNode::verifiedProRegTxHash |
Definition at line 941 of file net.h.
Referenced by copyStats(), CConnman::IsMasternodeQuorumNode(), CMNAuth::NotifyMasternodeListChanged(), CMNAuth::ProcessMessage(), quorum_dkgstatus(), llmq::CDKGSession::RelayInvToParticipants(), PeerLogicValidation::SendMessages(), CConnman::ThreadOpenMasternodeConnections(), and llmq::CDKGSession::VerifyConnectionAndMinProtoVersions().
◆ verifiedPubKeyHash
uint256 CNode::verifiedPubKeyHash |
Definition at line 942 of file net.h.
Referenced by CMNAuth::NotifyMasternodeListChanged(), and CMNAuth::ProcessMessage().
◆ vInventoryOtherToSend
std::vector<CInv> CNode::vInventoryOtherToSend |
Definition at line 907 of file net.h.
Referenced by PushInventory(), and PeerLogicValidation::SendMessages().
◆ vRecvGetData
std::deque<CInv> CNode::vRecvGetData |
Definition at line 822 of file net.h.
Referenced by ProcessGetData(), ProcessMessage(), and PeerLogicValidation::ProcessMessages().
◆ vRecvMsg
|
private |
Definition at line 963 of file net.h.
Referenced by ReceiveMsgBytes(), and CConnman::SocketRecvData().
The documentation for this class was generated from the following files: