35 QList<TransactionRecord> parts;
36 int64_t nTime = wtx.
time;
39 CAmount nNet = nCredit - nDebit;
41 std::map<std::string, std::string> mapValue = wtx.
value_map;
45 bool any_from_me =
false;
52 if(fAllFromMe > mine) fAllFromMe = mine;
53 if (mine) any_from_me =
true;
57 if (fAllFromMe || !any_from_me) {
63 CAmount nTxFee = nDebit - wtx.
tx->GetValueOut();
65 for(
unsigned int i = 0; i < wtx.
tx->vout.size(); i++)
67 const CTxOut& txout = wtx.
tx->vout[i];
130 sub.
address = mapValue[
"from"];
bool statusUpdateNeeded(const uint256 &block_hash) const
Return whether a status update is needed.
std::vector< CTxDestination > txout_address
int idx
Subtransaction index, for sort key.
Generated (mined) transactions.
std::vector< wallet::isminetype > txin_is_mine
unsigned int time_received
QString getTxHash() const
Return the unique identifier for this transaction (part)
static QList< TransactionRecord > decomposeTransaction(const interfaces::WalletTx &wtx)
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)
std::vector< bool > txout_is_change
std::vector< wallet::isminetype > txout_is_mine
std::string sortKey
Sorting key based on status.
int getOutputIndex() const
Return the output index of the subtransaction.
UI model for a transaction.
TransactionStatus status
Status: can change with block chain update.
isminetype
IsMine() return codes, which depend on ScriptPubKeyMan implementation.
Have 6 or more confirmations (normal tx) or fully mature (mined tx)
An output of a transaction.
std::vector< wallet::isminetype > txout_address_is_mine
std::string ToString() const
constexpr bool IsNull() const
is a home for public enum and struct type definitions that are used by internally by wallet code...
static bool showTransaction()
Decompose CWallet transaction to model transaction records.
uint256 m_cur_block_hash
Current block hash (to know whether cached status is still valid)
bool countsForBalance
Transaction counts towards available balance.
bool involvesWatchAddress
Whether the transaction was sent/received with a watch-only address.
std::string EncodeDestination(const CTxDestination &dest)
Normal (sent/received) transactions.
std::map< std::string, std::string > value_map
Confirmed, but waiting for the recommended number of confirmations.
Abandoned from the wallet.
Updated transaction status.
Conflicts with other transaction or mempool.
static const int RecommendedNumConfirmations
Number of confirmation recommended for accepting a transaction.