diff options
| author | Ross Nicoll <[email protected]> | 2021-05-17 13:15:46 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-17 13:15:46 +0100 |
| commit | e29e13aae8aed451a7d693dd0360f662bea0b6a2 (patch) | |
| tree | 7fa2454b3fadbdfb958e7ce2b42f2cdebad942d9 /src/net_processing.cpp | |
| parent | 1.21 key prefix (#1710) (diff) | |
| download | discoin-e29e13aae8aed451a7d693dd0360f662bea0b6a2.tar.xz discoin-e29e13aae8aed451a7d693dd0360f662bea0b6a2.zip | |
Adjust download timeouts to handle shorter block interval (#1866)
Diffstat (limited to 'src/net_processing.cpp')
| -rw-r--r-- | src/net_processing.cpp | 8 |
1 files 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 */ |