From a4638bb50f17718dd28481f441a30c51686013e8 Mon Sep 17 00:00:00 2001 From: Ross Nicoll Date: Fri, 5 Feb 2021 23:34:44 +0000 Subject: Adapt block download timeouts to Dogecoin Block download timeouts are expressed as a fraction of block interval time, so Dogecoin values have been too aggressive. Matching Bitcoin values as a starting point. --- src/validation.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/validation.h') diff --git a/src/validation.h b/src/validation.h index 1dd68b298..714422ac9 100644 --- a/src/validation.h +++ b/src/validation.h @@ -120,9 +120,9 @@ 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; +static const int64_t BLOCK_DOWNLOAD_TIMEOUT_BASE = 10000000; /** Additional block download timeout per parallel downloading peer (i.e. 5 min) */ -static const int64_t BLOCK_DOWNLOAD_TIMEOUT_PER_PEER = 500000; +static const int64_t BLOCK_DOWNLOAD_TIMEOUT_PER_PEER = 5000000; static const unsigned int DEFAULT_LIMITFREERELAY = 0; static const bool DEFAULT_RELAYPRIORITY = true; -- cgit v1.2.3 From f9b9a591b837675dac6d0fa39e1ba0d5546852f6 Mon Sep 17 00:00:00 2001 From: Ross Nicoll Date: Sun, 7 Feb 2021 22:57:46 +0000 Subject: Halve timeouts --- src/validation.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/validation.h') diff --git a/src/validation.h b/src/validation.h index 714422ac9..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 = 10000000; -/** Additional block download timeout per parallel downloading peer (i.e. 5 min) */ -static const int64_t BLOCK_DOWNLOAD_TIMEOUT_PER_PEER = 5000000; +/** 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; -- cgit v1.2.3