diff options
| author | Patrick Lodder <[email protected]> | 2021-02-08 10:50:23 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-08 10:50:23 +0100 |
| commit | d96b5daafa525b2c67eb9c7a9405aea3f76b3b2c (patch) | |
| tree | bee9a74f922926c53d23f4336fc1bdcfe983463a /src/validation.h | |
| parent | Merge pull request #1706 from slightlyskepticalpotat/master (diff) | |
| parent | Revert ltc_scrypt -> litecoin_scrypt (diff) | |
| download | discoin-d96b5daafa525b2c67eb9c7a9405aea3f76b3b2c.tar.xz discoin-d96b5daafa525b2c67eb9c7a9405aea3f76b3b2c.zip | |
Merge pull request #1705 from rnicoll/block-download-timeout
Adapt block download timeouts to Dogecoin
Diffstat (limited to 'src/validation.h')
| -rw-r--r-- | src/validation.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/validation.h b/src/validation.h index 1dd68b298..386979a14 100644 --- a/src/validation.h +++ b/src/validation.h @@ -119,10 +119,10 @@ static const unsigned int INVENTORY_BROADCAST_MAX = 7 * INVENTORY_BROADCAST_INTE static const unsigned int AVG_FEEFILTER_BROADCAST_INTERVAL = 10 * 60; /** Maximum feefilter broadcast delay after significant change. */ static const unsigned int MAX_FEEFILTER_CHANGE_DELAY = 5 * 60; -/** Block download timeout base, expressed in millionths of the block interval (i.e. 10 min) */ -static const int64_t BLOCK_DOWNLOAD_TIMEOUT_BASE = 1000000; -/** Additional block download timeout per parallel downloading peer (i.e. 5 min) */ -static const int64_t BLOCK_DOWNLOAD_TIMEOUT_PER_PEER = 500000; +/** Block download timeout base, expressed in millionths of the block interval (i.e. 5 min) */ +static const int64_t BLOCK_DOWNLOAD_TIMEOUT_BASE = 5000000; +/** Additional block download timeout per parallel downloading peer (i.e. 2.5 min) */ +static const int64_t BLOCK_DOWNLOAD_TIMEOUT_PER_PEER = 2500000; static const unsigned int DEFAULT_LIMITFREERELAY = 0; static const bool DEFAULT_RELAYPRIORITY = true; |