mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Adjust STALE_CHECK_INTERVAL to be 2.5 minutes instead of 10 minutes
This value was meant to mimic the block time in Bitcoin, so should be set to 2.5 minutes in Dash.
This commit is contained in:
parent
71d39e6a42
commit
60ef97cc41
@ -31,7 +31,7 @@ static constexpr int32_t MAX_OUTBOUND_PEERS_TO_PROTECT_FROM_DISCONNECT = 4;
|
|||||||
static constexpr int64_t CHAIN_SYNC_TIMEOUT = 20 * 60; // 20 minutes
|
static constexpr int64_t CHAIN_SYNC_TIMEOUT = 20 * 60; // 20 minutes
|
||||||
|
|
||||||
/** How frequently to check for stale tips, in seconds */
|
/** How frequently to check for stale tips, in seconds */
|
||||||
static constexpr int64_t STALE_CHECK_INTERVAL = 10 * 60; // 10 minutes
|
static constexpr int64_t STALE_CHECK_INTERVAL = 150; // 2.5 minutes (~block interval)
|
||||||
/** How frequently to check for extra outbound peers and disconnect, in seconds */
|
/** How frequently to check for extra outbound peers and disconnect, in seconds */
|
||||||
static constexpr int64_t EXTRA_PEER_CHECK_INTERVAL = 45;
|
static constexpr int64_t EXTRA_PEER_CHECK_INTERVAL = 45;
|
||||||
/** Minimum time an outbound-peer-eviction candidate must be connected for, in order to evict, in seconds */
|
/** Minimum time an outbound-peer-eviction candidate must be connected for, in order to evict, in seconds */
|
||||||
|
Loading…
Reference in New Issue
Block a user