Put first parameter on new line
MODIFY
WalletWasabi.Backend/Config.cs
WalletWasabi.Backend/Config.cs
@@ -28,7 +28,8 @@ namespace WalletWasabi.Backend
{
}
- public Config(Network network,
+ public Config(
+ Network network,
string bitcoinRpcConnectionString,
EndPoint mainNetBitcoinP2pEndPoint,
EndPoint testNetBitcoinP2pEndPoint,

MODIFY
WalletWasabi.Backend/Global.cs
WalletWasabi.Backend/Global.cs
@@ -61,7 +61,8 @@ namespace WalletWasabi.Backend
if (roundConfig.FilePath != null)
{
- HostedServices.Register(new ConfigWatcher(
+ HostedServices.Register(
+ new ConfigWatcher(
TimeSpan.FromSeconds(10), // Every 10 seconds check the config
RoundConfig,
() =>
@@ -76,7 +77,8 @@ namespace WalletWasabi.Backend
{
Logger.LogDebug(ex);
}
- }), "Config Watcher");
+ }),
+ "Config Watcher");
}
await HostedServices.StartAllAsync(cancel);

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ClosedWalletViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/ClosedWalletViewModel.cs
@@ -17,7 +17,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
protected ClosedWalletViewModel(Wallet wallet) : base(wallet)
{
- OpenWalletCommand = ReactiveCommand.CreateFromTask(async () =>
+ OpenWalletCommand = ReactiveCommand.CreateFromTask(
+ async () =>
{
try
{
@@ -34,7 +35,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
NotificationHelpers.Error($"Couldn't load wallet. Reason: {ex.ToUserFriendlyString()}", sender: wallet);
Logger.LogError(ex);
}
- }, this.WhenAnyValue(x => x.WalletState).Select(x => x == WalletState.Uninitialized));
+ },
+ this.WhenAnyValue(x => x.WalletState).Select(x => x == WalletState.Uninitialized));
}
public ReactiveCommand<Unit, Unit> OpenWalletCommand { get; }

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
@@ -46,7 +46,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
return;
}
- AvaloniaThreadingExtensions.PostLogException(Dispatcher.UIThread,
+ AvaloniaThreadingExtensions.PostLogException(
+ Dispatcher.UIThread,
() =>
{
var newKey = Wallet.KeyManager.GetNextReceiveKey(label, out bool minGapLimitIncreased);

MODIFY
WalletWasabi.Gui/Helpers/AvaloniaThreadingExtensions.cs
WalletWasabi.Gui/Helpers/AvaloniaThreadingExtensions.cs
@@ -10,7 +10,8 @@ namespace Avalonia.Threading
{
public static void PostLogException(this Dispatcher dispatcher, Func<Task> action, DispatcherPriority priority = DispatcherPriority.Normal)
{
- dispatcher.Post(async () =>
+ dispatcher.Post(
+ async () =>
{
try
{
@@ -26,7 +27,8 @@ namespace Avalonia.Threading
public static void PostLogException(this Dispatcher dispatcher, Action action, DispatcherPriority priority = DispatcherPriority.Normal)
{
- dispatcher.Post(() =>
+ dispatcher.Post(
+ () =>
{
try
{

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/GenerateWallets/GenerateWalletSuccessViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/GenerateWallets/GenerateWalletSuccessViewModel.cs
@@ -29,12 +29,14 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.GenerateWallets
var global = Locator.Current.GetService<Global>();
- ConfirmCommand = ReactiveCommand.Create(() =>
+ ConfirmCommand = ReactiveCommand.Create(
+ () =>
{
var wallet = global.WalletManager.AddWallet(keyManager);
NotificationHelpers.Success("Wallet was generated.");
owner.SelectTestPassword(wallet.WalletName);
- }, this.WhenAnyValue(x => x.IsConfirmed));
+ },
+ this.WhenAnyValue(x => x.IsConfirmed));
ConfirmCommand.ThrownExceptions
.ObserveOn(RxApp.TaskpoolScheduler)

MODIFY
WalletWasabi.Tests/RpcTests.cs
WalletWasabi.Tests/RpcTests.cs
@@ -131,7 +131,9 @@ namespace WalletWasabi.Tests
private static string ToJson(object o)
{
- return JsonConvert.SerializeObject(o, new JsonSerializerSettings
+ return JsonConvert.SerializeObject(
+ o,
+ new JsonSerializerSettings
{
DefaultValueHandling = DefaultValueHandling.Ignore
});

MODIFY
WalletWasabi.Tests/UnitTests/HashChainTests.cs
WalletWasabi.Tests/UnitTests/HashChainTests.cs
@@ -23,7 +23,8 @@ namespace WalletWasabi.Tests.UnitTests
// Assert some functions do not raise any events when default.
Assert.Throws<PropertyChangedException>(() =>
- Assert.PropertyChanged(hashChain,
+ Assert.PropertyChanged(
+ hashChain,
nameof(hashChain.HashCount),
() =>
{
@@ -32,8 +33,10 @@ namespace WalletWasabi.Tests.UnitTests
hashChain.RemoveLast();
AssertEverythingDefault(hashChain);
}));
+
Assert.Throws<PropertyChangedException>(() =>
- Assert.PropertyChanged(hashChain,
+ Assert.PropertyChanged(
+ hashChain,
nameof(hashChain.HashesLeft),
() =>
{
@@ -42,8 +45,10 @@ namespace WalletWasabi.Tests.UnitTests
hashChain.RemoveLast();
AssertEverythingDefault(hashChain);
}));
+
Assert.Throws<PropertyChangedException>(() =>
- Assert.PropertyChanged(hashChain,
+ Assert.PropertyChanged(
+ hashChain,
nameof(hashChain.ServerTipHeight),
() =>
{
@@ -52,8 +57,10 @@ namespace WalletWasabi.Tests.UnitTests
hashChain.RemoveLast();
AssertEverythingDefault(hashChain);
}));
+
Assert.Throws<PropertyChangedException>(() =>
- Assert.PropertyChanged(hashChain,
+ Assert.PropertyChanged(
+ hashChain,
nameof(hashChain.TipHash),
() =>
{
@@ -62,8 +69,10 @@ namespace WalletWasabi.Tests.UnitTests
hashChain.RemoveLast();
AssertEverythingDefault(hashChain);
}));
+
Assert.Throws<PropertyChangedException>(() =>
- Assert.PropertyChanged(hashChain,
+ Assert.PropertyChanged(
+ hashChain,
nameof(hashChain.TipHeight),
() =>
{
@@ -75,56 +84,61 @@ namespace WalletWasabi.Tests.UnitTests
// Assert the correct events are thrown and not thrown when applicable.
var newServerHeight = hashChain.ServerTipHeight + 1;
- Assert.PropertyChanged(hashChain,
+ Assert.PropertyChanged(
+ hashChain,
nameof(hashChain.ServerTipHeight),
-
// ASSERT FUNCTION
// Assert update server height raises.
() => hashChain.UpdateServerTipHeight(newServerHeight));
+
newServerHeight++;
- Assert.PropertyChanged(hashChain,
+ Assert.PropertyChanged(
+ hashChain,
nameof(hashChain.HashesLeft),
-
// ASSERT FUNCTION
// Assert update server height raises.
() => hashChain.UpdateServerTipHeight(newServerHeight));
newServerHeight++;
Assert.Throws<PropertyChangedException>(() =>
- Assert.PropertyChanged(hashChain,
+ Assert.PropertyChanged(
+ hashChain,
nameof(hashChain.HashCount),
-
// ASSERT FUNCTIONS
// Assert update server height does not raise unnecessary events.
() => hashChain.UpdateServerTipHeight(newServerHeight)));
+
newServerHeight++;
Assert.Throws<PropertyChangedException>(() =>
- Assert.PropertyChanged(hashChain,
+ Assert.PropertyChanged(
+ hashChain,
nameof(hashChain.TipHash),
-
// ASSERT FUNCTIONS
// Assert update server height does not raise unnecessary events.
() => hashChain.UpdateServerTipHeight(newServerHeight)));
+
newServerHeight++;
Assert.Throws<PropertyChangedException>(() =>
- Assert.PropertyChanged(hashChain,
+ Assert.PropertyChanged(
+ hashChain,
nameof(hashChain.TipHeight),
-
// ASSERT FUNCTIONS
// Assert update server height does not raise unnecessary events.
() => hashChain.UpdateServerTipHeight(newServerHeight)));
+
var sameServerheight = newServerHeight;
Assert.Throws<PropertyChangedException>(() =>
- Assert.PropertyChanged(hashChain,
+ Assert.PropertyChanged(
+ hashChain,
nameof(hashChain.ServerTipHeight),
-
// ASSERT FUNCTIONS
// Assert update server height does not raise without actually changing.
() => hashChain.UpdateServerTipHeight(sameServerheight)));
+
Assert.Throws<PropertyChangedException>(() =>
- Assert.PropertyChanged(hashChain,
+ Assert.PropertyChanged(
+ hashChain,
nameof(hashChain.HashesLeft),
-
// ASSERT FUNCTIONS
// Assert update server height does not raise without actually changing.
() => hashChain.UpdateServerTipHeight(sameServerheight)));

MODIFY
WalletWasabi.Tests/UnitTests/Transactions/AllTransactionStoreTests.cs
WalletWasabi.Tests/UnitTests/Transactions/AllTransactionStoreTests.cs
@@ -375,7 +375,8 @@ namespace WalletWasabi.Tests.UnitTests.Transactions
[Fact]
public async Task ReorgAsync()
{
- PrepareTestEnv(out string dir,
+ PrepareTestEnv(
+ out string dir,
out Network network,
out string mempoolFile,
out string txFile,

MODIFY
WalletWasabi.Tests/UnitTests/Transactions/TransactionFactoryTests.cs
WalletWasabi.Tests/UnitTests/Transactions/TransactionFactoryTests.cs
@@ -529,10 +529,12 @@ namespace WalletWasabi.Tests.UnitTests.Transactions
[Fact]
public void DoNotSignWatchOnly()
{
- var transactionFactory = CreateTransactionFactory(new[]
+ var transactionFactory = CreateTransactionFactory(
+ new[]
{
("Pablo", 0, 1m, confirmed: true, anonymitySet: 1)
- }, watchOnly: true);
+ },
+ watchOnly: true);
var payment = new PaymentIntent(new Key().ScriptPubKey, MoneyRequest.CreateAllRemaining(subtractFee: true));

MODIFY
WalletWasabi/Blockchain/Transactions/SmartTransaction.cs
WalletWasabi/Blockchain/Transactions/SmartTransaction.cs
@@ -187,7 +187,8 @@ namespace WalletWasabi.Blockchain.Transactions
{
// GetHash is also serialized, so file can be interpreted with our eyes better.
- return string.Join(':',
+ return string.Join(
+ ':',
GetHash(),
Transaction.ToHex(),
Height,

MODIFY
WalletWasabi/Helpers/RuntimeParams.cs
WalletWasabi/Helpers/RuntimeParams.cs
@@ -61,7 +61,8 @@ namespace WalletWasabi.Helpers
}
string jsonString = JsonConvert.SerializeObject(this, Formatting.Indented);
- await File.WriteAllTextAsync(FilePath,
+ await File.WriteAllTextAsync(
+ FilePath,
jsonString,
Encoding.UTF8);
}

MODIFY
WalletWasabi/Mono/OptionValueCollection.cs
WalletWasabi/Mono/OptionValueCollection.cs
@@ -317,8 +317,8 @@ namespace Mono.Options
if (C.Option.OptionValueType == OptionValueType.Required &&
index >= Values.Count)
{
- throw new OptionException(string.Format(
- C.OptionSet.MessageLocalizer($"Missing required value for option '{C.OptionName}'.")),
+ throw new OptionException(
+ string.Format(C.OptionSet.MessageLocalizer($"Missing required value for option '{C.OptionName}'.")),
C.OptionName);
}
}

MODIFY
WalletWasabi/Nito/AsyncEx/AsyncWaitQueueExtensions.cs
WalletWasabi/Nito/AsyncEx/AsyncWaitQueueExtensions.cs
@@ -31,7 +31,8 @@ namespace Nito.AsyncEx
return ret;
}
- var registration = token.Register(() =>
+ var registration = token.Register(
+ () =>
{
lock (mutex)
{

Put first parameter on new line