Skip to content

Commit

Permalink
allow more blocks per transfer whilst being strict on stallers
Browse files Browse the repository at this point in the history
  • Loading branch information
barrystyle committed Nov 10, 2021
1 parent a5b4d8c commit 1e48ea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ static constexpr std::chrono::microseconds GETDATA_TX_INTERVAL{std::chrono::seco
/** Limit to avoid sending big packets. Not used in processing incoming GETDATA for compatibility */
static const unsigned int MAX_GETDATA_SZ = 1000;
/** Number of blocks that can be requested at any given time from a single peer. */
static const int MAX_BLOCKS_IN_TRANSIT_PER_PEER = 16;
static const int MAX_BLOCKS_IN_TRANSIT_PER_PEER = 768;
/** Time during which a peer must stall block download progress before being disconnected. */
static constexpr auto BLOCK_STALLING_TIMEOUT = 2s;
static constexpr auto BLOCK_STALLING_TIMEOUT = 1s;
/** Number of headers sent in one getheaders result. We rely on the assumption that if a peer sends
* less than this number, we reached its tip. Changing this value is a protocol upgrade. */
static const unsigned int MAX_HEADERS_RESULTS = 2000;
Expand Down

0 comments on commit 1e48ea2

Please sign in to comment.