mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
refactor: add GenTxid (=txid or wtxid) type and use it for tx request logic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user