Fix warnings and formatting
MODIFY
WalletWasabi.Fluent/State/StateMachine.cs
WalletWasabi.Fluent/State/StateMachine.cs
@@ -64,7 +64,6 @@ public class StateMachine<TState, TTrigger> where TTrigger : Enum where TState :
_currentState.Enter();
}
-
private void Goto(TTrigger trigger, TState state, bool exit = true, bool enter = true)
{
if (_states.ContainsKey(state))
@@ -121,7 +120,7 @@ public class StateMachine<TState, TTrigger> where TTrigger : Enum where TState :
{
if (StateId.Equals(state))
{
- throw new InvalidOperationException("Configuring state re-entry is not allowed");
+ throw new InvalidOperationException("Configuring state re-entry is not allowed.");
}
_permittedTransitions[trigger] = state;

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
@@ -64,13 +64,11 @@ public partial class CoinJoinStateViewModel : ViewModelBase
[AutoNotify] private string _remainingTime;
[AutoNotify] private bool _isBalanceDisplayed;
- private readonly MusicStatusMessageViewModel _countDownMessage = new()
- { Message = "Waiting to auto-start coinjoin" };
+ private readonly MusicStatusMessageViewModel _countDownMessage = new() { Message = "Waiting to auto-start coinjoin" };
private readonly MusicStatusMessageViewModel _coinJoiningMessage = new() { Message = "Coinjoining" };
- private readonly MusicStatusMessageViewModel _pauseMessage = new()
- { Message = "Coinjoin is paused" };
+ private readonly MusicStatusMessageViewModel _pauseMessage = new() { Message = "Coinjoin is paused" };
private readonly MusicStatusMessageViewModel _stoppedMessage = new() { Message = "Coinjoin is stopped" };
@@ -116,8 +114,7 @@ public partial class CoinJoinStateViewModel : ViewModelBase
initialState = State.Disabled;
}
- _stateMachine =
- new StateMachine<State, Trigger>(initialState);
+ _stateMachine = new StateMachine<State, Trigger>(initialState);
ConfigureStateMachine(coinJoinManager);

MODIFY
WalletWasabi/WabiSabi/Client/StatusChangedEventArgs.cs
WalletWasabi/WabiSabi/Client/StatusChangedEventArgs.cs
@@ -8,6 +8,7 @@ public class StatusChangedEventArgs : EventArgs
{
Wallet = wallet;
}
+
public Wallet Wallet { get; }
}
@@ -37,6 +38,7 @@ public class CoinJoinCompletedEventArgs : StatusChangedEventArgs
{
CompletionStatus = completionStatus;
}
+
public CompletionStatus CompletionStatus { get; }
}
@@ -47,18 +49,19 @@ public class StoppedEventArgs : StatusChangedEventArgs
{
Reason = reason;
}
+
public StopReason Reason { get; }
}
public class StartErrorEventArgs : StatusChangedEventArgs
{
-
public StartErrorEventArgs(Wallet wallet, CoinjoinError error)
: base(wallet)
{
Error = error;
}
- public CoinjoinError Error;
+
+ public CoinjoinError Error { get; }
}
public enum StopReason

Fix warnings and formatting