BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
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 <validation.h>
#include <merkleblock.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 <memory>
Include dependency graph for net_processing.cpp:

Go to the source code of this file.

Classes

struct  COrphanTx
 
class  CNetProcessingCleanup
 

Functions

std::map< uint256, COrphanTx > mapOrphanTransactions GUARDED_BY (g_cs_orphans)
 
void EraseOrphansFor (NodeId peer)
 
void Misbehaving (NodeId nodeid, int howmuch, const std::string &message="") EXCLUSIVE_LOCKS_REQUIRED(cs_main)
 Increase a node's misbehavior score. More...
 
void UpdateLastBlockAnnounceTime (NodeId node, int64_t time_in_seconds)
 
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)
 

Variables

CCriticalSection g_cs_orphans
 
class CNetProcessingCleanup instance_of_cnetprocessingcleanup
 

Function Documentation

◆ AddOrphanTx()

bool AddOrphanTx ( const CTransactionRef tx,
NodeId  peer 
)

Definition at line 689 of file net_processing.cpp.

◆ EraseOrphansFor()

void EraseOrphansFor ( NodeId  peer)

Definition at line 740 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 658 of file net_processing.cpp.

◆ GUARDED_BY()

std::map<uint256, COrphanTx> mapOrphanTransactions GUARDED_BY ( g_cs_orphans  )

◆ LimitOrphanTxSize()

unsigned int LimitOrphanTxSize ( unsigned int  nMaxOrphans)

Definition at line 757 of file net_processing.cpp.

Here is the call graph for this function:

◆ Misbehaving()

void Misbehaving ( NodeId  nodeid,
int  howmuch,
const std::string &  message = "" 
)

Increase a node's misbehavior score.

Mark a misbehaving peer to be banned depending upon the value of -banscore.

Definition at line 798 of file net_processing.cpp.

Here is the call graph for this function:

◆ UpdateLastBlockAnnounceTime()

void UpdateLastBlockAnnounceTime ( NodeId  node,
int64_t  time_in_seconds 
)

Definition at line 597 of file net_processing.cpp.

Variable Documentation

◆ g_cs_orphans

CCriticalSection g_cs_orphans

Definition at line 73 of file net_processing.cpp.

◆ instance_of_cnetprocessingcleanup

class CNetProcessingCleanup instance_of_cnetprocessingcleanup