do safer mempool tx accepting
MODIFY
WalletWasabi/Services/WalletService.cs
WalletWasabi/Services/WalletService.cs
@@ -150,10 +150,22 @@ namespace WalletWasabi.Services
RefreshCoinsHistoriesAsync();
}
+ private static object TransactionProcessingLock { get; } = new object();
+
private void MemPool_TransactionReceived(object sender, SmartTransaction tx)
+ {
+ try
+ {
+ lock (TransactionProcessingLock)
{
ProcessTransaction(tx);
}
+ }
+ catch (Exception ex)
+ {
+ Logger.LogWarning<WalletService>(ex);
+ }
+ }
private async void IndexDownloader_ReorgedAsync(object sender, FilterModel invalidFilter)
{

do safer mempool tx accepting