6#include <config/bitcoin-config.h>
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) {
The basic transaction that is broadcasted on the network and contained in blocks.
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
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
static constexpr Amount zero() noexcept