src/wallet.cpp
CAmount CWallet::GetStake() const
{
    CAmount nTotal = 0;
    LOCK(cs_wallet);
    for (map<uint256, CWalletTx>::const_iterator it = mapWallet.begin(); it != mapWallet.end(); ++it)
    {
        const CWalletTx* pcoin = &(*it).second;
        if (pcoin->IsCoinStake() && pcoin->GetBlocksToMaturity() > 0 && pcoin->GetDepthInMainChain() > 0)
            nTotal += CWallet::GetCredit(*pcoin, ISMINE_SPENDABLE);
    }
    return nTotal;
}
// PoSV: total coins staked (non-spendable until maturity)
total coins staked (non-spendable until maturity)
total coins staked ( non - spendable until maturity )
CAmount CWallet::GetStake() const
{
    CAmount nTotal = 0;
    LOCK(cs_wallet);
    for (map<uint256, CWalletTx>::const_iterator it = mapWallet.begin(); it != mapWallet.end(); ++it)
    {
        const CWalletTx* pcoin = &(*it).second;
        if (pcoin->IsCoinStake() && pcoin->GetBlocksToMaturity() > 0 && pcoin->GetDepthInMainChain() > 0)
            nTotal += CWallet::GetCredit(*pcoin, ISMINE_SPENDABLE);
    }
    return nTotal;
}
CAmount CWallet :: GetStake ( ) const { CAmount nTotal = 0 ; LOCK ( cs_wallet ) ; for ( map < uint256 , CWalletTx > :: const_iterator it = mapWallet . begin ( ) ; it != mapWallet . end ( ) ; ++ it ) { const CWalletTx * pcoin = & ( * it ) . second ; if ( pcoin -> IsCoinStake ( ) && pcoin -> GetBlocksToMaturity ( ) > 0 && pcoin -> GetDepthInMainChain ( ) > 0 ) nTotal += CWallet :: GetCredit ( * pcoin , ISMINE_SPENDABLE ) ; } return nTotal ; }
PoSV: total coins staked (non-spendable until maturity)
PoSV : total coins staked ( non - spendable until maturity )