11 recipients(_recipients),
61 for (
int j = 0; j < details.outputs_size(); j++)
63 const payments::Output& out = details.outputs(j);
64 if (out.amount() <= 0)
continue;
65 if (i == nChangePosRet)
74 if (i == nChangePosRet)
84 CAmount totalTransactionAmount = 0;
87 totalTransactionAmount += rcp.
amount;
89 return totalTransactionAmount;
int64_t CAmount
Amount in satoshis (Can be negative)
A key allocated from the key pool.
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.
bool IsInitialized() const
const payments::PaymentDetails & getDetails() const
PaymentRequestPlus paymentRequest
~WalletModelTransaction()
void setTransactionFee(const CAmount &newFee)
CWalletTx * getTransaction()
CAmount getTotalTransactionAmount()
void reassignAmounts(int nChangePosRet)
CWalletTx * walletTransaction
QList< SendCoinsRecipient > getRecipients()
CReserveKey * getPossibleKeyChange()
QList< SendCoinsRecipient > recipients
unsigned int getTransactionSize()
WalletModelTransaction(const QList< SendCoinsRecipient > &recipients)
CAmount getTransactionFee()
void newPossibleKeyChange(CWallet *wallet)
int64_t GetVirtualTransactionSize(int64_t nWeight, int64_t nSigOpCost)
Compute the virtual transaction size (weight reinterpreted as bytes).