Bitcoin ABC 0.32.10
P2P Digital Currency
avalanche.h
Go to the documentation of this file.
1// Copyright (c) 2021 The Bitcoin developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#ifndef BITCOIN_AVALANCHE_AVALANCHE_H
6#define BITCOIN_AVALANCHE_AVALANCHE_H
7
8#include <cstddef>
9
10#include <consensus/amount.h>
11
15static constexpr bool AVALANCHE_DEFAULT_ENABLED = true;
16
22
28 24 * 60 * 60;
29
33static constexpr size_t AVALANCHE_DEFAULT_COOLDOWN = 100;
34
40 int64_t(1'000'000'000'000) * SATOSHI; // 10B XEC
41
47 0.8;
48
54
56static constexpr bool DEFAULT_PERSIST_AVAPEERS{true};
57
59static constexpr bool DEFAULT_AVALANCHE_PRECONSENSUS{true};
60
62static constexpr bool DEFAULT_AVALANCHE_STAKING_PRECONSENSUS{true};
63
65static constexpr bool DEFAULT_AVALANCHE_MINING_PRECONSENSUS{true};
66
67#endif // BITCOIN_AVALANCHE_AVALANCHE_H
static constexpr Amount SATOSHI
Definition: amount.h:148
static constexpr bool DEFAULT_PERSIST_AVAPEERS
Default for -persistavapeers.
Definition: avalanche.h:56
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...
Definition: avalanche.h:46
static constexpr bool DEFAULT_AVALANCHE_STAKING_PRECONSENSUS
Default for -avalanchestakingpreconsensus.
Definition: avalanche.h:62
static constexpr size_t AVALANCHE_DEFAULT_PEER_REPLACEMENT_COOLDOWN
Peer replacement cooldown time default value in seconds.
Definition: avalanche.h:27
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...
Definition: avalanche.h:53
static constexpr bool DEFAULT_AVALANCHE_PRECONSENSUS
Default for -avalanchepreconsensus.
Definition: avalanche.h:59
static constexpr Amount AVALANCHE_DEFAULT_MIN_QUORUM_STAKE
Default minimum cumulative stake of all known peers that constitutes a usable quorum.
Definition: avalanche.h:39
static constexpr size_t AVALANCHE_DEFAULT_CONFLICTING_PROOF_COOLDOWN
Conflicting proofs cooldown time default value in seconds.
Definition: avalanche.h:21
static constexpr bool DEFAULT_AVALANCHE_MINING_PRECONSENSUS
Default for -avalanchepreconsensusmining.
Definition: avalanche.h:65
static constexpr bool AVALANCHE_DEFAULT_ENABLED
Is avalanche enabled by default.
Definition: avalanche.h:15
static constexpr size_t AVALANCHE_DEFAULT_COOLDOWN
Avalanche default cooldown in milliseconds.
Definition: avalanche.h:33
Definition: amount.h:21