MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / CachedTxGetDebit

Function CachedTxGetDebit

src/wallet/receive.cpp:122–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122CAmount CachedTxGetDebit(const CWallet& wallet, const CWalletTx& wtx, bool avoid_reuse)
123{
124 if (wtx.tx->vin.empty())
125 return 0;
126
127 return GetCachableAmount(wallet, wtx, CWalletTx::DEBIT, avoid_reuse);
128}
129
130CAmount CachedTxGetChange(const CWallet& wallet, const CWalletTx& wtx)
131{

Callers 3

CachedTxGetAmountsFunction · 0.85
MakeWalletTxFunction · 0.85
gettransactionFunction · 0.85

Calls 2

GetCachableAmountFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected