diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2022-07-04 19:39:20 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2022-07-05 10:10:26 -0300 |
commit | da8f62de2c5561e091ef8073d6950c033f41aabf (patch) | |
tree | 55babb6f567f9b2b0879442e7024fe19ac483ff2 /src/wallet/receive.cpp | |
parent | 9fb2a2bc6768ab03fcada9155d52a16ce6f6a0cc (diff) | |
download | bitcoin-da8f62de2c5561e091ef8073d6950c033f41aabf.tar.xz |
wallet: remove always true 'fUseCache' from CachedTxGetImmatureCredit
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 8de4017371..8512ee9b2c 100644 --- a/src/wallet/receive.cpp +++ b/src/wallet/receive.cpp @@ -164,12 +164,12 @@ CAmount CachedTxGetChange(const CWallet& wallet, const CWalletTx& wtx) return wtx.nChangeCached; } -CAmount CachedTxGetImmatureCredit(const CWallet& wallet, const CWalletTx& wtx, bool fUseCache) +CAmount CachedTxGetImmatureCredit(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_SPENDABLE, !fUseCache); + return GetCachableAmount(wallet, wtx, CWalletTx::IMMATURE_CREDIT, ISMINE_SPENDABLE); } return 0; |