Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Namespaces | Variables
avalanche.h File Reference
#include <cstddef>
#include <memory>
#include <consensus/amount.h>
Include dependency graph for avalanche.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  avalanche
 

Variables

static constexpr bool AVALANCHE_DEFAULT_ENABLED = true
 Is avalanche enabled by default.
 
static constexpr size_t AVALANCHE_DEFAULT_CONFLICTING_PROOF_COOLDOWN = 60
 Conflicting proofs cooldown time default value in seconds.
 
static constexpr size_t AVALANCHE_DEFAULT_PEER_REPLACEMENT_COOLDOWN
 Peer replacement cooldown time default value in seconds.
 
static constexpr size_t AVALANCHE_DEFAULT_COOLDOWN = 100
 Avalanche default cooldown in milliseconds.
 
static constexpr Amount AVALANCHE_DEFAULT_MIN_QUORUM_STAKE
 Default minimum cumulative stake of all known peers that constitutes a usable quorum.
 
static constexpr double AVALANCHE_DEFAULT_MIN_QUORUM_CONNECTED_STAKE_RATIO
 Default minimum percentage of stake-weighted peers we must have a node for to constitute a usable quorum.
 
static constexpr double AVALANCHE_DEFAULT_MIN_AVAPROOFS_NODE_COUNT = 8
 Default minimum number of nodes that sent us an avaproofs message before we can consider our quorum suitable for polling.
 
static constexpr bool DEFAULT_PERSIST_AVAPEERS {true}
 Default for -persistavapeers.
 
static constexpr bool DEFAULT_AVALANCHE_PRECONSENSUS {false}
 Default for -avalanchepreconsensus.
 
static constexpr bool DEFAULT_AVALANCHE_STAKING_PRECONSENSUS {false}
 Default for -avalanchestakingpreconsensus.
 

Variable Documentation

◆ AVALANCHE_DEFAULT_CONFLICTING_PROOF_COOLDOWN

constexpr size_t AVALANCHE_DEFAULT_CONFLICTING_PROOF_COOLDOWN = 60
staticconstexpr

Conflicting proofs cooldown time default value in seconds.

Minimal delay between two proofs with at least a common UTXO.

Definition at line 28 of file avalanche.h.

◆ AVALANCHE_DEFAULT_COOLDOWN

constexpr size_t AVALANCHE_DEFAULT_COOLDOWN = 100
staticconstexpr

Avalanche default cooldown in milliseconds.

Definition at line 40 of file avalanche.h.

◆ AVALANCHE_DEFAULT_ENABLED

constexpr bool AVALANCHE_DEFAULT_ENABLED = true
staticconstexpr

Is avalanche enabled by default.

Definition at line 22 of file avalanche.h.

◆ AVALANCHE_DEFAULT_MIN_AVAPROOFS_NODE_COUNT

constexpr double AVALANCHE_DEFAULT_MIN_AVAPROOFS_NODE_COUNT = 8
staticconstexpr

Default minimum number of nodes that sent us an avaproofs message before we can consider our quorum suitable for polling.

Definition at line 60 of file avalanche.h.

◆ AVALANCHE_DEFAULT_MIN_QUORUM_CONNECTED_STAKE_RATIO

constexpr double AVALANCHE_DEFAULT_MIN_QUORUM_CONNECTED_STAKE_RATIO
staticconstexpr
Initial value:
=
0.8

Default minimum percentage of stake-weighted peers we must have a node for to constitute a usable quorum.

Definition at line 53 of file avalanche.h.

◆ AVALANCHE_DEFAULT_MIN_QUORUM_STAKE

constexpr Amount AVALANCHE_DEFAULT_MIN_QUORUM_STAKE
staticconstexpr
Initial value:
=
int64_t(1'000'000'000'000) * SATOSHI
static constexpr Amount SATOSHI
Definition amount.h:143
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85

Default minimum cumulative stake of all known peers that constitutes a usable quorum.

Definition at line 46 of file avalanche.h.

◆ AVALANCHE_DEFAULT_PEER_REPLACEMENT_COOLDOWN

constexpr size_t AVALANCHE_DEFAULT_PEER_REPLACEMENT_COOLDOWN
staticconstexpr
Initial value:
=
24 * 60 * 60

Peer replacement cooldown time default value in seconds.

Minimal delay before a peer can be replaced due to a conflicting proof.

Definition at line 34 of file avalanche.h.

◆ DEFAULT_AVALANCHE_PRECONSENSUS

constexpr bool DEFAULT_AVALANCHE_PRECONSENSUS {false}
staticconstexpr

Default for -avalanchepreconsensus.

Definition at line 66 of file avalanche.h.

◆ DEFAULT_AVALANCHE_STAKING_PRECONSENSUS

constexpr bool DEFAULT_AVALANCHE_STAKING_PRECONSENSUS {false}
staticconstexpr

Default for -avalanchestakingpreconsensus.

Definition at line 69 of file avalanche.h.

◆ DEFAULT_PERSIST_AVAPEERS

constexpr bool DEFAULT_PERSIST_AVAPEERS {true}
staticconstexpr

Default for -persistavapeers.

Definition at line 63 of file avalanche.h.