fix PrepareDarksendDenominate - loop instead of if

This commit is contained in:
UdjinM6 2015-06-22 21:10:46 +03:00
parent 12863bb423
commit d766b6b564

View File

@ -2376,7 +2376,7 @@ string CWallet::PrepareDarksendDenominate(int minRounds, int maxRounds)
int nOutputs = 0; int nOutputs = 0;
// add each output up to 10 times until it can't be added again // add each output up to 10 times until it can't be added again
if(nValueLeft - v >= 0 && nOutputs <= 10) { while(nValueLeft - v >= 0 && nOutputs <= 10) {
CScript scriptChange; CScript scriptChange;
CPubKey vchPubKey; CPubKey vchPubKey;
//use a unique change address //use a unique change address