6 #ifndef RAVEN_QT_TRANSACTIONRECORD_H 7 #define RAVEN_QT_TRANSACTIONRECORD_H 91 static const int RecommendedNumConfirmations = 6;
94 hash(), time(0), type(Other), address(
""), debit(0), credit(0), assetName(
"RVN"), units(8), idx(0)
99 hash(_hash), time(_time), type(Other), address(
""), debit(0),
100 credit(0), assetName(
"RVN"), units(8), idx(0)
105 Type _type,
const std::string &_address,
107 hash(_hash), time(_time), type(_type), address(_address), debit(_debit), credit(_credit),
108 assetName(
"RVN"), units(8), idx(0)
114 static bool showTransaction(
const CWalletTx &wtx);
115 static QList<TransactionRecord> decomposeTransaction(
const CWallet *wallet,
const CWalletTx &wtx);
139 QString getTxID()
const;
142 int getOutputIndex()
const;
150 bool statusUpdateNeeded()
const;
153 #endif // RAVEN_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.
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.
TransactionRecord(uint256 _hash, qint64 _time)
Not yet mined into a block.
UI model for transaction status.
int64_t CAmount
Amount in corbies (Can be negative)
UI model for a transaction.
TransactionStatus status
Status: can change with block chain update.
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.
A transaction with a bunch of additional info that only the owner cares about.
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.
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
qint64 open_for
Timestamp if status==OpenUntilDate, otherwise number of additional blocks that need to be mined befor...
Abandoned from the wallet.
Transaction will likely not mature because no nodes have confirmed.