@@ -217,6 +217,32 @@ extern const char *SENDHEADERS;
217217 * @since protocol version 70013 as described by BIP133
218218 */
219219extern const char *FEEFILTER;
220+ /* *
221+ * Contains a 1-byte bool and 8-byte LE version number.
222+ * Indicates that a node is willing to provide blocks via "cmpctblock" messages.
223+ * May indicate that a node prefers to receive new block announcements via a
224+ * "cmpctblock" message rather than an "inv", depending on message contents.
225+ * @since protocol version 70014 as described by BIP 152
226+ */
227+ extern const char *SENDCMPCT;
228+ /* *
229+ * Contains a CBlockHeaderAndShortTxIDs object - providing a header and
230+ * list of "short txids".
231+ * @since protocol version 70014 as described by BIP 152
232+ */
233+ extern const char *CMPCTBLOCK;
234+ /* *
235+ * Contains a BlockTransactionsRequest
236+ * Peer should respond with "blocktxn" message.
237+ * @since protocol version 70014 as described by BIP 152
238+ */
239+ extern const char *GETBLOCKTXN;
240+ /* *
241+ * Contains a BlockTransactions.
242+ * Sent in response to a "getblocktxn" message.
243+ * @since protocol version 70014 as described by BIP 152
244+ */
245+ extern const char *BLOCKTXN;
220246};
221247
222248/* Get a vector of all valid message types (see above) */
@@ -315,9 +341,10 @@ class CInv
315341enum {
316342 MSG_TX = 1 ,
317343 MSG_BLOCK,
318- // Nodes may always request a MSG_FILTERED_BLOCK in a getdata, however,
319- // MSG_FILTERED_BLOCK should not appear in any invs except as a part of getdata.
344+ // Nodes may always request a MSG_FILTERED_BLOCK/MSG_CMPCT_BLOCK in a getdata, however,
345+ // MSG_FILTERED_BLOCK/MSG_CMPCT_BLOCK should not appear in any invs except as a part of getdata.
320346 MSG_FILTERED_BLOCK,
347+ MSG_CMPCT_BLOCK,
321348};
322349
323350#endif // BITCOIN_PROTOCOL_H
0 commit comments