Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
WalletModelTransaction Class Reference

Data model for a walletmodel transaction. More...

#include <walletmodeltransaction.h>

Public Member Functions

 WalletModelTransaction (const QList< SendCoinsRecipient > &recipients)
QList< SendCoinsRecipientgetRecipients () const
CTransactionRefgetWtx ()
void setWtx (const CTransactionRef &)
unsigned int getTransactionSize ()
void setTransactionFee (const CAmount &newFee)
CAmount getTransactionFee () const
CAmount getTotalTransactionAmount () const
void reassignAmounts (int nChangePosRet)

Private Attributes

QList< SendCoinsRecipientrecipients
CTransactionRef wtx
CAmount fee {0}

Detailed Description

Data model for a walletmodel transaction.

Definition at line 22 of file walletmodeltransaction.h.

Constructor & Destructor Documentation

◆ WalletModelTransaction()

WalletModelTransaction::WalletModelTransaction ( const QList< SendCoinsRecipient > & recipients)
explicit

Definition at line 9 of file walletmodeltransaction.cpp.

Member Function Documentation

◆ getRecipients()

QList< SendCoinsRecipient > WalletModelTransaction::getRecipients ( ) const

Definition at line 14 of file walletmodeltransaction.cpp.

Here is the caller graph for this function:

◆ getTotalTransactionAmount()

CAmount WalletModelTransaction::getTotalTransactionAmount ( ) const

Definition at line 60 of file walletmodeltransaction.cpp.

◆ getTransactionFee()

CAmount WalletModelTransaction::getTransactionFee ( ) const

Definition at line 34 of file walletmodeltransaction.cpp.

◆ getTransactionSize()

unsigned int WalletModelTransaction::getTransactionSize ( )

Definition at line 29 of file walletmodeltransaction.cpp.

Here is the call graph for this function:

◆ getWtx()

CTransactionRef & WalletModelTransaction::getWtx ( )

Definition at line 19 of file walletmodeltransaction.cpp.

Here is the caller graph for this function:

◆ reassignAmounts()

void WalletModelTransaction::reassignAmounts ( int nChangePosRet)

Definition at line 44 of file walletmodeltransaction.cpp.

Here is the caller graph for this function:

◆ setTransactionFee()

void WalletModelTransaction::setTransactionFee ( const CAmount & newFee)

Definition at line 39 of file walletmodeltransaction.cpp.

Here is the caller graph for this function:

◆ setWtx()

void WalletModelTransaction::setWtx ( const CTransactionRef & newTx)

Definition at line 24 of file walletmodeltransaction.cpp.

Member Data Documentation

◆ fee

CAmount WalletModelTransaction::fee {0}
private

Definition at line 44 of file walletmodeltransaction.h.

◆ recipients

QList<SendCoinsRecipient> WalletModelTransaction::recipients
private

Definition at line 42 of file walletmodeltransaction.h.

◆ wtx

CTransactionRef WalletModelTransaction::wtx
private

Definition at line 43 of file walletmodeltransaction.h.


The documentation for this class was generated from the following files: