diff options
author | Jim Posen <jim.posen@gmail.com> | 2020-05-04 19:47:26 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2020-05-22 11:59:58 -0400 |
commit | f6b58c150686e90bc4952976e488b1605f3ae02a (patch) | |
tree | 0780cb0a07b09dd5d937cd41c974feb3a3efc1e2 /src/protocol.h | |
parent | 3bdc7c2d3977a7864aacea80bffc4df7f37cac51 (diff) |
[net processing] Message handling for getcfheaders.
if -peerblockfilters is configured, handle requests for cfheaders.
Diffstat (limited to 'src/protocol.h')
-rw-r--r-- | src/protocol.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/protocol.h b/src/protocol.h index 8092ad7c13..9527dce960 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -226,6 +226,19 @@ extern const char* GETBLOCKTXN; */ extern const char* BLOCKTXN; /** + * 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 + * for those blocks. + * Only available with service bit NODE_COMPACT_FILTERS as described by + * BIP 157 & 158. + */ +extern const char* GETCFHEADERS; +/** + * cfheaders is a response to a getcfheaders request containing a filter header + * and a vector of filter hashes for each subsequent block in the requested range. + */ +extern const char* CFHEADERS; +/** * 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 @@ -235,8 +248,6 @@ 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; }; // namespace NetMsgType |