From 9efd86a908cf09d9ddbadd3195f202635117d505 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Wed, 22 Jul 2020 17:17:00 -0700 Subject: refactor: add GenTxid (=txid or wtxid) type and use it for tx request logic --- src/protocol.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/protocol.h') diff --git a/src/protocol.h b/src/protocol.h index 26e64b0009..d6767cc3e0 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -11,6 +11,7 @@ #define BITCOIN_PROTOCOL_H #include +#include #include #include #include @@ -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 -- cgit v1.2.3