 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
34 QList<TransactionRecord> parts;
35 int64_t nTime = wtx.
time;
38 CAmount nNet = nCredit - nDebit;
40 std::map<std::string, std::string> mapValue = wtx.
value_map;
47 for(
unsigned int i = 0; i < wtx.
tx->vout.size(); i++)
49 const CTxOut& txout = wtx.
tx->vout[i];
86 if(fAllFromMe > mine) fAllFromMe = mine;
93 if(fAllToMe > mine) fAllToMe = mine;
96 if (fAllFromMe && fAllToMe)
114 CAmount nTxFee = nDebit - wtx.
tx->GetValueOut();
116 for (
unsigned int nOut = 0; nOut < wtx.
tx->vout.size(); nOut++)
118 const CTxOut& txout = wtx.
tx->vout[nOut];
bool statusUpdateNeeded(const uint256 &block_hash) const
Return whether a status update is needed.
QString getTxHash() const
Return the unique identifier for this transaction (part)
int idx
Subtransaction index, for sort key.
isminetype
IsMine() return codes, which depend on ScriptPubKeyMan implementation.
static QList< TransactionRecord > decomposeTransaction(const interfaces::WalletTx &wtx)
std::string sortKey
Sorting key based on status.
TransactionStatus status
Status: can change with block chain update.
@ Conflicted
Conflicts with other transaction or mempool.
static const int RecommendedNumConfirmations
Number of confirmation recommended for accepting a transaction.
UI model for a transaction.
std::vector< wallet::isminetype > txout_is_mine
uint256 m_cur_block_hash
Current block hash (to know whether cached status is still valid)
std::map< std::string, std::string > value_map
An output of a transaction.
bool involvesWatchAddress
Whether the transaction was sent/received with a watch-only address.
int64_t CAmount
Amount in satoshis (Can be negative)
std::vector< wallet::isminetype > txin_is_mine
std::string ToString() const
Updated transaction status.
@ Abandoned
Abandoned from the wallet.
@ Immature
Generated (mined) transactions.
@ Confirmed
Have 6 or more confirmations (normal tx) or fully mature (mined tx)
@ Confirming
Confirmed, but waiting for the recommended number of confirmations.
int getOutputIndex() const
Return the output index of the subtransaction
std::vector< CTxDestination > txout_address
std::vector< wallet::isminetype > txout_address_is_mine
@ NotAccepted
Mined but not accepted.
unsigned int time_received
bool countsForBalance
Transaction counts towards available balance.
@ Unconfirmed
Normal (sent/received) transactions.
std::string EncodeDestination(const CTxDestination &dest)
void updateStatus(const interfaces::WalletTxStatus &wtx, const uint256 &block_hash, int numBlocks, int64_t block_time)
Update status from core wallet tx.
static bool showTransaction()
Decompose CWallet transaction to model transaction records.