diff options
author | dergoegge <n.goeggi@gmail.com> | 2023-07-19 15:37:29 +0200 |
---|---|---|
committer | dergoegge <n.goeggi@gmail.com> | 2023-10-12 11:56:37 +0100 |
commit | ed70e6501648466b9ca91a39b83775363e9a726d (patch) | |
tree | 5e9dbd2b87cf998ed072219a85797345240eb566 /src/wallet | |
parent | cdb14d79e809bf7d1612b21b554a9fcfb2ab1c91 (diff) |
Introduce types for txids & wtxids
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/transaction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/transaction.h b/src/wallet/transaction.h index 1a79d7db4e..646fb4dcd1 100644 --- a/src/wallet/transaction.h +++ b/src/wallet/transaction.h @@ -319,8 +319,8 @@ public: bool isInactive() const { return state<TxStateInactive>(); } bool isUnconfirmed() const { return !isAbandoned() && !isConflicted() && !isConfirmed(); } bool isConfirmed() const { return state<TxStateConfirmed>(); } - const uint256& GetHash() const { return tx->GetHash(); } - const uint256& GetWitnessHash() const { return tx->GetWitnessHash(); } + const Txid& GetHash() const { return tx->GetHash(); } + const Wtxid& GetWitnessHash() const { return tx->GetWitnessHash(); } bool IsCoinBase() const { return tx->IsCoinBase(); } // Disable copying of CWalletTx objects to prevent bugs where instances get |