Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/avalanche.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Default minimum number of nodes that sent us an avaproofs message before we | * Default minimum number of nodes that sent us an avaproofs message before we | ||||
* can consider our quorum suitable for polling. | * can consider our quorum suitable for polling. | ||||
*/ | */ | ||||
static constexpr double AVALANCHE_DEFAULT_MIN_AVAPROOFS_NODE_COUNT = 8; | static constexpr double AVALANCHE_DEFAULT_MIN_AVAPROOFS_NODE_COUNT = 8; | ||||
/** | /** | ||||
* Is post-consensus policy for early block penalty enabled by default? | |||||
*/ | |||||
static constexpr bool AVALANCHE_POLICY_EARLY_BLOCK_PENALTY_DEFAULT_ENABLED = | |||||
false; | |||||
/** | |||||
* Global avalanche instance. | * Global avalanche instance. | ||||
*/ | */ | ||||
extern std::unique_ptr<avalanche::Processor> g_avalanche; | extern std::unique_ptr<avalanche::Processor> g_avalanche; | ||||
bool isAvalancheEnabled(const ArgsManager &argsman); | bool isAvalancheEnabled(const ArgsManager &argsman); | ||||
#endif // BITCOIN_AVALANCHE_AVALANCHE_H | #endif // BITCOIN_AVALANCHE_AVALANCHE_H |