src/qt/walletmodel.cpp
bool WalletModel::getMNCollateralCandidate(COutPoint& outPoint)
{
    std::vector<COutput> vCoins;
    wallet->AvailableCoins(&vCoins, true, nullptr, false, ONLY_285);
    for (const COutput& out : vCoins) {
        // skip locked collaterals
        if (!isLockedCoin(out.tx->GetHash(), out.i)) {
            outPoint = COutPoint(out.tx->GetHash(), out.i);
            return true;
        }
    }
    return false;
}
// returns a COutPoint of 285 XOS if found
returns a COutPoint of 285 XOS if found
returns a COutPoint of 285 XOS if found
bool WalletModel::getMNCollateralCandidate(COutPoint& outPoint)
{
    std::vector<COutput> vCoins;
    wallet->AvailableCoins(&vCoins, true, nullptr, false, ONLY_285);
    for (const COutput& out : vCoins) {
        if (!isLockedCoin(out.tx->GetHash(), out.i)) {
            outPoint = COutPoint(out.tx->GetHash(), out.i);
            return true;
        }
    }
    return false;
}
bool WalletModel :: getMNCollateralCandidate ( COutPoint & outPoint ) { std :: vector < COutput > vCoins ; wallet -> AvailableCoins ( & vCoins , true , nullptr , false , ONLY_285 ) ; for ( const COutput & out : vCoins ) { if ( ! isLockedCoin ( out . tx -> GetHash ( ) , out . i ) ) { outPoint = COutPoint ( out . tx -> GetHash ( ) , out . i ) ; return true ; } } return false ; }
returns a COutPoint of 285 XOS if found
returns a COutPoint of 285 XOS if found
// skip locked collaterals