Ignore corrupted Transactions.json file
MODIFY
WalletWasabi/Services/WalletService.cs
WalletWasabi/Services/WalletService.cs
@@ -211,6 +211,8 @@ namespace WalletWasabi.Services
// Load in dummy mempool
if (File.Exists(TransactionsFilePath))
+ {
+ try
{
string jsonString = File.ReadAllText(TransactionsFilePath, Encoding.UTF8);
var serializedTransactions = JsonConvert.DeserializeObject<IEnumerable<SmartTransaction>>(jsonString);
@@ -228,6 +230,12 @@ namespace WalletWasabi.Services
Logger.LogWarning<WalletService>(ex);
}
}
+ }
+ catch(Exception ex)
+ {
+ Logger.LogWarning<WalletService>(ex);
+ }
+
try
{
File.Delete(TransactionsFilePath);

Ignore corrupted Transactions.json file