Skip to content

Commit

Permalink
Wallet staking maturity - update coin availability
Browse files Browse the repository at this point in the history
  • Loading branch information
celbalrai authored and ckti committed Apr 10, 2022
1 parent 6771036 commit 72a20db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 72a20db

Please sign in to comment.