mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Introduce types for txids & wtxids
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user