Skip to content

Commit

Permalink
Merge pull request #11086 from turbolay/fixHurray
Browse files Browse the repository at this point in the history
Use NoCoinsEligibleToMix instead of AllCoinsPrivate if all candidates are private
  • Loading branch information
soosr committed Aug 1, 2023
2 parents 94d08ef + e115b0d commit 4486632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WalletWasabi/WabiSabi/Client/CoinJoinManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ async Task<IEnumerable<SmartCoin>> SanityChecksAndGetCoinCandidatesFunc()
// If coin candidates are already private and the user doesn't override the StopWhenAllMixed, then don't mix.
if (coinCandidates.All(x => x.IsPrivate(walletToStart.AnonScoreTarget)) && startCommand.StopWhenAllMixed)
{
throw new CoinJoinClientException(CoinjoinError.AllCoinsPrivate, $"All coin candidates are already private and {nameof(startCommand.StopWhenAllMixed)} was {startCommand.StopWhenAllMixed}");
throw new CoinJoinClientException(CoinjoinError.NoCoinsEligibleToMix, $"All coin candidates are already private and {nameof(startCommand.StopWhenAllMixed)} was {startCommand.StopWhenAllMixed}");
}

NotifyWalletStartedCoinJoin(walletToStart);
Expand Down

0 comments on commit 4486632

Please sign in to comment.