Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/avalanche.h
Show All 25 Lines | |||||
/** | /** | ||||
* Conflicting proofs cooldown time default value in seconds. | * Conflicting proofs cooldown time default value in seconds. | ||||
* Minimal delay between two proofs with at least a common UTXO. | * Minimal delay between two proofs with at least a common UTXO. | ||||
*/ | */ | ||||
static constexpr size_t AVALANCHE_DEFAULT_CONFLICTING_PROOF_COOLDOWN = 60; | static constexpr size_t AVALANCHE_DEFAULT_CONFLICTING_PROOF_COOLDOWN = 60; | ||||
/** | /** | ||||
* Peer replacement cooldown time default value in seconds. | |||||
* Minimal delay before a peer can be replaced due to a conflicting proof. | |||||
*/ | |||||
static constexpr size_t AVALANCHE_DEFAULT_PEER_REPLACEMENT_COOLDOWN = 60 * 60; | |||||
/** | |||||
* Is proof replacement enabled by default. | * Is proof replacement enabled by default. | ||||
*/ | */ | ||||
static constexpr bool AVALANCHE_DEFAULT_PROOF_REPLACEMENT_ENABLED = false; | static constexpr bool AVALANCHE_DEFAULT_PROOF_REPLACEMENT_ENABLED = false; | ||||
/** | /** | ||||
* 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; | ||||
Show All 9 Lines |