PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Public Attributes | Private Attributes | List of all members
CWalletTx Class Reference

A transaction with a bunch of additional info that only the owner cares about. More...

#include <wallet.h>

Inheritance diagram for CWalletTx:
[legend]
Collaboration diagram for CWalletTx:
[legend]

Public Member Functions

 CWalletTx ()
 
 CWalletTx (CWallet *pwalletIn)
 
 CWalletTx (CWallet *pwalletIn, const CMerkleTx &txIn)
 
 CWalletTx (CWallet *pwalletIn, const CTransaction &txIn)
 
void Init (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 GetUnlockedCredit () const
 filter decides which addresses will count towards the debit More...
 
CAmount GetDebit (const isminefilter &filter) const
 
CAmount GetCredit (const isminefilter &filter) const
 
CAmount GetImmatureCredit (bool fUseCache=true) const
 
CAmount GetAvailableCredit (bool fUseCache=true) const
 
CAmount GetLockedCredit () const
 
CAmount GetImmatureWatchOnlyCredit (const bool &fUseCache=true) const
 
CAmount GetAvailableWatchOnlyCredit (const bool &fUseCache=true) const
 
CAmount GetChange () 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 InMempool () const
 
bool IsTrusted () const
 
int GetBlockHeight () const
 
bool WriteToDisk (CWalletDB *pwalletdb)
 
int64_t GetTxTime () const
 
int64_t GetComputedTxTime () const
 
int GetRequestCount () const
 
void RelayWalletTransaction (std::string strCommand=NetMsgType::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
 Return depth of transaction in blockchain: -1 : not in blockchain, and not in memory pool (conflicted transaction) 0 : in memory pool, waiting to be included in a block >=1 : this many blocks deep in the main chain. More...
 
int GetDepthInMainChain (bool enableIX=true) const
 
bool IsInMainChain () const
 
bool IsInMainChainImmature () const
 
int GetBlocksToMaturity () const
 
bool AcceptToMemoryPool (bool fLimitFree=true, bool fRejectInsaneFee=true, bool ignoreFees=false)
 
int GetTransactionLockSignatures () const
 
bool IsTransactionLockTimedOut () const
 
- Public Member Functions inherited from CTransaction
 CTransaction ()
 Construct a CTransaction that qualifies as IsNull() More...
 
 CTransaction (const CMutableTransaction &tx)
 Convert a CMutableTransaction into a CTransaction. More...
 
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
 
bool UsesUTXO (const COutPoint out)
 
std::list< COutPointGetOutPoints () const
 
bool IsCoinBase () const
 
bool IsCoinAudit () const
 
bool IsCoinStake () 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
 
char fSpent = false
 position in ordered transaction list More...
 
bool fDebitCached
 
bool fCreditCached
 
bool fImmatureCreditCached
 
bool fAvailableCreditCached
 
bool fWatchDebitCached
 
bool fWatchCreditCached
 
bool fImmatureWatchCreditCached
 
bool fAvailableWatchCreditCached
 
bool fChangeCached
 
CAmount nDebitCached
 
CAmount nCreditCached
 
CAmount nImmatureCreditCached
 
CAmount nAvailableCreditCached
 
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
 
std::vector< CTxInvin
 
std::vector< CTxOutvout
 
const uint32_t nLockTime
 
CKey txPrivM
 
char hasPaymentID
 
uint64_t paymentID
 
uint32_t txType
 
std::vector< unsigned char > bulletproofs
 
CAmount nTxFee
 
uint256 c
 
std::vector< std::vector< uint256 > > S
 
CKeyImage ntxFeeKeyImage
 
 ADD_SERIALIZE_METHODS
 

Private Attributes

CWalletpwallet
 

Additional Inherited Members

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

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 792 of file wallet.h.

Constructor & Destructor Documentation

◆ CWalletTx() [1/4]

CWalletTx::CWalletTx ( )

Definition at line 6244 of file wallet.cpp.

Here is the call graph for this function:

◆ CWalletTx() [2/4]

CWalletTx::CWalletTx ( CWallet pwalletIn)

Definition at line 6249 of file wallet.cpp.

Here is the call graph for this function:

◆ CWalletTx() [3/4]

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

Definition at line 6254 of file wallet.cpp.

Here is the call graph for this function:

◆ CWalletTx() [4/4]

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

Definition at line 6259 of file wallet.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ BindWallet()

void CWalletTx::BindWallet ( CWallet pwalletIn)

Definition at line 6340 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetBlockHeight()

int CWalletTx::GetBlockHeight ( ) const

Definition at line 6360 of file wallet.cpp.

Here is the call graph for this function:

◆ GetChange()

CAmount CWalletTx::GetChange ( ) const

Definition at line 6346 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Init()

void CWalletTx::Init ( CWallet pwalletIn)

Definition at line 6264 of file wallet.cpp.

◆ IsFromMe()

bool CWalletTx::IsFromMe ( const isminefilter filter) const

Definition at line 6355 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsTrusted()

bool CWalletTx::IsTrusted ( ) const

Definition at line 6295 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MarkDirty()

void CWalletTx::MarkDirty ( )

make sure balances are recalculated

Definition at line 6328 of file wallet.cpp.

Here is the caller graph for this function:

◆ 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 839 of file wallet.h.

Here is the call graph for this function:

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CWalletTx::ADD_SERIALIZE_METHODS

Definition at line 836 of file wallet.h.

◆ fAvailableCreditCached

bool CWalletTx::fAvailableCreditCached
mutable

Definition at line 812 of file wallet.h.

◆ fAvailableWatchCreditCached

bool CWalletTx::fAvailableWatchCreditCached
mutable

Definition at line 816 of file wallet.h.

◆ fChangeCached

bool CWalletTx::fChangeCached
mutable

Definition at line 817 of file wallet.h.

◆ fCreditCached

bool CWalletTx::fCreditCached
mutable

Definition at line 810 of file wallet.h.

◆ fDebitCached

bool CWalletTx::fDebitCached
mutable

Definition at line 809 of file wallet.h.

◆ fFromMe

char CWalletTx::fFromMe

Definition at line 803 of file wallet.h.

◆ fImmatureCreditCached

bool CWalletTx::fImmatureCreditCached
mutable

Definition at line 811 of file wallet.h.

◆ fImmatureWatchCreditCached

bool CWalletTx::fImmatureWatchCreditCached
mutable

Definition at line 815 of file wallet.h.

◆ fSpent

char CWalletTx::fSpent = false

position in ordered transaction list

Definition at line 806 of file wallet.h.

◆ fTimeReceivedIsTxTime

unsigned int CWalletTx::fTimeReceivedIsTxTime

Definition at line 800 of file wallet.h.

◆ fWatchCreditCached

bool CWalletTx::fWatchCreditCached
mutable

Definition at line 814 of file wallet.h.

◆ fWatchDebitCached

bool CWalletTx::fWatchDebitCached
mutable

Definition at line 813 of file wallet.h.

◆ mapValue

mapValue_t CWalletTx::mapValue

Definition at line 798 of file wallet.h.

◆ nAvailableCreditCached

CAmount CWalletTx::nAvailableCreditCached
mutable

Definition at line 822 of file wallet.h.

◆ nAvailableWatchCreditCached

CAmount CWalletTx::nAvailableWatchCreditCached
mutable

Definition at line 826 of file wallet.h.

◆ nChangeCached

CAmount CWalletTx::nChangeCached
mutable

Definition at line 827 of file wallet.h.

◆ nCreditCached

CAmount CWalletTx::nCreditCached
mutable

Definition at line 820 of file wallet.h.

◆ nDebitCached

CAmount CWalletTx::nDebitCached
mutable

Definition at line 819 of file wallet.h.

◆ nImmatureCreditCached

CAmount CWalletTx::nImmatureCreditCached
mutable

Definition at line 821 of file wallet.h.

◆ nImmatureWatchCreditCached

CAmount CWalletTx::nImmatureWatchCreditCached
mutable

Definition at line 825 of file wallet.h.

◆ nOrderPos

int64_t CWalletTx::nOrderPos

Definition at line 805 of file wallet.h.

◆ nTimeReceived

unsigned int CWalletTx::nTimeReceived

Definition at line 801 of file wallet.h.

◆ nTimeSmart

unsigned int CWalletTx::nTimeSmart

time received by this node

Definition at line 802 of file wallet.h.

◆ nWatchCreditCached

CAmount CWalletTx::nWatchCreditCached
mutable

Definition at line 824 of file wallet.h.

◆ nWatchDebitCached

CAmount CWalletTx::nWatchDebitCached
mutable

Definition at line 823 of file wallet.h.

◆ pwallet

CWallet* CWalletTx::pwallet
private

Definition at line 795 of file wallet.h.

◆ strFromAccount

std::string CWalletTx::strFromAccount

Definition at line 804 of file wallet.h.

◆ vOrderForm

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

Definition at line 799 of file wallet.h.


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