Dogecoin Core  1.14.2
P2P Digital Currency
Classes | Functions | Variables
net_processing.cpp File Reference
#include "net_processing.h"
#include "addrman.h"
#include "alert.h"
#include "arith_uint256.h"
#include "blockencodings.h"
#include "chainparams.h"
#include "consensus/validation.h"
#include "hash.h"
#include "init.h"
#include "validation.h"
#include "merkleblock.h"
#include "net.h"
#include "netmessagemaker.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 <boost/thread.hpp>
Include dependency graph for net_processing.cpp:

Go to the source code of this file.

Classes

struct  IteratorComparator
 
struct  COrphanTx
 
class  CompareInvMempoolOrder
 
class  CNetProcessingCleanup
 

Functions

std::atomic< int64_t > nTimeBestReceived (0)
 
std::map< uint256, COrphanTx > mapOrphanTransactions GUARDED_BY (cs_main)
 
void EraseOrphansFor (NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
 
bool GetNodeStateStats (NodeId nodeid, CNodeStateStats &stats)
 Get statistics from node state. More...
 
void RegisterNodeSignals (CNodeSignals &nodeSignals)
 Register with a network node to receive its signals. More...
 
void UnregisterNodeSignals (CNodeSignals &nodeSignals)
 Unregister a network node. More...
 
void AddToCompactExtraTransactions (const CTransactionRef &tx)
 
bool AddOrphanTx (const CTransactionRef &tx, NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
 
unsigned int LimitOrphanTxSize (unsigned int nMaxOrphans) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
 
void Misbehaving (NodeId pnode, int howmuch)
 Increase a node's misbehavior score. More...
 
uint32_t GetFetchFlags (CNode *pfrom, const CBlockIndex *pprev, const Consensus::Params &chainparams)
 
bool ProcessMessages (CNode *pfrom, CConnman &connman, const std::atomic< bool > &interruptMsgProc)
 Process protocol messages received from a given node. More...
 
bool SendMessages (CNode *pto, CConnman &connman, const std::atomic< bool > &interruptMsgProc)
 Send queued protocol messages to be sent to a give node. More...
 

Variables

class CNetProcessingCleanup instance_of_cnetprocessingcleanup
 

Function Documentation

◆ AddOrphanTx()

bool AddOrphanTx ( const CTransactionRef tx,
NodeId  peer 
)

Definition at line 607 of file net_processing.cpp.

Here is the call graph for this function:

◆ AddToCompactExtraTransactions()

void AddToCompactExtraTransactions ( const CTransactionRef tx)

Definition at line 596 of file net_processing.cpp.

Here is the call graph for this function:

◆ EraseOrphansFor()

void EraseOrphansFor ( NodeId  peer)

Definition at line 658 of file net_processing.cpp.

◆ GetFetchFlags()

uint32_t GetFetchFlags ( CNode pfrom,
const CBlockIndex pprev,
const Consensus::Params chainparams 
)

Definition at line 1145 of file net_processing.cpp.

Here is the call graph for this function:

◆ GetNodeStateStats()

bool GetNodeStateStats ( NodeId  nodeid,
CNodeStateStats stats 
)

Get statistics from node state.

Definition at line 560 of file net_processing.cpp.

Here is the caller graph for this function:

◆ GUARDED_BY()

static std::vector< std::pair< uint256, CTransactionRef > > vExtraTxnForCompact GUARDED_BY ( cs_main  )

◆ LimitOrphanTxSize()

unsigned int LimitOrphanTxSize ( unsigned int  nMaxOrphans)

Definition at line 674 of file net_processing.cpp.

Here is the call graph for this function:

◆ Misbehaving()

void Misbehaving ( NodeId  pnode,
int  howmuch 
)

Increase a node's misbehavior score.

Definition at line 711 of file net_processing.cpp.

Here is the call graph for this function:

◆ nTimeBestReceived()

std::atomic<int64_t> nTimeBestReceived ( )

◆ ProcessMessages()

bool ProcessMessages ( CNode pfrom,
CConnman connman,
const std::atomic< bool > &  interruptMsgProc 
)

Process protocol messages received from a given node.

Definition at line 2673 of file net_processing.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RegisterNodeSignals()

void RegisterNodeSignals ( CNodeSignals nodeSignals)

Register with a network node to receive its signals.

Definition at line 575 of file net_processing.cpp.

Here is the call graph for this function:

◆ SendMessages()

bool SendMessages ( CNode pto,
CConnman connman,
const std::atomic< bool > &  interrupt 
)

Send queued protocol messages to be sent to a give node.

Parameters
[in]ptoThe node which we are sending messages to.
[in]connmanThe connection manager for that node.
[in]interruptInterrupt condition for processing threads
Returns
True if there is more work to be done

Definition at line 2810 of file net_processing.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UnregisterNodeSignals()

void UnregisterNodeSignals ( CNodeSignals nodeSignals)

Unregister a network node.

Definition at line 583 of file net_processing.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ instance_of_cnetprocessingcleanup

class CNetProcessingCleanup instance_of_cnetprocessingcleanup