From e29e13aae8aed451a7d693dd0360f662bea0b6a2 Mon Sep 17 00:00:00 2001 From: Ross Nicoll Date: Mon, 17 May 2021 13:15:46 +0100 Subject: [PATCH] Adjust download timeouts to handle shorter block interval (#1866) --- src/net_processing.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 98e3d90c2..cbb448649 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -107,10 +107,10 @@ static const int MAX_BLOCKTXN_DEPTH = 10; * degree of disordering of blocks on disk (which make reindexing and pruning harder). We'll probably * want to make this a per-peer adaptive value at some point. */ static const unsigned int BLOCK_DOWNLOAD_WINDOW = 1024; -/** 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; /** Maximum number of headers to announce when relaying blocks with headers message.*/ static const unsigned int MAX_BLOCKS_TO_ANNOUNCE = 8; /** Maximum number of unconnecting headers announcements before DoS score */