Merge pull request #373 from UdjinM6/v0.12.0.x_fix_PrepareDarksendDenominate

V0.12.0.x fix PrepareDarksendDenominate - loop instead of if
This commit is contained in:
evan82 2015-06-22 11:35:29 -07:00
commit 59097ed28d

View File

@ -2376,7 +2376,7 @@ string CWallet::PrepareDarksendDenominate(int minRounds, int maxRounds)
int nOutputs = 0;
// 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;
CPubKey vchPubKey;
//use a unique change address