From b2486d5f31ff7fa91ad717fad917ba898036dd0e Mon Sep 17 00:00:00 2001 From: celbalrai <80897309+celbalrai@users.noreply.github.com> Date: Sat, 24 Apr 2021 06:51:42 +0200 Subject: [PATCH] Wallet staking maturity - update coin availability Modified by: wagerr-builder <104495875+wagerr-builder@users.noreply.github.com> --- src/wallet/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;