Skip to content

Commit

Permalink
Wallet staking maturity - update coin availability
Browse files Browse the repository at this point in the history
Modified by: wagerr-builder <104495875+wagerr-builder@users.noreply.github.com>
  • Loading branch information
celbalrai authored and wagerr-builder committed Nov 26, 2022
1 parent 7ba52a8 commit b2486d5
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 @@ -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;
Expand Down

0 comments on commit b2486d5

Please sign in to comment.