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:
commit
59097ed28d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user