From 72a20db5a42754f2512a8cb5f7cc1e8c94805630 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 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;