From d766b6b5644ee3500e1b4c11f3a6bbb12db71a66 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 22 Jun 2015 21:10:46 +0300 Subject: [PATCH] fix PrepareDarksendDenominate - loop instead of if --- src/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet.cpp b/src/wallet.cpp index d0bcc99ec2..a05599c106 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -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