30 QList<TransactionRecord> parts;
31 int64_t nTime = wtx.
time;
34 CAmount nNet = nCredit - nDebit;
36 std::map<std::string, std::string> mapValue = wtx.
value_map;
43 for(
unsigned int i = 0; i < wtx.
tx->vout.size(); i++)
45 const CTxOut& txout = wtx.
tx->vout[i];
82 if(fAllFromMe > mine) fAllFromMe = mine;
89 if(fAllToMe > mine) fAllToMe = mine;
92 if (fAllFromMe && fAllToMe)
110 CAmount nTxFee = nDebit - wtx.
tx->GetValueOut();
112 for (
unsigned int nOut = 0; nOut < wtx.
tx->vout.size(); nOut++)
114 const CTxOut& txout = wtx.
tx->vout[nOut];
178 const bool up_to_date = ((int64_t)QDateTime::currentMSecsSinceEpoch() / 1000 - block_time <
MAX_BLOCK_TIME_GAP);
bool statusUpdateNeeded(const uint256 &block_hash) const
Return whether a status update is needed.
Confirmed, but waiting for the recommended number of confirmations.
std::deque< CInv >::iterator it
std::vector< CTxDestination > txout_address
Transaction not yet final, waiting for block.
int idx
Subtransaction index, for sort key.
unsigned int time_received
QString getTxHash() const
Return the unique identifier for this transaction (part)
Generated (mined) transactions.
std::vector< isminetype > txin_is_mine
std::vector< isminetype > txout_is_mine
Have 6 or more confirmations (normal tx) or fully mature (mined tx)
std::string sortKey
Sorting key based on status.
static QList< TransactionRecord > decomposeTransaction(const interfaces::WalletTx &wtx)
Not yet mined into a block.
void updateStatus(const interfaces::WalletTxStatus &wtx, const uint256 &block_hash, int numBlocks, int64_t block_time)
Update status from core wallet tx.
int64_t CAmount
Amount in satoshis (Can be negative)
int getOutputIndex() const
Return the output index of the subtransaction.
UI model for a transaction.
uint256 m_cur_block_hash
Current block hash (to know whether cached status is still valid)
TransactionStatus status
Status: can change with block chain update.
bool countsForBalance
Transaction counts towards available balance.
isminetype
IsMine() return codes.
An output of a transaction.
std::string ToString() const
Normal (sent/received) transactions.
static bool showTransaction()
Decompose CWallet transaction to model transaction records.
std::vector< isminetype > txout_address_is_mine
Conflicts with other transaction or mempool.
bool involvesWatchAddress
Whether the transaction was sent/received with a watch-only address.
std::string EncodeDestination(const CTxDestination &dest)
std::map< std::string, std::string > value_map
static const unsigned int LOCKTIME_THRESHOLD
qint64 open_for
Timestamp if status==OpenUntilDate, otherwise number of additional blocks that need to be mined befor...
Abandoned from the wallet.
static constexpr int64_t MAX_BLOCK_TIME_GAP
Maximum gap between node time and block time used for the "Catching up..." mode in GUI...
Updated transaction status.
static const int RecommendedNumConfirmations
Number of confirmation recommended for accepting a transaction.