src/activemasternode.cpp
vector<COutput> CActiveMasternode::SelectCoinsMasternode()
{
    vector<COutput> vCoins;
    vector<COutput> filteredCoins;

    // Retrieve all possible outputs
    pwalletMain->AvailableCoinsMN(vCoins);

    // Filter
    BOOST_FOREACH(const COutput& out, vCoins)
    {
        if(out.tx->vout[out.i].nValue == 25000*COIN) { //exactly
            filteredCoins.push_back(out);
        }
    }
    return filteredCoins;
}
// get all possible outputs for running masternode
get all possible outputs for running masternode
get all possible outputs for running masternode
vector<COutput> CActiveMasternode::SelectCoinsMasternode()
{
    vector<COutput> vCoins;
    vector<COutput> filteredCoins;
    pwalletMain->AvailableCoinsMN(vCoins);
    BOOST_FOREACH(const COutput& out, vCoins)
    {
        if(out.tx->vout[out.i].nValue == 25000*COIN) { 
            filteredCoins.push_back(out);
        }
    }
    return filteredCoins;
}
vector < COutput > CActiveMasternode :: SelectCoinsMasternode ( ) { vector < COutput > vCoins ; vector < COutput > filteredCoins ; pwalletMain -> AvailableCoinsMN ( vCoins ) ; BOOST_FOREACH ( const COutput & out , vCoins ) { if ( out . tx -> vout [ out . i ] . nValue == 25000 * COIN ) { filteredCoins . push_back ( out ) ; } } return filteredCoins ; }
get all possible outputs for running masternode
get all possible outputs for running masternode
// Retrieve all possible outputs // Filter //exactly