diff options
| author | Pieter Wuille <[email protected]> | 2020-07-22 17:17:00 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2020-07-30 13:44:54 -0700 |
| commit | 9efd86a908cf09d9ddbadd3195f202635117d505 (patch) | |
| tree | ec801408297a936d5602b9fa1438a44accf7d4b6 /src/protocol.h | |
| parent | doc: list support for BIP 339 in doc/bips.md (diff) | |
| download | discoin-9efd86a908cf09d9ddbadd3195f202635117d505.tar.xz discoin-9efd86a908cf09d9ddbadd3195f202635117d505.zip | |
refactor: add GenTxid (=txid or wtxid) type and use it for tx request logic
Diffstat (limited to 'src/protocol.h')
| -rw-r--r-- | src/protocol.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protocol.h b/src/protocol.h index 26e64b000..d6767cc3e 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -11,6 +11,7 @@ #define BITCOIN_PROTOCOL_H #include <netaddress.h> +#include <primitives/transaction.h> #include <serialize.h> #include <uint256.h> #include <version.h> @@ -442,4 +443,7 @@ public: uint256 hash; }; +/** Convert a TX/WITNESS_TX/WTX CInv to a GenTxid. */ +GenTxid ToGenTxid(const CInv& inv); + #endif // BITCOIN_PROTOCOL_H |