MCPcopy Create free account
hub / github.com/ElementsProject/elements / TxGetChange

Function TxGetChange

src/wallet/receive.cpp:138–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138CAmountMap TxGetChange(const CWallet& wallet, const CWalletTx& wtx)
139{
140 LOCK(wallet.cs_wallet);
141 CAmountMap nChange = GetChange(wallet, wtx);
142 if (!MoneyRange(nChange))
143 throw std::runtime_error(std::string(__func__) + ": value out of range");
144 return nChange;
145}
146
147static CAmountMap GetCachableAmount(const CWallet& wallet, const CWalletTx& wtx, CWalletTx::AmountType type, const isminefilter& filter, bool recalculate = false)
148{

Callers 1

CachedTxGetChangeFunction · 0.85

Calls 2

GetChangeFunction · 0.85
MoneyRangeFunction · 0.50

Tested by

no test coverage detected