Raven Core  3.0.0
P2P Digital Currency
Classes | Functions | Variables
net_processing.cpp File Reference
#include "net_processing.h"
#include "addrman.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 "reverse_iterator.h"
#include "scheduler.h"
#include "tinyformat.h"
#include "txmempool.h"
#include "ui_interface.h"
#include "util.h"
#include "utilmoneystr.h"
#include "utilstrencodings.h"
#include "validationinterface.h"
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 IsOutboundDisconnectionCandidate (const CNode *node)
 
bool GetNodeStateStats (NodeId nodeid, CNodeStateStats &stats)
 Get statistics from node state. 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)
 

Variables

class CNetProcessingCleanup instance_of_cnetprocessingcleanup
 

Function Documentation

◆ AddOrphanTx()

bool AddOrphanTx ( const CTransactionRef tx,
NodeId  peer 
)

Definition at line 639 of file net_processing.cpp.

◆ AddToCompactExtraTransactions()

void AddToCompactExtraTransactions ( const CTransactionRef tx)

Definition at line 628 of file net_processing.cpp.

Here is the call graph for this function:

◆ EraseOrphansFor()

void EraseOrphansFor ( NodeId  peer)

Definition at line 690 of file net_processing.cpp.

Here is the caller graph for this function:

◆ GetFetchFlags()

uint32_t GetFetchFlags ( CNode pfrom)

Definition at line 1280 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 608 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  )

◆ IsOutboundDisconnectionCandidate()

bool IsOutboundDisconnectionCandidate ( const CNode node)

Definition at line 556 of file net_processing.cpp.

Here is the caller graph for this function:

◆ LimitOrphanTxSize()

unsigned int LimitOrphanTxSize ( unsigned int  nMaxOrphans)

Definition at line 706 of file net_processing.cpp.

Here is the call graph for this function:

◆ Misbehaving()

void Misbehaving ( NodeId  nodeid,
int  howmuch 
)

Increase a node's misbehavior score.

Definition at line 743 of file net_processing.cpp.

Here is the call graph for this function:

◆ nTimeBestReceived()

std::atomic<int64_t> nTimeBestReceived ( )

Variable Documentation

◆ instance_of_cnetprocessingcleanup

class CNetProcessingCleanup instance_of_cnetprocessingcleanup