From e0d73573a37bf4b519f6f61e5678572d48a64517 Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Tue, 19 May 2020 15:01:50 +0200 Subject: net: CNetAddr: add support to (un)serialize as ADDRv2 Co-authored-by: Carl Dong --- src/primitives/transaction.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/primitives') 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 +/** + * 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 */ -- cgit v1.2.3