Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/avalanche.h
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
* constitute a usable quorum. | * constitute a usable quorum. | ||||
* | * | ||||
* FIXME: The default is set to 0 to allow existing tests to pass for now. We | * FIXME: The default is set to 0 to allow existing tests to pass for now. We | ||||
* need to set a sane default and update tests later. | * need to set a sane default and update tests later. | ||||
*/ | */ | ||||
static constexpr double AVALANCHE_DEFAULT_MIN_QUORUM_CONNECTED_STAKE_RATIO = 0; | static constexpr double AVALANCHE_DEFAULT_MIN_QUORUM_CONNECTED_STAKE_RATIO = 0; | ||||
/** | /** | ||||
* Default minimum number of nodes that sent us an avaproofs message before we | |||||
* can consider our quorum suitable for polling. | |||||
* | |||||
* FIXME: The default is set to 0 to allow existing tests to pass for now. We | |||||
* need to set a sane default and update tests later. | |||||
*/ | |||||
static constexpr double AVALANCHE_DEFAULT_MIN_AVAPROOFS_NODE_COUNT = 0; | |||||
/** | |||||
* 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 |