From 73673238de2a9c4076c18cee6086cf72fc0ad8be Mon Sep 17 00:00:00 2001 From: InhumanPerfection <39734219+InhumanPerfection@users.noreply.github.com> Date: Wed, 20 Jun 2018 21:31:46 +0300 Subject: [PATCH 1/2] PrepareDenominate fix --- src/privatesend-client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/privatesend-client.cpp b/src/privatesend-client.cpp index d202ad3dfd1f6..4bb09df1188a5 100644 --- a/src/privatesend-client.cpp +++ b/src/privatesend-client.cpp @@ -1166,8 +1166,8 @@ bool CPrivateSendClient::PrepareDenominate(int nMinRounds, int nMaxRounds, std:: ++it2; } } - if(nValueLeft == 0) break; nStep++; + if(nValueLeft == 0) break; } { From 259b6cd45a2028caa3bd55329b5df044039ed0cd Mon Sep 17 00:00:00 2001 From: InhumanPerfection <39734219+InhumanPerfection@users.noreply.github.com> Date: Thu, 21 Jun 2018 01:10:26 +0300 Subject: [PATCH 2/2] Fix conditions --- src/privatesend-client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/privatesend-client.cpp b/src/privatesend-client.cpp index 4bb09df1188a5..02e43e8d0c85b 100644 --- a/src/privatesend-client.cpp +++ b/src/privatesend-client.cpp @@ -1178,7 +1178,7 @@ bool CPrivateSendClient::PrepareDenominate(int nMinRounds, int nMaxRounds, std:: } } - if (CPrivateSend::GetDenominations(vecTxOutRet) != nSessionDenom || (nSessionInputCount != 0 && nStep != nStepsMax)) { + if (CPrivateSend::GetDenominations(vecTxOutRet) != nSessionDenom || (nSessionInputCount != 0 && vecTxOutRet.size() != nSessionInputCount)) { { // unlock used coins on failure LOCK(pwalletMain->cs_wallet);