mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
wallet: remove always false 'recalculate' arg from GetCachableAmount
This commit is contained in:
parent
47b1012677
commit
4f0ca9bff6
1 changed files with 2 additions and 2 deletions
|
|
@ -111,10 +111,10 @@ CAmount TxGetChange(const CWallet& wallet, const CTransaction& tx)
|
|||
return nChange;
|
||||
}
|
||||
|
||||
static CAmount GetCachableAmount(const CWallet& wallet, const CWalletTx& wtx, CWalletTx::AmountType type, const isminefilter& filter, bool recalculate = false)
|
||||
static CAmount GetCachableAmount(const CWallet& wallet, const CWalletTx& wtx, CWalletTx::AmountType type, const isminefilter& filter)
|
||||
{
|
||||
auto& amount = wtx.m_amounts[type];
|
||||
if (recalculate || !amount.m_cached[filter]) {
|
||||
if (!amount.m_cached[filter]) {
|
||||
amount.Set(filter, type == CWalletTx::DEBIT ? wallet.GetDebit(*wtx.tx, filter) : TxGetCredit(wallet, *wtx.tx, filter));
|
||||
wtx.m_is_cache_empty = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue