Matt Corallo ecf07f2729 Limit getheaders to a hard 2000.
Previously getheaders would return any number of headers up to
2000 + the distance the locator parameter was back (which is up to
~ the number of items in the locator ^ 2).

The only client I was able to find which actually handles the headers
message is BitcoinJ, and it clearly expects no more than 2000 headers
See:
http://code.google.com/p/bitcoinj/source/browse/core/src/main/java/com/google/bitcoin/core/HeadersMessage.java#35

Additionally, the wiki clearly states that getheaders will only ever
return 2000 headers: https://en.bitcoin.it/wiki/Network#Messages
2012-03-19 00:13:15 -04:00
..
2011-06-27 14:12:48 -04:00
2012-02-29 11:46:46 -05:00
2012-02-07 11:28:30 -05:00
2012-02-07 11:28:30 -05:00
2012-02-23 13:33:30 -05:00
2012-02-07 11:28:30 -05:00
2012-02-07 11:28:30 -05:00
2012-02-07 11:28:30 -05:00
2012-02-07 11:28:30 -05:00
2012-02-07 11:28:30 -05:00
2012-02-07 11:28:30 -05:00
2012-02-19 19:06:42 +01:00
2012-02-19 19:06:42 +01:00
2012-02-07 11:28:30 -05:00
2012-02-18 15:42:38 +01:00
2012-03-19 00:13:15 -04:00
2012-03-16 15:08:57 -04:00
2012-03-05 19:33:24 +01:00
2012-02-07 11:28:30 -05:00
2012-02-07 11:28:30 -05:00
2012-02-07 11:28:30 -05:00
2012-02-21 20:46:39 +01:00
2012-02-07 11:28:30 -05:00
2012-02-07 11:28:30 -05:00
2012-02-07 11:28:30 -05:00
2012-02-18 01:22:22 -05:00
2012-02-18 15:42:38 +01:00