Bitcoin Core  22.99.0
P2P Digital Currency
Classes | Functions
receive.h File Reference
#include <amount.h>
#include <wallet/ismine.h>
#include <wallet/transaction.h>
#include <wallet/wallet.h>
Include dependency graph for receive.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  COutputEntry
 
struct  Balance
 

Functions

isminetype InputIsMine (const CWallet &wallet, const CTxIn &txin) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet)
 
bool AllInputsMine (const CWallet &wallet, const CTransaction &tx, const isminefilter &filter)
 Returns whether all of the inputs match the filter. More...
 
CAmount OutputGetCredit (const CWallet &wallet, const CTxOut &txout, const isminefilter &filter)
 
CAmount TxGetCredit (const CWallet &wallet, const CTransaction &tx, const isminefilter &filter)
 
bool ScriptIsChange (const CWallet &wallet, const CScript &script) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet)
 
bool OutputIsChange (const CWallet &wallet, const CTxOut &txout) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet)
 
CAmount OutputGetChange (const CWallet &wallet, const CTxOut &txout) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet)
 
CAmount TxGetChange (const CWallet &wallet, const CTransaction &tx)
 
CAmount CachedTxGetCredit (const CWallet &wallet, const CWalletTx &wtx, const isminefilter &filter)
 
CAmount CachedTxGetDebit (const CWallet &wallet, const CWalletTx &wtx, const isminefilter &filter)
 filter decides which addresses will count towards the debit More...
 
CAmount CachedTxGetChange (const CWallet &wallet, const CWalletTx &wtx)
 
CAmount CachedTxGetImmatureCredit (const CWallet &wallet, const CWalletTx &wtx, bool fUseCache=true)
 
CAmount CachedTxGetImmatureWatchOnlyCredit (const CWallet &wallet, const CWalletTx &wtx, const bool fUseCache=true)
 
CAmount CachedTxGetAvailableCredit (const CWallet &wallet, const CWalletTx &wtx, bool fUseCache=true, const isminefilter &filter=ISMINE_SPENDABLE) NO_THREAD_SAFETY_ANALYSIS
 
void CachedTxGetAmounts (const CWallet &wallet, const CWalletTx &wtx, std::list< COutputEntry > &listReceived, std::list< COutputEntry > &listSent, CAmount &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< uint256 > &trusted_parents) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet)
 
bool CachedTxIsTrusted (const CWallet &wallet, const CWalletTx &wtx)
 
Balance GetBalance (const CWallet &wallet, int min_depth=0, bool avoid_reuse=true)
 
std::map< CTxDestination, CAmountGetAddressBalances (const CWallet &wallet)
 
std::set< std::set< CTxDestination > > GetAddressGroupings (const CWallet &wallet) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_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 23 of file receive.cpp.

Here is the caller graph for this function:

◆ CachedTxGetAmounts()

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

Definition at line 215 of file receive.cpp.

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

◆ CachedTxGetAvailableCredit()

CAmount CachedTxGetAvailableCredit ( const CWallet wallet,
const CWalletTx wtx,
bool  fUseCache = true,
const isminefilter filter = ISMINE_SPENDABLE 
)

Definition at line 181 of file receive.cpp.

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

◆ CachedTxGetChange()

CAmount CachedTxGetChange ( const CWallet wallet,
const CWalletTx wtx 
)

Definition at line 154 of file receive.cpp.

Here is the call graph for this function:

◆ CachedTxGetCredit()

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

Definition at line 122 of file receive.cpp.

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

◆ CachedTxGetDebit()

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

filter decides which addresses will count towards the debit

Definition at line 139 of file receive.cpp.

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

◆ CachedTxGetImmatureCredit()

CAmount CachedTxGetImmatureCredit ( const CWallet wallet,
const CWalletTx wtx,
bool  fUseCache = true 
)

Definition at line 163 of file receive.cpp.

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

◆ CachedTxGetImmatureWatchOnlyCredit()

CAmount CachedTxGetImmatureWatchOnlyCredit ( const CWallet wallet,
const CWalletTx wtx,
const bool  fUseCache = true 
)

Definition at line 172 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 272 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 309 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< uint256 > &  trusted_parents 
)

Definition at line 277 of file receive.cpp.

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

◆ GetAddressBalances()

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

Definition at line 345 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 383 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,
int  min_depth = 0,
bool  avoid_reuse = true 
)

Definition at line 316 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 10 of file receive.cpp.

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

◆ OutputGetChange()

CAmount OutputGetChange ( const CWallet wallet,
const CTxOut txout 
)

Definition at line 91 of file receive.cpp.

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

◆ OutputGetCredit()

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

Definition at line 44 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 86 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 64 of file receive.cpp.

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

◆ TxGetChange()

CAmount TxGetChange ( const CWallet wallet,
const CTransaction tx 
)

Definition at line 99 of file receive.cpp.

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

◆ TxGetCredit()

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

Definition at line 52 of file receive.cpp.

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