src/wallet.cpp
// TODO: find appropriate place for this sort function
// move denoms down
find appropriate place for this sort function
move denoms down
find appropriate place for this sort function move denoms down
bool less_then_denom(const COutput& out1, const COutput& out2)
{
    const CWalletTx *pcoin1 = out1.tx;
    const CWalletTx *pcoin2 = out2.tx;
    bool found1 = false;
    bool found2 = false;
    BOOST_FOREACH(int64_t d, darkSendDenominations) 
    {
        if(pcoin1->vout[out1.i].nValue == d) found1 = true;
        if(pcoin2->vout[out2.i].nValue == d) found2 = true;
    }
    return (!found1 && found2);
}
bool less_then_denom ( const COutput & out1 , const COutput & out2 ) { const CWalletTx * pcoin1 = out1 . tx ; const CWalletTx * pcoin2 = out2 . tx ; bool found1 = false ; bool found2 = false ; BOOST_FOREACH ( int64_t d , darkSendDenominations ) { if ( pcoin1 -> vout [ out1 . i ] . nValue == d ) found1 = true ; if ( pcoin2 -> vout [ out2 . i ] . nValue == d ) found2 = true ; } return ( ! found1 && found2 ) ; }
TODO: find appropriate place for this sort function
move denoms down
TODO : find appropriate place for this sort function move denoms down
// loop through predefined denoms