Dash Core  0.12.2.1
P2P Digital Currency
CWalletTx Class Reference

#include <wallet.h>

+ Inheritance diagram for CWalletTx:

Public Member Functions

 CWalletTx ()
 
 CWalletTx (const CWallet *pwalletIn)
 
 CWalletTx (const CWallet *pwalletIn, const CMerkleTx &txIn)
 
 CWalletTx (const CWallet *pwalletIn, const CTransaction &txIn)
 
void Init (const CWallet *pwalletIn)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
void MarkDirty ()
 make sure balances are recalculated More...
 
void BindWallet (CWallet *pwalletIn)
 
CAmount GetDebit (const isminefilter &filter) const
 filter decides which addresses will count towards the debit More...
 
CAmount GetCredit (const isminefilter &filter) const
 
CAmount GetImmatureCredit (bool fUseCache=true) const
 
CAmount GetAvailableCredit (bool fUseCache=true) const
 
CAmount GetImmatureWatchOnlyCredit (const bool &fUseCache=true) const
 
CAmount GetAvailableWatchOnlyCredit (const bool &fUseCache=true) const
 
CAmount GetChange () const
 
CAmount GetAnonymizedCredit (bool fUseCache=true) const
 
CAmount GetDenominatedCredit (bool unconfirmed, bool fUseCache=true) const
 
void GetAmounts (std::list< COutputEntry > &listReceived, std::list< COutputEntry > &listSent, CAmount &nFee, std::string &strSentAccount, const isminefilter &filter) const
 
void GetAccountAmounts (const std::string &strAccount, CAmount &nReceived, CAmount &nSent, CAmount &nFee, const isminefilter &filter) const
 
bool IsFromMe (const isminefilter &filter) const
 
bool IsEquivalentTo (const CWalletTx &tx) const
 
bool InMempool () const
 
bool IsTrusted () const
 
bool WriteToDisk (CWalletDB *pwalletdb)
 
int64_t GetTxTime () const
 
int GetRequestCount () const
 
bool RelayWalletTransaction (CConnman *connman, std::string strCommand="tx")
 
std::set< uint256GetConflicts () const
 
- Public Member Functions inherited from CMerkleTx
 CMerkleTx ()
 
 CMerkleTx (const CTransaction &txIn)
 
void Init ()
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
int SetMerkleBranch (const CBlock &block)
 
int GetDepthInMainChain (const CBlockIndex *&pindexRet, bool enableIX=true) const
 
int GetDepthInMainChain (bool enableIX=true) const
 
bool IsInMainChain () const
 
int GetBlocksToMaturity () const
 
bool AcceptToMemoryPool (bool fLimitFree=true, bool fRejectAbsurdFee=true)
 
bool hashUnset () const
 
bool isAbandoned () const
 
void setAbandoned ()
 
- Public Member Functions inherited from CTransaction
 CTransaction ()
 
 CTransaction (const CMutableTransaction &tx)
 
CTransactionoperator= (const CTransaction &tx)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
bool IsNull () const
 
const uint256GetHash () const
 
CAmount GetValueOut () const
 
double ComputePriority (double dPriorityInputs, unsigned int nTxSize=0) const
 
unsigned int CalculateModifiedSize (unsigned int nTxSize=0) const
 
unsigned int GetTotalSize () const
 
bool IsCoinBase () const
 
std::string ToString () const
 

Public Attributes

mapValue_t mapValue
 
std::vector< std::pair< std::string, std::string > > vOrderForm
 
unsigned int fTimeReceivedIsTxTime
 
unsigned int nTimeReceived
 
unsigned int nTimeSmart
 time received by this node More...
 
char fFromMe
 
std::string strFromAccount
 
int64_t nOrderPos
 
bool fDebitCached
 position in ordered transaction list More...
 
bool fCreditCached
 
bool fImmatureCreditCached
 
bool fAvailableCreditCached
 
bool fAnonymizedCreditCached
 
bool fDenomUnconfCreditCached
 
bool fDenomConfCreditCached
 
bool fWatchDebitCached
 
bool fWatchCreditCached
 
bool fImmatureWatchCreditCached
 
bool fAvailableWatchCreditCached
 
bool fChangeCached
 
CAmount nDebitCached
 
CAmount nCreditCached
 
CAmount nImmatureCreditCached
 
CAmount nAvailableCreditCached
 
CAmount nAnonymizedCreditCached
 
CAmount nDenomUnconfCreditCached
 
CAmount nDenomConfCreditCached
 
CAmount nWatchDebitCached
 
CAmount nWatchCreditCached
 
CAmount nImmatureWatchCreditCached
 
CAmount nAvailableWatchCreditCached
 
CAmount nChangeCached
 
 ADD_SERIALIZE_METHODS
 
- Public Attributes inherited from CMerkleTx
uint256 hashBlock
 
int nIndex
 
 ADD_SERIALIZE_METHODS
 
- Public Attributes inherited from CTransaction
const int32_t nVersion
 
const std::vector< CTxInvin
 
const std::vector< CTxOutvout
 
const uint32_t nLockTime
 
 ADD_SERIALIZE_METHODS
 

Private Attributes

const CWalletpwallet
 

Additional Inherited Members

- Static Public Attributes inherited from CTransaction
static const int32_t CURRENT_VERSION =1
 
static const int32_t MAX_STANDARD_VERSION =2
 

Detailed Description

A transaction with a bunch of additional info that only the owner cares about. It includes any unrecorded transactions needed to link it back to the block chain.

Definition at line 275 of file wallet.h.

Constructor & Destructor Documentation

◆ CWalletTx() [1/4]

CWalletTx::CWalletTx ( )
inline

Definition at line 316 of file wallet.h.

◆ CWalletTx() [2/4]

CWalletTx::CWalletTx ( const CWallet pwalletIn)
inline

Definition at line 321 of file wallet.h.

◆ CWalletTx() [3/4]

CWalletTx::CWalletTx ( const CWallet pwalletIn,
const CMerkleTx txIn 
)
inline

Definition at line 326 of file wallet.h.

◆ CWalletTx() [4/4]

CWalletTx::CWalletTx ( const CWallet pwalletIn,
const CTransaction txIn 
)
inline

Definition at line 331 of file wallet.h.

Member Function Documentation

◆ BindWallet()

void CWalletTx::BindWallet ( CWallet pwalletIn)
inline

◆ Init()

void CWalletTx::Init ( const CWallet pwalletIn)
inline

Definition at line 336 of file wallet.h.

◆ IsFromMe()

bool CWalletTx::IsFromMe ( const isminefilter filter) const
inline

◆ MarkDirty()

void CWalletTx::MarkDirty ( )
inline

make sure balances are recalculated

Definition at line 418 of file wallet.h.

Referenced by CWallet::AddToWallet(), BindWallet(), and CWallet::MarkDirty().

◆ SerializationOp()

template<typename Stream , typename Operation >
void CWalletTx::SerializationOp ( Stream &  s,
Operation  ser_action,
int  nType,
int  nVersion 
)
inline

Used to be vtxPrev

Definition at line 376 of file wallet.h.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CWalletTx::ADD_SERIALIZE_METHODS

Definition at line 373 of file wallet.h.

◆ fAnonymizedCreditCached

bool CWalletTx::fAnonymizedCreditCached
mutable

Definition at line 295 of file wallet.h.

Referenced by Init(), and MarkDirty().

◆ fAvailableCreditCached

bool CWalletTx::fAvailableCreditCached
mutable

Definition at line 294 of file wallet.h.

Referenced by Init(), and MarkDirty().

◆ fAvailableWatchCreditCached

bool CWalletTx::fAvailableWatchCreditCached
mutable

Definition at line 301 of file wallet.h.

Referenced by Init(), and MarkDirty().

◆ fChangeCached

bool CWalletTx::fChangeCached
mutable

Definition at line 302 of file wallet.h.

Referenced by Init(), and MarkDirty().

◆ fCreditCached

bool CWalletTx::fCreditCached
mutable

Definition at line 292 of file wallet.h.

Referenced by Init(), and MarkDirty().

◆ fDebitCached

bool CWalletTx::fDebitCached
mutable

position in ordered transaction list

Definition at line 291 of file wallet.h.

Referenced by add_coin(), Init(), and MarkDirty().

◆ fDenomConfCreditCached

bool CWalletTx::fDenomConfCreditCached
mutable

Definition at line 297 of file wallet.h.

Referenced by Init(), and MarkDirty().

◆ fDenomUnconfCreditCached

bool CWalletTx::fDenomUnconfCreditCached
mutable

Definition at line 296 of file wallet.h.

Referenced by Init(), and MarkDirty().

◆ fFromMe

char CWalletTx::fFromMe

◆ fImmatureCreditCached

bool CWalletTx::fImmatureCreditCached
mutable

Definition at line 293 of file wallet.h.

Referenced by Init(), and MarkDirty().

◆ fImmatureWatchCreditCached

bool CWalletTx::fImmatureWatchCreditCached
mutable

Definition at line 300 of file wallet.h.

Referenced by Init(), and MarkDirty().

◆ fTimeReceivedIsTxTime

unsigned int CWalletTx::fTimeReceivedIsTxTime

Definition at line 283 of file wallet.h.

Referenced by CWallet::CreateTransaction(), Init(), and SerializationOp().

◆ fWatchCreditCached

bool CWalletTx::fWatchCreditCached
mutable

Definition at line 299 of file wallet.h.

Referenced by Init(), and MarkDirty().

◆ fWatchDebitCached

bool CWalletTx::fWatchDebitCached
mutable

Definition at line 298 of file wallet.h.

Referenced by Init(), and MarkDirty().

◆ mapValue

◆ nAnonymizedCreditCached

CAmount CWalletTx::nAnonymizedCreditCached
mutable

Definition at line 307 of file wallet.h.

Referenced by Init().

◆ nAvailableCreditCached

CAmount CWalletTx::nAvailableCreditCached
mutable

Definition at line 306 of file wallet.h.

Referenced by Init().

◆ nAvailableWatchCreditCached

CAmount CWalletTx::nAvailableWatchCreditCached
mutable

Definition at line 313 of file wallet.h.

Referenced by Init().

◆ nChangeCached

CAmount CWalletTx::nChangeCached
mutable

Definition at line 314 of file wallet.h.

Referenced by Init().

◆ nCreditCached

CAmount CWalletTx::nCreditCached
mutable

Definition at line 304 of file wallet.h.

Referenced by Init().

◆ nDebitCached

CAmount CWalletTx::nDebitCached
mutable

Definition at line 303 of file wallet.h.

Referenced by add_coin(), and Init().

◆ nDenomConfCreditCached

CAmount CWalletTx::nDenomConfCreditCached
mutable

Definition at line 309 of file wallet.h.

Referenced by Init().

◆ nDenomUnconfCreditCached

CAmount CWalletTx::nDenomUnconfCreditCached
mutable

Definition at line 308 of file wallet.h.

Referenced by Init().

◆ nImmatureCreditCached

CAmount CWalletTx::nImmatureCreditCached
mutable

Definition at line 305 of file wallet.h.

Referenced by Init().

◆ nImmatureWatchCreditCached

CAmount CWalletTx::nImmatureWatchCreditCached
mutable

Definition at line 312 of file wallet.h.

Referenced by Init().

◆ nOrderPos

int64_t CWalletTx::nOrderPos

◆ nTimeReceived

◆ nTimeSmart

unsigned int CWalletTx::nTimeSmart

time received by this node

Definition at line 285 of file wallet.h.

Referenced by CWallet::AddToWallet(), AppInit2(), Init(), SerializationOp(), and CWallet::SyncMetaData().

◆ nWatchCreditCached

CAmount CWalletTx::nWatchCreditCached
mutable

Definition at line 311 of file wallet.h.

Referenced by Init().

◆ nWatchDebitCached

CAmount CWalletTx::nWatchDebitCached
mutable

Definition at line 310 of file wallet.h.

Referenced by Init().

◆ pwallet

const CWallet* CWalletTx::pwallet
private

Definition at line 278 of file wallet.h.

Referenced by BindWallet(), and Init().

◆ strFromAccount

std::string CWalletTx::strFromAccount

Definition at line 287 of file wallet.h.

Referenced by AppInit2(), Init(), sendfrom(), sendmany(), SerializationOp(), and CWallet::SyncMetaData().

◆ vOrderForm

std::vector<std::pair<std::string, std::string> > CWalletTx::vOrderForm

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