Re-create config file if it is broken
MODIFY
WalletWasabi/Bases/ConfigBase.cs
WalletWasabi/Bases/ConfigBase.cs
@@ -63,9 +63,16 @@ namespace WalletWasabi.Bases
Logger.LogInfo($"{GetType().Name} file did not exist. Created at path: `{FilePath}`.");
}
else
+ {
+ try
{
await LoadFileAsync();
}
+ catch(JsonReaderException)
+ {
+ Logger.LogInfo($"{GetType().Name} file is corrupted. Create default version at path: `{FilePath}`.");
+ }
+ }
await ToFileAsync();
}

Re-create config file if it is broken