src/wallet/wallet.cpp
/**
 * Note is spent if any non-conflicted transaction
 * spends it:
 */
Note is spent if any non-conflicted transaction
spends it.
Note is spent if any non - conflicted transaction spends it .
bool CWallet::IsSproutSpent(const uint256& nullifier) const {
    pair<TxNullifiers::const_iterator, TxNullifiers::const_iterator> range;
    range = mapTxSproutNullifiers.equal_range(nullifier);
    for (TxNullifiers::const_iterator it = range.first; it != range.second; ++it) {
        const uint256& wtxid = it->second;
        std::map<uint256, CWalletTx>::const_iterator mit = mapWallet.find(wtxid);
        if (mit != mapWallet.end() && mit->second.GetDepthInMainChain() >= 0) {
            return true; 
        }
    }
    return false;
}
bool CWallet :: IsSproutSpent ( const uint256 & nullifier ) const { pair < TxNullifiers :: const_iterator , TxNullifiers :: const_iterator > range ; range = mapTxSproutNullifiers . equal_range ( nullifier ) ; for ( TxNullifiers :: const_iterator it = range . first ; it != range . second ; ++ it ) { const uint256 & wtxid = it -> second ; std :: map < uint256 , CWalletTx > :: const_iterator mit = mapWallet . find ( wtxid ) ; if ( mit != mapWallet . end ( ) && mit -> second . GetDepthInMainChain ( ) >= 0 ) { return true ; } } return false ; }
Note is spent if any non-conflicted transaction
 spends it:
Note is spent if any non - conflicted transaction spends it :
// Spent