aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.h
diff options
context:
space:
mode:
authorJim Posen <jim.posen@gmail.com>2019-06-30 16:19:40 +0200
committerJohn Newbery <john@johnnewbery.com>2020-05-08 16:36:19 -0400
commitf9e00bb25ac4039056808affeb5ffa86a2c317fe (patch)
treec0bc9e4ff525803891a493afee9b8f71a1fdde63 /src/protocol.h
parent9ccaaba11e94571fe984857494042ac292c17156 (diff)
[net processing] Message handling for getcfcheckpt.
If -peerblockfilters is configured, handle requests for cfcheckpt.
Diffstat (limited to 'src/protocol.h')
-rw-r--r--src/protocol.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/protocol.h b/src/protocol.h
index 6639ae2aac..dfcb0e0660 100644
--- a/src/protocol.h
+++ b/src/protocol.h
@@ -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) */