Bitcoin Core  0.20.99
P2P Digital Currency
Classes | Functions | Variables
net_processing.h File Reference
#include <consensus/params.h>
#include <net.h>
#include <sync.h>
#include <validationinterface.h>
Include dependency graph for net_processing.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PeerLogicValidation
 
struct  CNodeStateStats
 

Functions

bool GetNodeStateStats (NodeId nodeid, CNodeStateStats &stats)
 Get statistics from node state. More...
 
void RelayTransaction (const uint256 &, const CConnman &connman)
 Relay transaction to every node. More...
 

Variables

RecursiveMutex cs_main
 Mutex to guard access to validation specific variables, such as reading or changing the chainstate. More...
 
RecursiveMutex g_cs_orphans
 
static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100
 Default for -maxorphantx, maximum number of orphan transactions kept in memory. More...
 
static const unsigned int DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN = 100
 Default number of orphan+recently-replaced txn to keep around for block reconstruction. More...
 
static const bool DEFAULT_PEERBLOOMFILTERS = false
 
static const bool DEFAULT_PEERBLOCKFILTERS = false
 

Function Documentation

◆ GetNodeStateStats()

bool GetNodeStateStats ( NodeId  nodeid,
CNodeStateStats stats 
)

Get statistics from node state.

Definition at line 870 of file net_processing.cpp.

Here is the caller graph for this function:

◆ RelayTransaction()

void RelayTransaction ( const uint256 ,
const CConnman connman 
)

Relay transaction to every node.

Definition at line 1417 of file net_processing.cpp.

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

Variable Documentation

◆ cs_main

RecursiveMutex cs_main

Mutex to guard access to validation specific variables, such as reading or changing the chainstate.

This may also need to be locked when updating the transaction pool, e.g. on AcceptToMemoryPool. See CTxMemPool::cs comment for details.

The transaction pool has a separate lock to allow reading from it and the chainstate at the same time.

Definition at line 128 of file validation.cpp.

◆ DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN

const unsigned int DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN = 100
static

Default number of orphan+recently-replaced txn to keep around for block reconstruction.

Definition at line 23 of file net_processing.h.

◆ DEFAULT_MAX_ORPHAN_TRANSACTIONS

const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100
static

Default for -maxorphantx, maximum number of orphan transactions kept in memory.

Definition at line 21 of file net_processing.h.

◆ DEFAULT_PEERBLOCKFILTERS

const bool DEFAULT_PEERBLOCKFILTERS = false
static

Definition at line 25 of file net_processing.h.

◆ DEFAULT_PEERBLOOMFILTERS

const bool DEFAULT_PEERBLOOMFILTERS = false
static

Definition at line 24 of file net_processing.h.

◆ g_cs_orphans

RecursiveMutex g_cs_orphans

Definition at line 141 of file net_processing.cpp.