diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -53,9 +53,13 @@ void SetNull() { hash.SetNull(); - n = (uint32_t)-1; + n = uint32_t(-1); } - bool IsNull() const { return (hash.IsNull() && n == (uint32_t)-1); } + + bool IsNull() const { return hash.IsNull() && n == uint32_t(-1); } + + TxId GetTxId() const { return TxId(hash); } + uint32_t GetN() const { return n; } friend bool operator<(const COutPoint &a, const COutPoint &b) { int cmp = a.hash.Compare(b.hash);