Move `Network` guard up
MODIFY
WalletWasabi.Gui/Global.cs
WalletWasabi.Gui/Global.cs
@@ -82,6 +82,8 @@ namespace WalletWasabi.Gui
public Global(string dataDir, string torLogsFile, Config config, UiConfig uiConfig, WalletManager walletManager)
{
+ Guard.NotNull(nameof(config.Network), config.Network);
+
using (BenchmarkLogger.Measure())
{
StoppingCts = new CancellationTokenSource();

MODIFY
WalletWasabi/Stores/BitcoinStore.cs
WalletWasabi/Stores/BitcoinStore.cs
@@ -29,7 +29,6 @@ namespace WalletWasabi.Stores
var workFolderPath2 = Guard.NotNullOrEmptyOrWhitespace(nameof(workFolderPath), workFolderPath, trim: true);
IoHelpers.EnsureDirectoryExists(workFolderPath2);
- Guard.NotNull(nameof(network), network);
NetworkWorkFolderPath = Path.Combine(workFolderPath2, network.ToString());
IndexStoreFolderPath = Path.Combine(NetworkWorkFolderPath, "IndexStore");

Move `Network` guard up

(cherry picked from commit b8115d90c051649c80ec6653114e86dd6366ba45)