diff options
author | dergoegge <n.goeggi@gmail.com> | 2023-10-11 14:53:04 +0100 |
---|---|---|
committer | dergoegge <n.goeggi@gmail.com> | 2023-11-21 13:15:44 +0000 |
commit | 9e58c5bcd96e7ff2062274868814ccae0626589e (patch) | |
tree | b5aa7606931ec3cac2a5e3ce40421562c8fa48f8 /src/util | |
parent | d752349029ec7a76f1fd440db2ec2e458d0f3c99 (diff) |
Use Txid in COutpoint
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/transaction_identifier.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/transaction_identifier.h b/src/util/transaction_identifier.h index 4fb9b49966..89e10dee01 100644 --- a/src/util/transaction_identifier.h +++ b/src/util/transaction_identifier.h @@ -65,4 +65,9 @@ using Txid = transaction_identifier<false>; /** Wtxid commits to all transaction fields including the witness. */ using Wtxid = transaction_identifier<true>; +inline Txid TxidFromString(std::string_view str) +{ + return Txid::FromUint256(uint256S(str.data())); +} + #endif // BITCOIN_UTIL_TRANSACTION_IDENTIFIER_H |