From 7482b6f89500d9783cc6af0dccab7a08d0128206 Mon Sep 17 00:00:00 2001 From: brunoerg Date: Wed, 26 Jan 2022 08:58:29 -0300 Subject: wallet: add GetWitnessHash() --- src/wallet/transaction.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/wallet/transaction.h') diff --git a/src/wallet/transaction.h b/src/wallet/transaction.h index 00f9c9f154..271d698e56 100644 --- a/src/wallet/transaction.h +++ b/src/wallet/transaction.h @@ -296,6 +296,7 @@ public: bool isUnconfirmed() const { return !isAbandoned() && !isConflicted() && !isConfirmed(); } bool isConfirmed() const { return state(); } const uint256& GetHash() const { return tx->GetHash(); } + const uint256& GetWitnessHash() const { return tx->GetWitnessHash(); } bool IsCoinBase() const { return tx->IsCoinBase(); } // Disable copying of CWalletTx objects to prevent bugs where instances get -- cgit v1.2.3