Merge pull request #1705 from rnicoll/block-download-timeout

Adapt block download timeouts to Dogecoin
This commit is contained in:
Patrick Lodder 2021-02-08 10:50:23 +01:00 committed by GitHub
commit d96b5daafa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -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',

View file

@ -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;