Add comments about the 500 blocks /2000 headers max numbers are speculative based on Bitcoin docs

This commit is contained in:
Deirdre Connolly 2019-10-09 19:42:52 -04:00 committed by Deirdre Connolly
parent 5acdaa6d2f
commit cfbe8dfdbf
1 changed files with 9 additions and 0 deletions

View File

@ -162,6 +162,11 @@ pub enum Message {
// main chain, the list of its children is returned back via the
// inv message and the remaining locators are ignored, no matter
// if the requested limit was reached, or not.
//
// The 500 headers number is from the Bitcoin docs, we are not
// certain (yet) that other implementations of Zcash obey this
// restriction, or if they don't, what happens if we send them too
// many results.
GetBlocks {
/// The protocol version.
version: Version,
@ -201,6 +206,10 @@ pub enum Message {
/// main chain, the peer starts over at block #1.
///
/// [Bitcoin reference](https://en.bitcoin.it/wiki/Protocol_documentation#getheaders)
// The 2000 headers number is from the Bitcoin docs, we are not
// certain (yet) that other implementations of Zcash obey this
// restriction, or if they don't, what happens if we send them too
// many results.
GetHeaders {
/// The protocol version.
version: Version,