Skip to content

Commit 4f0ca9b

Browse files
committed
wallet: remove always false 'recalculate' arg from GetCachableAmount
1 parent 47b1012 commit 4f0ca9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/receive.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ CAmount TxGetChange(const CWallet& wallet, const CTransaction& tx)
111111
return nChange;
112112
}
113113

114-
static CAmount GetCachableAmount(const CWallet& wallet, const CWalletTx& wtx, CWalletTx::AmountType type, const isminefilter& filter, bool recalculate = false)
114+
static CAmount GetCachableAmount(const CWallet& wallet, const CWalletTx& wtx, CWalletTx::AmountType type, const isminefilter& filter)
115115
{
116116
auto& amount = wtx.m_amounts[type];
117-
if (recalculate || !amount.m_cached[filter]) {
117+
if (!amount.m_cached[filter]) {
118118
amount.Set(filter, type == CWalletTx::DEBIT ? wallet.GetDebit(*wtx.tx, filter) : TxGetCredit(wallet, *wtx.tx, filter));
119119
wtx.m_is_cache_empty = false;
120120
}

0 commit comments

Comments
 (0)