5 #ifndef BITCOIN_AVALANCHE_AVALANCHE_H
6 #define BITCOIN_AVALANCHE_AVALANCHE_H
47 int64_t(1'000'000'000'000) *
SATOSHI;
65 extern std::unique_ptr<avalanche::Processor>
g_avalanche;
static constexpr Amount SATOSHI
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 quo...
bool isAvalancheEnabled(const ArgsManager &argsman)
static constexpr size_t AVALANCHE_DEFAULT_PEER_REPLACEMENT_COOLDOWN
Peer replacement cooldown time default value in seconds.
static constexpr double AVALANCHE_DEFAULT_MIN_AVAPROOFS_NODE_COUNT
Default minimum number of nodes that sent us an avaproofs message before we can consider our quorum s...
static constexpr Amount AVALANCHE_DEFAULT_MIN_QUORUM_STAKE
Default minimum cumulative stake of all known peers that constitutes a usable quorum.
static constexpr size_t AVALANCHE_DEFAULT_CONFLICTING_PROOF_COOLDOWN
Conflicting proofs cooldown time default value in seconds.
static constexpr bool AVALANCHE_DEFAULT_ENABLED
Is avalanche enabled by default.
std::unique_ptr< avalanche::Processor > g_avalanche
Global avalanche instance.
static constexpr size_t AVALANCHE_DEFAULT_COOLDOWN
Avalanche default cooldown in milliseconds.