aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.h
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2020-01-30 09:35:00 -0500
committerJohn Newbery <john@johnnewbery.com>2020-09-24 13:24:10 +0100
commit2599277e9cb51e3619582978cba9bf03325c0cb6 (patch)
tree2ed20411f76e653b71c44d88c2ebf49d15af9100 /src/protocol.h
parentbe1b7a8916fdd060db56846ad5dcec0894aae314 (diff)
downloadbitcoin-2599277e9cb51e3619582978cba9bf03325c0cb6.tar.xz
Add support for tx-relay via wtxid
This adds a field to CNodeState that tracks whether to relay transactions with that peer via wtxid, instead of txid. As of this commit the field will always be false, but in a later commit we will add a way to negotiate turning this on via p2p messages exchanged with the peer.
Diffstat (limited to 'src/protocol.h')
-rw-r--r--src/protocol.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocol.h b/src/protocol.h
index 6639ae2aac..1d14585f97 100644
--- a/src/protocol.h
+++ b/src/protocol.h
@@ -362,11 +362,11 @@ const uint32_t MSG_TYPE_MASK = 0xffffffff >> 2;
* These numbers are defined by the protocol. When adding a new value, be sure
* to mention it in the respective BIP.
*/
-enum GetDataMsg
-{
+enum GetDataMsg : uint32_t {
UNDEFINED = 0,
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.
MSG_FILTERED_BLOCK = 3, //!< Defined in BIP37
MSG_CMPCT_BLOCK = 4, //!< Defined in BIP152