fix fallback phase not recognized bug
MODIFY
HiddenWallet/ChaumianCoinJoin/TumblerPhase.cs
HiddenWallet/ChaumianCoinJoin/TumblerPhase.cs
@@ -18,11 +18,10 @@ namespace HiddenWallet.ChaumianCoinJoin
{
if (phase == null) throw new ArgumentNullException(nameof(phase));
- if (phase == "FallBack" + phase.ToString()) return TumblerPhase.InputRegistration;
-
foreach (TumblerPhase p in Enum.GetValues(typeof(TumblerPhase)))
{
- if (phase.Equals(p.ToString(), StringComparison.OrdinalIgnoreCase))
+ if (phase.Equals(p.ToString(), StringComparison.OrdinalIgnoreCase)
+ || phase.Equals("FallBack" + p.ToString(), StringComparison.OrdinalIgnoreCase))
{
return p;
}

fix fallback phase not recognized bug