![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
Go to the source code of this file.
Classes | |
class | PeerLogicValidation |
struct | CNodeStateStats |
Functions | |
void | RegisterNodeSignals (CNodeSignals &nodeSignals) |
void | UnregisterNodeSignals (CNodeSignals &nodeSignals) |
bool | GetNodeStateStats (NodeId nodeid, CNodeStateStats &stats) |
void | Misbehaving (NodeId nodeid, int howmuch) |
bool | ProcessMessages (CNode *pfrom, CConnman &connman, std::atomic< bool > &interrupt) |
bool | SendMessages (CNode *pto, CConnman &connman, std::atomic< bool > &interrupt) |
Variables | |
static constexpr int64_t | HEADERS_DOWNLOAD_TIMEOUT_BASE = 15 * 60 * 1000000 |
static constexpr int64_t | HEADERS_DOWNLOAD_TIMEOUT_PER_HEADER = 1000 |
bool GetNodeStateStats | ( | NodeId | nodeid, |
CNodeStateStats & | stats | ||
) |
Get statistics from node state
Definition at line 468 of file net_processing.cpp.
Referenced by getpeerinfo(), and PeerTablePriv::refreshPeers().
void Misbehaving | ( | NodeId | nodeid, |
int | howmuch | ||
) |
Increase a node's misbehavior score.
Definition at line 585 of file net_processing.cpp.
Referenced by PeerLogicValidation::BlockChecked(), CGovernanceManager::CheckMasternodeOrphanObjects(), CMasternodePaymentVote::IsValid(), CMasternodeMan::ProcessMessage(), CMasternodePayments::ProcessMessage(), CGovernanceManager::ProcessMessage(), ProcessMessage(), CSporkManager::ProcessSpork(), CMasternodeMan::ProcessVerifyBroadcast(), CMasternodeMan::ProcessVerifyReply(), and CMasternodeMan::SendVerifyReply().
Process protocol messages received from a given node
Definition at line 2184 of file net_processing.cpp.
Referenced by RegisterNodeSignals(), and UnregisterNodeSignals().
void RegisterNodeSignals | ( | CNodeSignals & | nodeSignals | ) |
Register with a network node to receive its signals
Definition at line 483 of file net_processing.cpp.
Referenced by AppInit2().
Send queued protocol messages to be sent to a give node.
[in] | pto | The node which we are sending messages to. |
[in] | connman | The connection manager for that node. |
[in] | interrupt | Interrupt condition for processing threads |
Definition at line 2296 of file net_processing.cpp.
Referenced by RegisterNodeSignals(), and UnregisterNodeSignals().
void UnregisterNodeSignals | ( | CNodeSignals & | nodeSignals | ) |
Unregister a network node
Definition at line 491 of file net_processing.cpp.
Referenced by PrepareShutdown().
|
static |
Headers download timeout expressed in microseconds Timeout = base + per_header * (expected number of headers)
Definition at line 14 of file net_processing.h.
Referenced by SendMessages().
|
static |
Definition at line 15 of file net_processing.h.
Referenced by SendMessages().