Bitcoin ABC 0.30.5
P2P Digital Currency
Public Attributes | List of all members
PeerManager::Options Struct Reference

#include <net_processing.h>

Public Attributes

bool ignore_incoming_txs {DEFAULT_BLOCKSONLY}
 Whether this node is running in -blocksonly mode. More...
 
uint32_t max_orphan_txs {DEFAULT_MAX_ORPHAN_TRANSACTIONS}
 Maximum number of orphan transactions kept in memory. More...
 
uint32_t max_conflicting_txs {DEFAULT_MAX_CONFLICTING_TRANSACTIONS}
 Maximum number of conflicting transactions kept in memory. More...
 
uint32_t max_extra_txs {DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN}
 Number of non-mempool transactions to keep around for block reconstruction. More...
 
bool capture_messages {false}
 Whether all P2P messages are captured to disk. More...
 
size_t max_addr_to_send {MAX_ADDR_TO_SEND}
 Number of addresses a node may send in an ADDR message. More...
 
int64_t avalanche_cooldown {AVALANCHE_DEFAULT_COOLDOWN}
 Minimum time between two AVAPOLL messages. More...
 
int64_t avalanche_peer_replacement_cooldown
 Minimum time before we will consider replacing a finalized proof with a conflicting one. More...
 
bool avalanche_preconsensus {DEFAULT_AVALANCHE_PRECONSENSUS}
 Whether this node has enabled avalanche preconsensus. More...
 
bool avalanche_staking_preconsensus
 Whether this node has enabled avalanche staking rewards preconsensus. More...
 
bool deterministic_rng {false}
 Whether or not the internal RNG behaves deterministically (this is a test-only option). More...
 

Detailed Description

Definition at line 71 of file net_processing.h.

Member Data Documentation

◆ avalanche_cooldown

int64_t PeerManager::Options::avalanche_cooldown {AVALANCHE_DEFAULT_COOLDOWN}

Minimum time between two AVAPOLL messages.

Definition at line 89 of file net_processing.h.

◆ avalanche_peer_replacement_cooldown

int64_t PeerManager::Options::avalanche_peer_replacement_cooldown
Initial value:
{
static constexpr size_t AVALANCHE_DEFAULT_PEER_REPLACEMENT_COOLDOWN
Peer replacement cooldown time default value in seconds.
Definition: avalanche.h:34

Minimum time before we will consider replacing a finalized proof with a conflicting one.

Definition at line 92 of file net_processing.h.

◆ avalanche_preconsensus

bool PeerManager::Options::avalanche_preconsensus {DEFAULT_AVALANCHE_PRECONSENSUS}

Whether this node has enabled avalanche preconsensus.

Definition at line 95 of file net_processing.h.

◆ avalanche_staking_preconsensus

bool PeerManager::Options::avalanche_staking_preconsensus
Initial value:
{
static constexpr bool DEFAULT_AVALANCHE_STAKING_PRECONSENSUS
Default for -avalanchestakingpreconsensus.
Definition: avalanche.h:69

Whether this node has enabled avalanche staking rewards preconsensus.

Definition at line 98 of file net_processing.h.

◆ capture_messages

bool PeerManager::Options::capture_messages {false}

Whether all P2P messages are captured to disk.

Definition at line 82 of file net_processing.h.

◆ deterministic_rng

bool PeerManager::Options::deterministic_rng {false}

Whether or not the internal RNG behaves deterministically (this is a test-only option).

Definition at line 103 of file net_processing.h.

◆ ignore_incoming_txs

bool PeerManager::Options::ignore_incoming_txs {DEFAULT_BLOCKSONLY}

Whether this node is running in -blocksonly mode.

Definition at line 73 of file net_processing.h.

◆ max_addr_to_send

size_t PeerManager::Options::max_addr_to_send {MAX_ADDR_TO_SEND}

Number of addresses a node may send in an ADDR message.

This can be modified for tests only. Changing it on main net may cause disconnections.

Definition at line 86 of file net_processing.h.

◆ max_conflicting_txs

uint32_t PeerManager::Options::max_conflicting_txs {DEFAULT_MAX_CONFLICTING_TRANSACTIONS}

Maximum number of conflicting transactions kept in memory.

Definition at line 77 of file net_processing.h.

◆ max_extra_txs

uint32_t PeerManager::Options::max_extra_txs {DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN}

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

Includes orphan and rejected transactions.

Definition at line 80 of file net_processing.h.

◆ max_orphan_txs

uint32_t PeerManager::Options::max_orphan_txs {DEFAULT_MAX_ORPHAN_TRANSACTIONS}

Maximum number of orphan transactions kept in memory.

Definition at line 75 of file net_processing.h.


The documentation for this struct was generated from the following file: