5 #ifndef TRANSACTIONRECORD_H
6 #define TRANSACTIONRECORD_H
98 hash(hash), time(time), type(type), address(address), debit(debit), credit(credit),
139 #endif // TRANSACTIONRECORD_H
TransactionRecord(uint256 hash, qint64 time)
Status status
Timestamp if status==OpenUntilDate, otherwise number of additional blocks that need to be mined befor...
Confirmed, but waiting for the recommended number of confirmations.
Transaction not yet final, waiting for block.
int idx
Subtransaction index, for sort key.
QString getTxID() const
Return the unique identifier for this transaction (part)
Not sent to any other nodes.
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.
static bool showTransaction(const CWalletTx &wtx)
Decompose CWallet transaction to model transaction records.
qint64 depth
Timestamp if status==OpenUntilDate, otherwise number of additional blocks that need to be mined befor...
UI model for transaction status.
UI model for a transaction.
TransactionStatus status
Status: can change with block chain update.
TransactionRecord(uint256 hash, qint64 time, Type type, const std::string &address, qint64 debit, qint64 credit)
static QList< TransactionRecord > decomposeTransaction(const CWallet *wallet, const CWalletTx &wtx)
static QString formatSubTxId(const uint256 &hash, int vout)
Format subtransaction id.
bool countsForBalance
Transaction counts towards available balance.
void updateStatus(const CWalletTx &wtx)
Update status from core wallet tx.
int cur_num_blocks
Current number of blocks (to know whether cached status is still valid)
Normal (sent/received) transactions.
A transaction with a bunch of additional info that only the owner cares about.
Conflicts with other transaction or mempool.
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
bool statusUpdateNeeded()
Return whether a status update is needed.
qint64 open_for
Timestamp if status==OpenUntilDate, otherwise number of additional blocks that need to be mined befor...
static const int RecommendedNumConfirmations
Number of confirmation recommended for accepting a transaction.
Transaction will likely not mature because no nodes have confirmed.