aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2021-02-05 23:34:44 +0000
committerRoss Nicoll <[email protected]>2021-02-05 23:36:38 +0000
commita4638bb50f17718dd28481f441a30c51686013e8 (patch)
treea45750b599bec04312a4f932f9c22418c01a2022
parentMerge pull request #1669 from carsenk/master (diff)
downloaddiscoin-a4638bb50f17718dd28481f441a30c51686013e8.tar.xz
discoin-a4638bb50f17718dd28481f441a30c51686013e8.zip
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.
-rwxr-xr-xqa/pull-tester/rpc-tests.py2
-rw-r--r--src/validation.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/qa/pull-tester/rpc-tests.py b/qa/pull-tester/rpc-tests.py
index e278b7251..f36b54dc0 100755
--- a/qa/pull-tester/rpc-tests.py
+++ b/qa/pull-tester/rpc-tests.py
@@ -116,7 +116,7 @@ testScripts = [
'wallet-dump.py',
'listtransactions.py',
# vv Tests less than 60s vv
- # 'sendheaders.py',
+ 'sendheaders.py',
'zapwallettxes.py',
'importmulti.py',
'mempool_limit.py',
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;