PIVX Core  5.6.99
P2P Digital Currency
Classes | Functions | Variables
net_processing.cpp File Reference
#include "net_processing.h"
#include "budget/budgetmanager.h"
#include "chain.h"
#include "evo/deterministicmns.h"
#include "evo/mnauth.h"
#include "llmq/quorums_blockprocessor.h"
#include "llmq/quorums_chainlocks.h"
#include "llmq/quorums_dkgsessionmgr.h"
#include "llmq/quorums_signing.h"
#include "masternode-payments.h"
#include "masternode-sync.h"
#include "masternodeman.h"
#include "merkleblock.h"
#include "netbase.h"
#include "netmessagemaker.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "spork.h"
#include "sporkdb.h"
#include "streams.h"
#include "tiertwo/tiertwo_sync_state.h"
#include "util/validation.h"
#include "validation.h"
#include <chrono>
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::map< uint256, COrphanTx > mapOrphanTransactions GUARDED_BY (g_cs_orphans)
 
void EraseOrphansFor (NodeId peer)
 For random eviction. More...
 
bool GetNodeStateStats (NodeId nodeid, CNodeStateStats &stats)
 Get statistics from node state. More...
 
bool AddOrphanTx (const CTransactionRef &tx, NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans)
 
unsigned int LimitOrphanTxSize (unsigned int nMaxOrphans)
 
void Misbehaving (NodeId pnode, int howmuch, const std::string &message) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
 Increase a node's misbehavior score. More...
 
bool IsBanned (NodeId pnode)
 

Variables

RecursiveMutex g_cs_orphans
 
bool fRequestedSporksIDB = false
 
class CNetProcessingCleanup instance_of_cnetprocessingcleanup
 

Function Documentation

◆ AddOrphanTx()

bool AddOrphanTx ( const CTransactionRef tx,
NodeId  peer 
)

Definition at line 517 of file net_processing.cpp.

◆ EraseOrphansFor()

void EraseOrphansFor ( NodeId  peer)

For random eviction.

Definition at line 578 of file net_processing.cpp.

Here is the caller graph for this function:

◆ GetNodeStateStats()

bool GetNodeStateStats ( NodeId  nodeid,
CNodeStateStats stats 
)

Get statistics from node state.

Definition at line 493 of file net_processing.cpp.

Here is the caller graph for this function:

◆ GUARDED_BY()

std::vector< std::map< uint256, COrphanTx >::iterator > g_orphan_list GUARDED_BY ( g_cs_orphans  )

◆ IsBanned()

bool IsBanned ( NodeId  pnode)

Definition at line 649 of file net_processing.cpp.

Here is the caller graph for this function:

◆ LimitOrphanTxSize()

unsigned int LimitOrphanTxSize ( unsigned int  nMaxOrphans)

Definition at line 593 of file net_processing.cpp.

Here is the call graph for this function:

◆ Misbehaving()

void Misbehaving ( NodeId  pnode,
int  howmuch,
const std::string &  message 
)

Increase a node's misbehavior score.

Definition at line 628 of file net_processing.cpp.

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

Variable Documentation

◆ fRequestedSporksIDB

bool fRequestedSporksIDB = false

Definition at line 1226 of file net_processing.cpp.

◆ g_cs_orphans

RecursiveMutex g_cs_orphans

Definition at line 59 of file net_processing.cpp.

◆ instance_of_cnetprocessingcleanup

class CNetProcessingCleanup instance_of_cnetprocessingcleanup