Bitcoin ABC 0.30.5
P2P Digital Currency
Functions
receive.cpp File Reference
#include <wallet/receive.h>
#include <consensus/validation.h>
#include <wallet/transaction.h>
#include <wallet/wallet.h>
Include dependency graph for receive.cpp:

Go to the source code of this file.

Functions

isminetype InputIsMine (const CWallet &wallet, const CTxIn &txin)
 
bool AllInputsMine (const CWallet &wallet, const CTransaction &tx, const isminefilter &filter)
 Returns whether all of the inputs match the filter. More...
 
Amount OutputGetCredit (const CWallet &wallet, const CTxOut &txout, const isminefilter &filter)
 
Amount TxGetCredit (const CWallet &wallet, const CTransaction &tx, const isminefilter &filter)
 
bool ScriptIsChange (const CWallet &wallet, const CScript &script)
 
bool OutputIsChange (const CWallet &wallet, const CTxOut &txout)
 
Amount OutputGetChange (const CWallet &wallet, const CTxOut &txout)
 
Amount TxGetChange (const CWallet &wallet, const CTransaction &tx)
 
static Amount GetCachableAmount (const CWallet &wallet, const CWalletTx &wtx, CWalletTx::AmountType type, const isminefilter &filter, bool recalculate=false)
 
Amount CachedTxGetCredit (const CWallet &wallet, const CWalletTx &wtx, const isminefilter &filter)
 
Amount CachedTxGetDebit (const CWallet &wallet, const CWalletTx &wtx, const isminefilter &filter)
 filter decides which addresses will count towards the debit More...
 
Amount CachedTxGetChange (const CWallet &wallet, const CWalletTx &wtx)
 
Amount CachedTxGetImmatureCredit (const CWallet &wallet, const CWalletTx &wtx, bool fUseCache)
 
Amount CachedTxGetImmatureWatchOnlyCredit (const CWallet &wallet, const CWalletTx &wtx, const bool fUseCache)
 
Amount CachedTxGetAvailableCredit (const CWallet &wallet, const CWalletTx &wtx, bool fUseCache, const isminefilter &filter)
 
void CachedTxGetAmounts (const CWallet &wallet, const CWalletTx &wtx, std::list< COutputEntry > &listReceived, std::list< COutputEntry > &listSent, Amount &nFee, const isminefilter &filter)
 
bool CachedTxIsFromMe (const CWallet &wallet, const CWalletTx &wtx, const isminefilter &filter)
 
bool CachedTxIsTrusted (const CWallet &wallet, const CWalletTx &wtx, std::set< TxId > &trusted_parents)
 
bool CachedTxIsTrusted (const CWallet &wallet, const CWalletTx &wtx)
 
Balance GetBalance (const CWallet &wallet, const int min_depth, bool avoid_reuse)
 
std::map< CTxDestination, AmountGetAddressBalances (const CWallet &wallet)
 
std::set< std::set< CTxDestination > > GetAddressGroupings (const CWallet &wallet)
 

Function Documentation

◆ AllInputsMine()

bool AllInputsMine ( const CWallet wallet,
const CTransaction tx,
const isminefilter filter 
)

Returns whether all of the inputs match the filter.

Definition at line 25 of file receive.cpp.

◆ CachedTxGetAmounts()

void CachedTxGetAmounts ( const CWallet wallet,
const CWalletTx wtx,
std::list< COutputEntry > &  listReceived,
std::list< COutputEntry > &  listSent,
Amount nFee,
const isminefilter filter 
)

Definition at line 262 of file receive.cpp.

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

◆ CachedTxGetAvailableCredit()

Amount CachedTxGetAvailableCredit ( const CWallet wallet,
const CWalletTx wtx,
bool  fUseCache,
const isminefilter filter 
)

Definition at line 217 of file receive.cpp.

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

◆ CachedTxGetChange()

Amount CachedTxGetChange ( const CWallet wallet,
const CWalletTx wtx 
)

Definition at line 183 of file receive.cpp.

Here is the call graph for this function:

◆ CachedTxGetCredit()

Amount CachedTxGetCredit ( const CWallet wallet,
const CWalletTx wtx,
const isminefilter filter 
)

Definition at line 139 of file receive.cpp.

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

◆ CachedTxGetDebit()

Amount CachedTxGetDebit ( const CWallet wallet,
const CWalletTx wtx,
const isminefilter filter 
)

filter decides which addresses will count towards the debit

Definition at line 164 of file receive.cpp.

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

◆ CachedTxGetImmatureCredit()

Amount CachedTxGetImmatureCredit ( const CWallet wallet,
const CWalletTx wtx,
bool  fUseCache 
)

Definition at line 192 of file receive.cpp.

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

◆ CachedTxGetImmatureWatchOnlyCredit()

Amount CachedTxGetImmatureWatchOnlyCredit ( const CWallet wallet,
const CWalletTx wtx,
const bool  fUseCache 
)

Definition at line 204 of file receive.cpp.

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

◆ CachedTxIsFromMe()

bool CachedTxIsFromMe ( const CWallet wallet,
const CWalletTx wtx,
const isminefilter filter 
)

Definition at line 321 of file receive.cpp.

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

◆ CachedTxIsTrusted() [1/2]

bool CachedTxIsTrusted ( const CWallet wallet,
const CWalletTx wtx 
)

Definition at line 378 of file receive.cpp.

Here is the call graph for this function:

◆ CachedTxIsTrusted() [2/2]

bool CachedTxIsTrusted ( const CWallet wallet,
const CWalletTx wtx,
std::set< TxId > &  trusted_parents 
)

Definition at line 326 of file receive.cpp.

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

◆ GetAddressBalances()

std::map< CTxDestination, Amount > GetAddressBalances ( const CWallet wallet)

Definition at line 413 of file receive.cpp.

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

◆ GetAddressGroupings()

std::set< std::set< CTxDestination > > GetAddressGroupings ( const CWallet wallet)

Definition at line 453 of file receive.cpp.

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

◆ GetBalance()

Balance GetBalance ( const CWallet wallet,
const int  min_depth,
bool  avoid_reuse 
)

Definition at line 384 of file receive.cpp.

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

◆ GetCachableAmount()

static Amount GetCachableAmount ( const CWallet wallet,
const CWalletTx wtx,
CWalletTx::AmountType  type,
const isminefilter filter,
bool  recalculate = false 
)
static

Definition at line 125 of file receive.cpp.

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

◆ InputIsMine()

isminetype InputIsMine ( const CWallet wallet,
const CTxIn txin 
)

Definition at line 11 of file receive.cpp.

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

◆ OutputGetChange()

Amount OutputGetChange ( const CWallet wallet,
const CTxOut txout 
)

Definition at line 102 of file receive.cpp.

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

◆ OutputGetCredit()

Amount OutputGetCredit ( const CWallet wallet,
const CTxOut txout,
const isminefilter filter 
)

Definition at line 51 of file receive.cpp.

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

◆ OutputIsChange()

bool OutputIsChange ( const CWallet wallet,
const CTxOut txout 
)

Definition at line 98 of file receive.cpp.

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

◆ ScriptIsChange()

bool ScriptIsChange ( const CWallet wallet,
const CScript script 
)

Definition at line 75 of file receive.cpp.

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

◆ TxGetChange()

Amount TxGetChange ( const CWallet wallet,
const CTransaction tx 
)

Definition at line 111 of file receive.cpp.

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

◆ TxGetCredit()

Amount TxGetCredit ( const CWallet wallet,
const CTransaction tx,
const isminefilter filter 
)

Definition at line 61 of file receive.cpp.

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