15 recipients(_recipients),
32 return wtx ?
wtx->getVirtualSize() : 0;
54 if (rcp.paymentRequest.IsInitialized())
57 const payments::PaymentDetails& details = rcp.paymentRequest.getDetails();
58 for (
int j = 0; j < details.outputs_size(); j++)
60 const payments::Output& out = details.outputs(j);
61 if (out.amount() <= 0)
continue;
62 if (i == nChangePosRet)
64 subtotal += walletTransaction->
vout[i].nValue;
72 if (i == nChangePosRet)
74 rcp.
amount = walletTransaction->
vout[i].nValue;
82 CAmount totalTransactionAmount = 0;
85 totalTransactionAmount += rcp.amount;
87 return totalTransactionAmount;
std::unique_ptr< interfaces::PendingWalletTx > & getWtx()
CAmount getTransactionFee() const
QList< SendCoinsRecipient > getRecipients() const
void setTransactionFee(const CAmount &newFee)
int64_t CAmount
Amount in satoshis (Can be negative)
WalletModelTransaction(const QList< SendCoinsRecipient > &recipients)
void reassignAmounts(int nChangePosRet)
const std::vector< CTxOut > vout
std::unique_ptr< interfaces::PendingWalletTx > wtx
CAmount getTotalTransactionAmount() const
The basic transaction that is broadcasted on the network and contained in blocks. ...
unsigned int getTransactionSize()
QList< SendCoinsRecipient > recipients