Make sure of locking in edge case.
MODIFY
WalletWasabi/Services/WalletService.cs
WalletWasabi/Services/WalletService.cs
@@ -319,12 +319,15 @@ namespace WalletWasabi.Services
}
}
catch (Exception ex)
+ {
+ lock (TransactionProcessor.Lock)
{
// When there's a connection failure do not clean the transactions, add them to processing.
foreach (var tx in BitcoinStore.TransactionStore.MempoolStore.GetTransactions())
{
TransactionProcessor.Process(tx);
}
+ }
Logger.LogWarning(ex);
}

Make sure of locking in edge case.