[net processing] Message handling for getcfcheckpt.

If -peerblockfilters is configured, handle requests for cfcheckpt.
This commit is contained in:
Jim Posen
2019-06-30 16:19:40 +02:00
committed by John Newbery
parent 9ccaaba11e
commit f9e00bb25a
3 changed files with 128 additions and 0 deletions

View File

@@ -234,6 +234,20 @@ extern const char *GETBLOCKTXN;
* @since protocol version 70014 as described by BIP 152
*/
extern const char *BLOCKTXN;
/**
* getcfcheckpt requests evenly spaced compact filter headers, enabling
* parallelized download and validation of the headers between them.
* Only available with service bit NODE_COMPACT_FILTERS as described by
* BIP 157 & 158.
*/
extern const char *GETCFCHECKPT;
/**
* cfcheckpt is a response to a getcfcheckpt request containing a vector of
* evenly spaced filter headers for blocks on the requested chain.
* Only available with service bit NODE_COMPACT_FILTERS as described by
* BIP 157 & 158.
*/
extern const char *CFCHECKPT;
};
/* Get a vector of all valid message types (see above) */