diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index e5a4edee03448..2d8357d122e41 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1546,7 +1546,7 @@ CAmount CWalletTx::GetUnlockedCredit(bool fUseCache, const isminefilter& filter) return 0; // Must wait until coinbase is safely deep enough in the chain before valuing it - if (IsGenerated() && GetBlocksToMaturity() > 0) + if (IsCoinBase() && GetBlocksToMaturity() > 0) return 0; CAmount nCredit = 0;