diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 66a0bce4e5d3b0..c7d8dca36d53a1 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2522,7 +2522,7 @@ CAmount CWalletTx::GetDebit(const isminefilter& filter) const CAmount CWalletTx::GetCredit(const isminefilter& filter) const { // 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 credit = 0;