really catch every exception
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/PrivacyControlViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/PrivacyControlViewModel.cs
@@ -57,6 +57,8 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
{
var coins = selectedList.Items.SelectMany(x => x.Coins).ToArray();
+ try
+ {
try
{
var transactionResult = TransactionHelpers.BuildTransaction(_wallet, transactionInfo.Address, transactionInfo.Amount, transactionInfo.Labels, transactionInfo.FeeRate, coins, subtractFee: false);
@@ -73,6 +75,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
Navigate().To(new TransactionPreviewViewModel(wallet, transactionInfo, broadcaster, transactionResult));
}
}
+ }
catch (Exception ex)
{
Logger.LogError(ex);

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
@@ -120,6 +120,8 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
var totalMixedCoinsAmount = Money.FromUnit(mixedCoins.Sum(coin => coin.Amount), MoneyUnit.Satoshi);
if (transactionInfo.Amount <= totalMixedCoinsAmount)
+ {
+ try
{
try
{
@@ -139,6 +141,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
return;
}
}
+ }
catch(Exception ex)
{
Logger.LogError(ex);

really catch every exception