diff options
Diffstat (limited to 'src/protocol.h')
-rw-r--r-- | src/protocol.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/protocol.h b/src/protocol.h index 1d14585f97..a27ca56495 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -234,6 +234,12 @@ extern const char *GETBLOCKTXN; * @since protocol version 70014 as described by BIP 152 */ extern const char *BLOCKTXN; +/** + * Indicates that a node prefers to relay transactions via wtxid, rather than + * txid. + * @since protocol version 70016 as described by BIP 339. + */ +extern const char *WTXIDRELAY; }; /* Get a vector of all valid message types (see above) */ @@ -367,7 +373,7 @@ enum GetDataMsg : uint32_t { MSG_TX = 1, MSG_BLOCK = 2, MSG_WTX = 5, //!< Defined in BIP 339 - // The following can only occur in getdata. Invs always use TX or BLOCK. + // The following can only occur in getdata. Invs always use TX/WTX or BLOCK. MSG_FILTERED_BLOCK = 3, //!< Defined in BIP37 MSG_CMPCT_BLOCK = 4, //!< Defined in BIP152 MSG_WITNESS_BLOCK = MSG_BLOCK | MSG_WITNESS_FLAG, //!< Defined in BIP144 |