Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/avalanche.h
Show All 19 Lines | |||||
static constexpr bool AVALANCHE_DEFAULT_ENABLED = false; | static constexpr bool AVALANCHE_DEFAULT_ENABLED = false; | ||||
/** | /** | ||||
* Is avalanche peer discovery enabled by default. | * Is avalanche peer discovery enabled by default. | ||||
*/ | */ | ||||
static constexpr bool AVALANCHE_DEFAULT_PEER_DISCOVERY_ENABLED = false; | static constexpr bool AVALANCHE_DEFAULT_PEER_DISCOVERY_ENABLED = false; | ||||
/** | /** | ||||
* Conflicting proofs cooldown time default value in seconds. | |||||
* Minimal delay between two proofs with at least a common UTXO. | |||||
*/ | |||||
static constexpr size_t AVALANCHE_DEFAULT_CONFLICTING_PROOF_COOLDOWN = 60; | |||||
/** | |||||
* Avalanche default cooldown in milliseconds. | * Avalanche default cooldown in milliseconds. | ||||
*/ | */ | ||||
static constexpr size_t AVALANCHE_DEFAULT_COOLDOWN = 100; | static constexpr size_t AVALANCHE_DEFAULT_COOLDOWN = 100; | ||||
/** | /** | ||||
* 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 |