Browse Source

Decrease MAX_HEADERS_RESULTS to 160. fixes #1289

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
pull/145/head
Daira Hopwood 8 years ago
parent
commit
b93c8139e6
  1. 2
      src/main.h

2
src/main.h

@ -81,7 +81,7 @@ static const int MAX_BLOCKS_IN_TRANSIT_PER_PEER = 16;
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
* less than this number, we reached its tip. Changing this value is a protocol upgrade. */
static const unsigned int MAX_HEADERS_RESULTS = 2000;
static const unsigned int MAX_HEADERS_RESULTS = 160;
/** Size of the "block download window": how far ahead of our current height do we fetch?
* Larger windows tolerate larger download speed differences between peer, but increase the potential
* degree of disordering of blocks on disk (which make reindexing and in the future perhaps pruning

Loading…
Cancel
Save