From 1b59a30c48da3a3c56b2cdd9eca89c48c071f149 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 --- 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 66a0bce4e5d3b..c7d8dca36d53a 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;