Skip to content

Commit

Permalink
IBD: same as MAX_HEADERS_RESULTS to match buffersize
Browse files Browse the repository at this point in the history
  • Loading branch information
decryp2kanon committed May 12, 2020
1 parent b49ea32 commit 7590bb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/validation.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ static const int MAX_SCRIPTCHECK_THREADS = 16;
/** -par default (number of script-checking threads, 0 = auto) */
static const int DEFAULT_SCRIPTCHECK_THREADS = 0;
/** 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;
// IBD: make it same as MAX_HEADERS_RESULTS to match buffersize
static const int MAX_BLOCKS_IN_TRANSIT_PER_PEER = 2000; // (was 16) // FIXME.SUGAR
/** Timeout in seconds during which a peer must stall block download progress before being disconnected. */
static const unsigned int BLOCK_STALLING_TIMEOUT = 2;
/** Number of headers sent in one getheaders result. We rely on the assumption that if a peer sends
Expand Down

0 comments on commit 7590bb6

Please sign in to comment.