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 (CAmount v, obfuScationDenominations) {
            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 
                    ) {
                    CTxIn vin = CTxIn(out.tx->GetHash(), out.i);
                    int rounds = GetInputObfuscationRounds(vin);
                    if (rounds < nObfuscationRounds) continue;
                    nValueRet += out.tx->vout[out.i].nValue;
                    setCoinsRet.insert(make_pair(out.tx, out.i));
                }
            }
        }
BOOST_FOREACH ( CAmount v , obfuScationDenominations ) { 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 ) { CTxIn vin = CTxIn ( out . tx -> GetHash ( ) , out . i ) ; int rounds = GetInputObfuscationRounds ( vin ) ; if ( rounds < nObfuscationRounds ) continue ; nValueRet += out . tx -> vout [ out . i ] . nValue ; setCoinsRet . insert ( make_pair ( out . tx , out . i ) ) ; } } }
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 BRO over // make sure it's actually anonymized