diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2020-05-19 15:01:50 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2020-09-17 22:17:17 +0200 |
commit | e0d73573a37bf4b519f6f61e5678572d48a64517 (patch) | |
tree | 62d7661d4afc81dc8b3547b4d57a31f49fd9cc8f /src/primitives/transaction.h | |
parent | fe42411b4b07b99c591855f5f00ad45dfeec8e30 (diff) |
net: CNetAddr: add support to (un)serialize as ADDRv2
Co-authored-by: Carl Dong <contact@carldong.me>
Diffstat (limited to 'src/primitives/transaction.h')
-rw-r--r-- | src/primitives/transaction.h | 6 |
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 */ |