mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 13:59:06 +01:00
fixed splitting bug
This commit is contained in:
parent
4b1a91368d
commit
ff07b76642
@ -1105,7 +1105,7 @@ bool CDarkSendPool::DoAutomaticDenominating(bool fDryRun)
|
|||||||
vCoins.clear();
|
vCoins.clear();
|
||||||
|
|
||||||
//simply look for non-denominated coins
|
//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();
|
if(!fDryRun) SplitUpMoney();
|
||||||
return true;
|
return true;
|
||||||
@ -1118,7 +1118,7 @@ bool CDarkSendPool::DoAutomaticDenominating(bool fDryRun)
|
|||||||
if(nValueIn < COIN*1.1){
|
if(nValueIn < COIN*1.1){
|
||||||
|
|
||||||
//simply look for non-denominated coins
|
//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();
|
if(!fDryRun) SplitUpMoney();
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user