1 #ifndef TRANSACTIONRECORD_H
2 #define TRANSACTIONRECORD_H
93 hash(hash), time(time), type(type), address(address), debit(debit), credit(credit),
131 #endif // TRANSACTIONRECORD_H
TransactionRecord(uint256 hash, int64 time, Type type, const std::string &address, int64 debit, int64 credit)
int idx
Subtransaction index, for sort key.
std::string getTxID()
Return the unique identifier for this transaction (part)
static bool showTransaction(const CWalletTx &wtx)
Decompose CWallet transaction to model transaction records.
UI model for transaction status.
TransactionRecord(uint256 hash, int64 time)
UI model for a transaction.
TransactionStatus status
Status: can change with block chain update.
static QList< TransactionRecord > decomposeTransaction(const CWallet *wallet, const CWalletTx &wtx)
void updateStatus(const CWalletTx &wtx)
Update status from core wallet tx.
static const int NumConfirmations
Number of confirmation needed for transaction.
int cur_num_blocks
Current number of blocks (to know whether cached status is still valid)
A transaction with a bunch of additional info that only the owner cares about.
Transaction will likely not mature because no nodes have confirmed.
int64 open_for
Timestamp if status==OpenUntilDate, otherwise number of additional blocks that need to be mined befor...
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.