src/wallet.cpp
// Make outputs by looping through denominations, from large to small
Make outputs by looping through denominations, from large to small
Make outputs by looping through denominations from large to small
BOOST_FOREACH(int64_t v, darkSendDenominations)
        {
            int added = 0;
            BOOST_FOREACH(const COutput& out, vCoins)
            {
                if(out.tx->vout[out.i].nValue == v                                                
                    && nValueRet + out.tx->vout[out.i].nValue < nTargetValue + (0.1 * COIN) + 100 
                    && added <= 100)                                                              
                {
                        CTxIn vin = CTxIn(out.tx->GetHash(),out.i);
                        nValueRet += out.tx->vout[out.i].nValue;
                        setCoinsRet.insert(make_pair(out.tx, out.i));
                        added++;
                }
            }
        }
BOOST_FOREACH ( int64_t v , darkSendDenominations ) { int added = 0 ; BOOST_FOREACH ( const COutput & out , vCoins ) { if ( out . tx -> vout [ out . i ] . nValue == v && nValueRet + out . tx -> vout [ out . i ] . nValue < nTargetValue + ( 0.1 * COIN ) + 100 && added <= 100 ) { CTxIn vin = CTxIn ( out . tx -> GetHash ( ) , out . i ) ; nValueRet += out . tx -> vout [ out . i ] . nValue ; setCoinsRet . insert ( make_pair ( out . tx , out . i ) ) ; added ++ ; } } }
Make outputs by looping through denominations, from large to small
Make outputs by looping through denominations from large to small
// make sure it's the denom we're looking for // round the amount up to .1 NTRN over // don't add more than 100 of one denom type