@@ -247,7 +247,7 @@ extern const char* CFCHECKPT;
247
247
* txid.
248
248
* @since protocol version 70016 as described by BIP 339.
249
249
*/
250
- extern const char * WTXIDRELAY;
250
+ extern const char * WTXIDRELAY;
251
251
}; // namespace NetMsgType
252
252
253
253
/* Get a vector of all valid message types (see above) */
@@ -418,12 +418,22 @@ class CInv
418
418
std::string ToString () const ;
419
419
420
420
// Single-message helper methods
421
- bool IsMsgTx () const { return type == MSG_TX; }
422
- bool IsMsgWtx () const { return type == MSG_WTX; }
423
- bool IsMsgWitnessTx () const { return type == MSG_WITNESS_TX; }
421
+ bool IsMsgTx () const { return type == MSG_TX; }
422
+ bool IsMsgBlk () const { return type == MSG_BLOCK; }
423
+ bool IsMsgWtx () const { return type == MSG_WTX; }
424
+ bool IsMsgFilteredBlk () const { return type == MSG_FILTERED_BLOCK; }
425
+ bool IsMsgCmpctBlk () const { return type == MSG_CMPCT_BLOCK; }
426
+ bool IsMsgWitnessBlk () const { return type == MSG_WITNESS_BLOCK; }
424
427
425
428
// Combined-message helper methods
426
- bool IsGenTxMsg () const { return type == MSG_TX || type == MSG_WTX || type == MSG_WITNESS_TX; }
429
+ bool IsGenTxMsg () const
430
+ {
431
+ return type == MSG_TX || type == MSG_WTX || type == MSG_WITNESS_TX;
432
+ }
433
+ bool IsGenBlkMsg () const
434
+ {
435
+ return type == MSG_BLOCK || type == MSG_FILTERED_BLOCK || type == MSG_CMPCT_BLOCK || type == MSG_WITNESS_BLOCK;
436
+ }
427
437
428
438
int type;
429
439
uint256 hash;
0 commit comments