mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 10:12:28 +02:00
net: CNetAddr: add support to (un)serialize as ADDRv2
Co-authored-by: Carl Dong <contact@carldong.me>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user