 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
5 #ifndef BITCOIN_QT_TRANSACTIONRECORD_H
6 #define BITCOIN_QT_TRANSACTIONRECORD_H
99 TransactionRecord(
uint256 hash, qint64
time,
Type type,
const std::string&
address,
const CAmount&
debit,
const CAmount&
credit) :
hash(
hash),
time(
time),
type(
type),
address(
address),
debit(
debit),
credit(
credit),
142 #endif // BITCOIN_QT_TRANSACTIONRECORD_H
int idx
Subtransaction index, for sort key.
bool statusUpdateNeeded()
Return whether a status update is needed.
std::string sortKey
Sorting key based on status.
@ OpenUntilDate
Normal (sent/received) transactions.
TransactionStatus status
Status: can change with block chain update.
@ Conflicted
Conflicts with other transaction or mempool.
void updateStatus(const CWalletTx &wtx)
Update status from core wallet tx.
static const int RecommendedNumConfirmations
Number of confirmation recommended for accepting a transaction.
UI model for a transaction.
@ MaturesWarning
Transaction will likely not mature because no nodes have confirmed.
qint64 open_for
Timestamp if status==OpenUntilDate, otherwise number of additional blocks that need to be mined befor...
TransactionRecord(uint256 hash, qint64 time, Type type, const std::string &address, const CAmount &debit, const CAmount &credit)
TransactionRecord(uint256 hash, qint64 time)
bool involvesWatchAddress
Whether the transaction was sent/received with a watch-only address.
int64_t CAmount
Amount in PRCY (Can be negative)
256-bit unsigned big integer.
@ Immature
Generated (mined) transactions.
@ OpenUntilBlock
Transaction not yet final, waiting for block.
@ Confirmed
Have 6 or more confirmations (normal tx) or fully mature (mined tx)
UI model for transaction status.
@ Confirming
Confirmed, but waiting for the recommended number of confirmations.
static QList< TransactionRecord > decomposeTransaction(const CWallet *wallet, const CWalletTx &wtx)
Decompose CWallet transaction to model transaction records.
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances,...
A transaction with a bunch of additional info that only the owner cares about.
int getOutputIndex() const
Return the output index of the subtransaction
@ Offline
Not sent to any other nodes.
@ NotAccepted
Mined but not accepted.
bool countsForBalance
Transaction counts towards available balance.
@ Unconfirmed
Not yet mined into a block.
QString getTxID() const
Return the unique identifier for this transaction (part)
int cur_num_blocks
Current number of blocks (to know whether cached status is still valid)