From 7482b6f89500d9783cc6af0dccab7a08d0128206 Mon Sep 17 00:00:00 2001 From: brunoerg Date: Wed, 26 Jan 2022 08:58:29 -0300 Subject: [PATCH] wallet: add GetWitnessHash() --- src/wallet/transaction.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet/transaction.h b/src/wallet/transaction.h index 00f9c9f1544..271d698e56a 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