From ff07b7664250c2d14b4229f4d34b4d1f945af7bf Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Wed, 3 Sep 2014 13:07:33 -0700 Subject: [PATCH] fixed splitting bug --- src/darksend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/darksend.cpp b/src/darksend.cpp index 99b66ee876..5d378e09ae 100644 --- a/src/darksend.cpp +++ b/src/darksend.cpp @@ -1105,7 +1105,7 @@ bool CDarkSendPool::DoAutomaticDenominating(bool fDryRun) vCoins.clear(); //simply look for non-denominated coins - if (pwalletMain->SelectCoinsDark(nValueMax+1, 9999999*COIN, vCoins, nValueIn, minRounds, nDarksendRounds, hasFeeInput)) + if (pwalletMain->SelectCoinsDark(maxAmount*COIN, 9999999*COIN, vCoins, nValueIn, minRounds, nDarksendRounds, hasFeeInput)) { if(!fDryRun) SplitUpMoney(); return true; @@ -1118,7 +1118,7 @@ bool CDarkSendPool::DoAutomaticDenominating(bool fDryRun) if(nValueIn < COIN*1.1){ //simply look for non-denominated coins - if (pwalletMain->SelectCoinsDark(nValueMax+1, 9999999*COIN, vCoins, nValueIn, minRounds, nDarksendRounds, hasFeeInput)) + if (pwalletMain->SelectCoinsDark(maxAmount*COIN, 9999999*COIN, vCoins, nValueIn, minRounds, nDarksendRounds, hasFeeInput)) { if(!fDryRun) SplitUpMoney(); return true;