10 : recipients(_recipients)
52 if (i == nChangePosRet)
54 rcp.
amount = walletTransaction->
vout[i].nValue;
62 CAmount totalTransactionAmount = 0;
65 totalTransactionAmount += rcp.amount;
67 return totalTransactionAmount;
int64_t CAmount
Amount in satoshis (Can be negative)
The basic transaction that is broadcasted on the network and contained in blocks.
const std::vector< CTxOut > vout
void setTransactionFee(const CAmount &newFee)
void reassignAmounts(int nChangePosRet)
void setWtx(const CTransactionRef &)
QList< SendCoinsRecipient > getRecipients() const
QList< SendCoinsRecipient > recipients
unsigned int getTransactionSize()
CTransactionRef & getWtx()
WalletModelTransaction(const QList< SendCoinsRecipient > &recipients)
CAmount getTransactionFee() const
CAmount getTotalTransactionAmount() const
int64_t GetVirtualTransactionSize(int64_t nWeight, int64_t nSigOpCost, unsigned int bytes_per_sigop)
Compute the virtual transaction size (weight reinterpreted as bytes).
std::shared_ptr< const CTransaction > CTransactionRef