Bitcoin
Classes | Functions | Variables
net_processing.h File Reference
#include <net.h>
#include <validationinterface.h>
#include <consensus/params.h>
#include <sync.h>

Go to the source code of this file.

Classes

class  PeerLogicValidation
 
struct  CNodeStateStats
 

Functions

bool GetNodeStateStats (NodeId nodeid, CNodeStateStats &stats)
 

Variables

CCriticalSection cs_main
 
static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100
 
static const unsigned int DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN = 100
 
static constexpr bool DEFAULT_ENABLE_BIP61 {false}
 

Function Documentation

◆ GetNodeStateStats()

bool GetNodeStateStats ( NodeId  nodeid,
CNodeStateStats stats 
)

Get statistics from node state

Variable Documentation

◆ 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.

◆ 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

◆ DEFAULT_ENABLE_BIP61

constexpr bool DEFAULT_ENABLE_BIP61 {false}
static

Default for BIP61 (sending reject messages)

◆ DEFAULT_MAX_ORPHAN_TRANSACTIONS

const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100
static

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