5 #ifndef BITCOIN_QT_TRANSACTIONRECORD_H 6 #define BITCOIN_QT_TRANSACTIONRECORD_H 18 struct WalletTxStatus;
27 matures_in(0), status(Unconfirmed), depth(0), open_for(0)
87 static const int RecommendedNumConfirmations = 6;
90 hash(), time(0), type(Other), address(
""), debit(0), credit(0), idx(0)
95 hash(_hash), time(_time), type(Other), address(
""), debit(0),
101 Type _type,
const std::string &_address,
103 hash(_hash), time(_time), type(_type), address(_address), debit(_debit), credit(_credit),
110 static bool showTransaction();
133 QString getTxHash()
const;
136 int getOutputIndex()
const;
144 bool statusUpdateNeeded(
const uint256& block_hash)
const;
147 #endif // BITCOIN_QT_TRANSACTIONRECORD_H
Confirmed, but waiting for the recommended number of confirmations.
Transaction not yet final, waiting for block.
int idx
Subtransaction index, for sort key.
Have 6 or more confirmations (normal tx) or fully mature (mined tx)
std::string sortKey
Sorting key based on status.
TransactionRecord(uint256 _hash, qint64 _time)
Not yet mined into a block.
UI model for transaction status.
int64_t CAmount
Amount in satoshis (Can be negative)
UI model for a transaction.
TransactionStatus status
Status: can change with block chain update.
bool countsForBalance
Transaction counts towards available balance.
Conflicts with other transaction or mempool.
TransactionRecord(uint256 _hash, qint64 _time, Type _type, const std::string &_address, const CAmount &_debit, const CAmount &_credit)
bool involvesWatchAddress
Whether the transaction was sent/received with a watch-only address.
qint64 open_for
Timestamp if status==OpenUntilDate, otherwise number of additional blocks that need to be mined befor...
Abandoned from the wallet.
Updated transaction status.