mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
fix PrepareDarksendDenominate - loop instead of if
This commit is contained in:
parent
12863bb423
commit
d766b6b564
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user