[net processing] Message handling for getcfilters.

Handle getcfilters request if -peercfilter is configured.
This commit is contained in:
Jim Posen
2019-06-30 15:42:13 +02:00
committed by John Newbery
parent e535670726
commit 11106a4722
3 changed files with 65 additions and 0 deletions

View File

@@ -225,6 +225,17 @@ extern const char* GETBLOCKTXN;
* @since protocol version 70014 as described by BIP 152
*/
extern const char* BLOCKTXN;
/**
* getcfilters requests compact filters for a range of blocks.
* Only available with service bit NODE_COMPACT_FILTERS as described by
* BIP 157 & 158.
*/
extern const char* GETCFILTERS;
/**
* cfilter is a response to a getcfilters request containing a single compact
* filter.
*/
extern const char* CFILTER;
/**
* getcfheaders requests a compact filter header and the filter hashes for a
* range of blocks, which can then be used to reconstruct the filter headers