From b93c8139e6d37a8e1457f62fec33ba00c2342891 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Wed, 24 Aug 2016 06:14:09 +0100 Subject: [PATCH] Decrease MAX_HEADERS_RESULTS to 160. fixes #1289 Signed-off-by: Daira Hopwood --- src/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.h b/src/main.h index 7a3057867..9c875d8c3 100644 --- a/src/main.h +++ b/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