diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2022-07-04 19:39:53 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2022-07-05 10:10:27 -0300 |
commit | 47b1012677821ce2939e10ba462fbe53ffff17df (patch) | |
tree | 8cf692f77fe784e81cc39bb2041090cb04332025 /src/wallet/receive.cpp | |
parent | da8f62de2c5561e091ef8073d6950c033f41aabf (diff) | |
download | bitcoin-47b1012677821ce2939e10ba462fbe53ffff17df.tar.xz |
wallet: remove always true 'fUseCache' from CachedTxGetImmatureWatchOnlyCredit
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 8512ee9b2c..e9d59d8f0f 100644 --- a/src/wallet/receive.cpp +++ b/src/wallet/receive.cpp @@ -175,12 +175,12 @@ CAmount CachedTxGetImmatureCredit(const CWallet& wallet, const CWalletTx& wtx) return 0; } -CAmount CachedTxGetImmatureWatchOnlyCredit(const CWallet& wallet, const CWalletTx& wtx, const bool fUseCache) +CAmount CachedTxGetImmatureWatchOnlyCredit(const CWallet& wallet, const CWalletTx& wtx) { AssertLockHeld(wallet.cs_wallet); if (wallet.IsTxImmatureCoinBase(wtx) && wallet.IsTxInMainChain(wtx)) { - return GetCachableAmount(wallet, wtx, CWalletTx::IMMATURE_CREDIT, ISMINE_WATCH_ONLY, !fUseCache); + return GetCachableAmount(wallet, wtx, CWalletTx::IMMATURE_CREDIT, ISMINE_WATCH_ONLY); } return 0; |