aboutsummaryrefslogtreecommitdiff
path: root/src/primitives
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2020-05-19 15:01:50 +0200
committerVasil Dimov <vd@FreeBSD.org>2020-09-17 22:17:17 +0200
commite0d73573a37bf4b519f6f61e5678572d48a64517 (patch)
tree62d7661d4afc81dc8b3547b4d57a31f49fd9cc8f /src/primitives
parentfe42411b4b07b99c591855f5f00ad45dfeec8e30 (diff)
downloadbitcoin-e0d73573a37bf4b519f6f61e5678572d48a64517.tar.xz
net: CNetAddr: add support to (un)serialize as ADDRv2
Co-authored-by: Carl Dong <contact@carldong.me>
Diffstat (limited to 'src/primitives')
-rw-r--r--src/primitives/transaction.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h
index 544bab6d9b..77cb1781a4 100644
--- a/src/primitives/transaction.h
+++ b/src/primitives/transaction.h
@@ -14,6 +14,12 @@
#include <tuple>
+/**
+ * A flag that is ORed into the protocol version to designate that a transaction
+ * should be (un)serialized without witness data.
+ * Make sure that this does not collide with any of the values in `version.h`
+ * or with `ADDRV2_FORMAT`.
+ */
static const int SERIALIZE_TRANSACTION_NO_WITNESS = 0x40000000;
/** An outpoint - a combination of a transaction hash and an index n into its vout */