![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include "net_processing.h"
#include "alert.h"
#include "addrman.h"
#include "arith_uint256.h"
#include "chainparams.h"
#include "consensus/validation.h"
#include "hash.h"
#include "init.h"
#include "validation.h"
#include "merkleblock.h"
#include "net.h"
#include "netbase.h"
#include "policy/fees.h"
#include "policy/policy.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "random.h"
#include "tinyformat.h"
#include "txmempool.h"
#include "ui_interface.h"
#include "util.h"
#include "utilmoneystr.h"
#include "utilstrencodings.h"
#include "validationinterface.h"
#include "spork.h"
#include "governance.h"
#include "instantx.h"
#include "masternode-payments.h"
#include "masternode-sync.h"
#include "masternodeman.h"
#include "privatesend-client.h"
#include "privatesend-server.h"
#include <boost/thread.hpp>
Go to the source code of this file.
Classes | |
struct | COrphanTx |
class | CNetProcessingCleanup |
Functions | |
map< uint256, COrphanTx > mapOrphanTransactions | GUARDED_BY (cs_main) |
void | EraseOrphansFor (NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
bool | GetNodeStateStats (NodeId nodeid, CNodeStateStats &stats) |
void | RegisterNodeSignals (CNodeSignals &nodeSignals) |
void | UnregisterNodeSignals (CNodeSignals &nodeSignals) |
bool | AddOrphanTx (const CTransaction &tx, NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
static void | EraseOrphanTx (uint256 hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
unsigned int | LimitOrphanTxSize (unsigned int nMaxOrphans) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
void | Misbehaving (NodeId pnode, int howmuch) |
static bool | AlreadyHave (const CInv &inv) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
static void | RelayAddress (const CAddress &addr, bool fReachable, CConnman &connman) |
static void | ProcessGetData (CNode *pfrom, const Consensus::Params &consensusParams, CConnman &connman, std::atomic< bool > &interruptMsgProc) |
static bool | ProcessMessage (CNode *pfrom, string strCommand, CDataStream &vRecv, int64_t nTimeReceived, CConnman &connman, std::atomic< bool > &interruptMsgProc) |
bool | ProcessMessages (CNode *pfrom, CConnman &connman, std::atomic< bool > &interruptMsgProc) |
bool | SendMessages (CNode *pto, CConnman &connman, std::atomic< bool > &interruptMsgProc) |
Variables | |
int64_t | nTimeBestReceived = 0 |
class CNetProcessingCleanup | instance_of_cnetprocessingcleanup |
bool AddOrphanTx | ( | const CTransaction & | tx, |
NodeId | peer | ||
) |
Definition at line 504 of file net_processing.cpp.
Referenced by ProcessMessage().
|
static |
Definition at line 677 of file net_processing.cpp.
Referenced by ProcessMessage(), and SendMessages().
void EraseOrphansFor | ( | NodeId | peer | ) |
Definition at line 551 of file net_processing.cpp.
|
static |
Definition at line 534 of file net_processing.cpp.
Referenced by EraseOrphansFor(), LimitOrphanTxSize(), and ProcessMessage().
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().
unsigned int LimitOrphanTxSize | ( | unsigned int | nMaxOrphans | ) |
Definition at line 568 of file net_processing.cpp.
Referenced by ProcessMessage().
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().
|
static |
Definition at line 785 of file net_processing.cpp.
Referenced by ProcessMessage(), and ProcessMessages().
|
static |
Definition at line 1074 of file net_processing.cpp.
Referenced by ProcessMessages().
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().
Definition at line 752 of file net_processing.cpp.
Referenced by ProcessMessage().
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().
class CNetProcessingCleanup instance_of_cnetprocessingcleanup |
int64_t nTimeBestReceived = 0 |
Definition at line 49 of file net_processing.cpp.
Referenced by SendMessages().