Bitcoin ABC 0.30.5
P2P Digital Currency
Classes | Namespaces | Variables
net_processing.h File Reference
#include <avalanche/avalanche.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

struct  CNodeStateStats
 
class  PeerManager
 
struct  PeerManager::Options
 

Namespaces

namespace  avalanche
 

Variables

static const uint32_t DEFAULT_MAX_ORPHAN_TRANSACTIONS {100}
 Default for -maxorphantx, maximum number of orphan transactions kept in memory. More...
 
static const uint32_t DEFAULT_MAX_CONFLICTING_TRANSACTIONS {100}
 Maximum number of conflicting transactions kept in memory. More...
 
static const uint32_t DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN {100}
 Default number of non-mempool transactions to keep around for block reconstruction. More...
 
static const bool DEFAULT_PEERBLOCKFILTERS = false
 
static const int DISCOURAGEMENT_THRESHOLD {100}
 Threshold for marking a node to be discouraged, e.g. More...
 
static const unsigned int MAX_CMPCTBLOCKS_INFLIGHT_PER_BLOCK = 3
 Maximum number of outstanding CMPCTBLOCK requests for the same block. More...
 
static constexpr size_t MAX_ADDR_TO_SEND {1000}
 The maximum number of address records permitted in an ADDR message. More...
 
static const unsigned int MAX_HEADERS_RESULTS = 2000
 Number of headers sent in one getheaders result. More...
 

Variable Documentation

◆ DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN

const uint32_t DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN {100}
static

Default number of non-mempool transactions to keep around for block reconstruction.

Includes orphan and rejected transactions.

Definition at line 37 of file net_processing.h.

◆ DEFAULT_MAX_CONFLICTING_TRANSACTIONS

const uint32_t DEFAULT_MAX_CONFLICTING_TRANSACTIONS {100}
static

Maximum number of conflicting transactions kept in memory.

Definition at line 32 of file net_processing.h.

◆ DEFAULT_MAX_ORPHAN_TRANSACTIONS

const uint32_t DEFAULT_MAX_ORPHAN_TRANSACTIONS {100}
static

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

Definition at line 28 of file net_processing.h.

◆ DEFAULT_PEERBLOCKFILTERS

const bool DEFAULT_PEERBLOCKFILTERS = false
static

Definition at line 38 of file net_processing.h.

◆ DISCOURAGEMENT_THRESHOLD

const int DISCOURAGEMENT_THRESHOLD {100}
static

Threshold for marking a node to be discouraged, e.g.

disconnected and added to the discouragement filter.

Definition at line 41 of file net_processing.h.

◆ MAX_ADDR_TO_SEND

constexpr size_t MAX_ADDR_TO_SEND {1000}
staticconstexpr

The maximum number of address records permitted in an ADDR message.

Definition at line 45 of file net_processing.h.

◆ MAX_CMPCTBLOCKS_INFLIGHT_PER_BLOCK

const unsigned int MAX_CMPCTBLOCKS_INFLIGHT_PER_BLOCK = 3
static

Maximum number of outstanding CMPCTBLOCK requests for the same block.

Definition at line 43 of file net_processing.h.

◆ MAX_HEADERS_RESULTS

const unsigned int MAX_HEADERS_RESULTS = 2000
static

Number of headers sent in one getheaders result.

We rely on the assumption that if a peer sends less than this number, we reached its tip. Changing this value is a protocol upgrade.

Definition at line 52 of file net_processing.h.