diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2022-07-04 19:40:32 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2022-07-05 10:10:27 -0300 |
commit | 4f0ca9bff6299353f595fe168dce720a96a91c41 (patch) | |
tree | 851963177966c108802aadaa345013c2315bc494 /src/wallet/receive.cpp | |
parent | 47b1012677821ce2939e10ba462fbe53ffff17df (diff) |
wallet: remove always false 'recalculate' arg from GetCachableAmount
Diffstat (limited to 'src/wallet/receive.cpp')
-rw-r--r-- | src/wallet/receive.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/receive.cpp b/src/wallet/receive.cpp index e9d59d8f0f..5bee00baa6 100644 --- a/src/wallet/receive.cpp +++ b/src/wallet/receive.cpp @@ -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; } |