Skip to content

Commit ac90abe

Browse files
PastaPastaPastaUdjinM6
authored andcommitted
When mixing, always try to join an exsisting queue, only fall back to starting a new queue (#3085)
Signed-off-by: Pasta <pasta@dashboost.org>
1 parent 65cd334 commit ac90abe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/privatesend/privatesend-client.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -927,12 +927,12 @@ bool CPrivateSendClientSession::DoAutomaticDenominating(CConnman& connman, bool
927927
}
928928
} // LOCK2(cs_main, vpwallets[0]->cs_wallet);
929929

930-
bool fUseQueue = GetRandInt(100) > 33;
931-
// don't use the queues all of the time for mixing
932-
if (fUseQueue && JoinExistingQueue(nBalanceNeedsAnonymized, connman)) {
930+
// Always attempt to join an existing queue
931+
if (JoinExistingQueue(nBalanceNeedsAnonymized, connman)) {
933932
return true;
934933
}
935934

935+
// If we were unable to find/join an existing queue then start a new one.
936936
if (StartNewQueue(nBalanceNeedsAnonymized, connman)) return true;
937937

938938
strAutoDenomResult = _("No compatible Masternode found.");

0 commit comments

Comments
 (0)