use last used block target as default
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/FeeChartViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/FeeChartViewModel.cs
@@ -28,7 +28,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
{
_sliderMinimum = 0;
_sliderMaximum = 9;
- _currentConfirmationTarget = 36;
+ _currentConfirmationTarget = Services.UiConfig.FeeTarget;
_currentConfirmationTargetString = "";
this.WhenAnyValue(x => x.CurrentConfirmationTarget)

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendFeeViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendFeeViewModel.cs
@@ -51,7 +51,10 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
private void Complete()
{
- Close(DialogResultKind.Normal, new FeeRate(FeeChart.GetSatoshiPerByte(FeeChart.CurrentConfirmationTarget)));
+ var blockTarget = FeeChart.CurrentConfirmationTarget;
+
+ Services.UiConfig.FeeTarget = (int)blockTarget;
+ Close(DialogResultKind.Normal, new FeeRate(FeeChart.GetSatoshiPerByte(blockTarget)));
}
protected override void OnNavigatedTo(bool isInHistory, CompositeDisposable disposables)
@@ -88,14 +91,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
if (_isSilent)
{
- var satPerByteThreshold = Services.Config.SatPerByteThreshold;
- var blockTargetThreshold = Services.Config.BlockTargetThreshold;
- var estimations = FeeChart.GetValues();
-
- var blockTarget = GetBestBlockTarget(estimations, satPerByteThreshold, blockTargetThreshold);
-
- FeeChart.CurrentConfirmationTarget = blockTarget;
- _transactionInfo.ConfirmationTimeSpan = CalculateConfirmationTime(blockTarget);
+ _transactionInfo.ConfirmationTimeSpan = CalculateConfirmationTime(FeeChart.CurrentConfirmationTarget);
Complete();
}

use last used block target as default