Skip to content

Commit 47b1012

Browse files
committed
wallet: remove always true 'fUseCache' from CachedTxGetImmatureWatchOnlyCredit
1 parent da8f62d commit 47b1012

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/wallet/receive.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,12 @@ CAmount CachedTxGetImmatureCredit(const CWallet& wallet, const CWalletTx& wtx)
175175
return 0;
176176
}
177177

178-
CAmount CachedTxGetImmatureWatchOnlyCredit(const CWallet& wallet, const CWalletTx& wtx, const bool fUseCache)
178+
CAmount CachedTxGetImmatureWatchOnlyCredit(const CWallet& wallet, const CWalletTx& wtx)
179179
{
180180
AssertLockHeld(wallet.cs_wallet);
181181

182182
if (wallet.IsTxImmatureCoinBase(wtx) && wallet.IsTxInMainChain(wtx)) {
183-
return GetCachableAmount(wallet, wtx, CWalletTx::IMMATURE_CREDIT, ISMINE_WATCH_ONLY, !fUseCache);
183+
return GetCachableAmount(wallet, wtx, CWalletTx::IMMATURE_CREDIT, ISMINE_WATCH_ONLY);
184184
}
185185

186186
return 0;

src/wallet/receive.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ CAmount CachedTxGetDebit(const CWallet& wallet, const CWalletTx& wtx, const ismi
3131
CAmount CachedTxGetChange(const CWallet& wallet, const CWalletTx& wtx);
3232
CAmount CachedTxGetImmatureCredit(const CWallet& wallet, const CWalletTx& wtx)
3333
EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet);
34-
CAmount CachedTxGetImmatureWatchOnlyCredit(const CWallet& wallet, const CWalletTx& wtx, const bool fUseCache = true)
34+
CAmount CachedTxGetImmatureWatchOnlyCredit(const CWallet& wallet, const CWalletTx& wtx)
3535
EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet);
3636
CAmount CachedTxGetAvailableCredit(const CWallet& wallet, const CWalletTx& wtx, bool fUseCache = true, const isminefilter& filter = ISMINE_SPENDABLE)
3737
EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet);

0 commit comments

Comments
 (0)