6#include <config/bitcoin-config.h>
14 const QList<SendCoinsRecipient> &_recipients)
15 : recipients(_recipients), fee() {}
26 return wtx ?
wtx->GetTotalSize() : 0;
42 if (rcp.paymentRequest.IsInitialized()) {
44 const payments::PaymentDetails &details =
45 rcp.paymentRequest.getDetails();
46 for (
int j = 0; j < details.outputs_size(); j++) {
47 const payments::Output &out = details.outputs(j);
48 if (out.amount() <= 0) {
52 if (i == nChangePosRet) {
56 subtotal += walletTransaction->
vout[i].nValue;
59 rcp.amount = subtotal;
66 if (i == nChangePosRet) {
70 rcp.
amount = walletTransaction->
vout[i].nValue;
79 totalTransactionAmount += rcp.
amount;
81 return totalTransactionAmount;
The basic transaction that is broadcasted on the network and contained in blocks.
const std::vector< CTxOut > vout
void reassignAmounts(int nChangePosRet)
void setTransactionFee(const Amount newFee)
QList< SendCoinsRecipient > getRecipients() const
Amount getTransactionFee() const
QList< SendCoinsRecipient > recipients
unsigned int getTransactionSize()
Amount getTotalTransactionAmount() const
CTransactionRef & getWtx()
WalletModelTransaction(const QList< SendCoinsRecipient > &recipients)
std::shared_ptr< const CTransaction > CTransactionRef
static constexpr Amount zero() noexcept