5 #ifndef BITCOIN_QT_TRANSACTIONRECORD_H 6 #define BITCOIN_QT_TRANSACTIONRECORD_H 18 struct WalletTxStatus;
28 : countsForBalance(false), sortKey(
""), matures_in(0),
29 status(Unconfirmed), depth(0), open_for(0), cur_num_blocks(-1) {}
102 static const int RecommendedNumConfirmations = 6;
105 : txid(), time(0), type(Other), address(
""), debit(), credit(), idx(0) {
109 : txid(_txid), time(_time), type(Other), address(
""), debit(), credit(),
113 const std::string &_address,
const Amount _debit,
115 : txid(_txid), time(_time), type(_type), address(_address),
116 debit(_debit), credit(_credit), idx(0) {}
120 static bool showTransaction();
121 static QList<TransactionRecord>
144 QString getTxID()
const;
147 int getOutputIndex()
const;
156 bool statusUpdateNeeded(
int numBlocks)
const;
159 #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.
Generated (mined) transactions.
Have 6 or more confirmations (normal tx) or fully mature (mined tx)
std::string sortKey
Sorting key based on status.
Not yet mined into a block.
UI model for transaction status.
UI model for a transaction.
TransactionStatus status
Status: can change with block chain update.
TransactionRecord(TxId _txid, qint64 _time, Type _type, const std::string &_address, const Amount _debit, const Amount _credit)
bool countsForBalance
Transaction counts towards available balance.
int cur_num_blocks
Current number of blocks (to know whether cached status is still valid)
Normal (sent/received) transactions.
Conflicts with other transaction or mempool.
A TxId is the identifier of a transaction.
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.
TransactionRecord(TxId _txid, qint64 _time)