mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Add p2p message "wtxidrelay"
When sent to and received from a given peer, enables using wtxid's for announcing and fetching transactions with that peer.
This commit is contained in:
@@ -261,6 +261,12 @@ extern const char* GETCFCHECKPT;
|
||||
* evenly spaced filter headers for blocks on the requested chain.
|
||||
*/
|
||||
extern const char* CFCHECKPT;
|
||||
/**
|
||||
* 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;
|
||||
}; // namespace NetMsgType
|
||||
|
||||
/* Get a vector of all valid message types (see above) */
|
||||
@@ -402,7 +408,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
|
||||
|
||||
Reference in New Issue
Block a user