Confirmations on history's confirmed checkmake tooltip
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabView.xaml
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
</Grid.Styles>
- <Border Background="Transparent" IsVisible="{Binding Confirmed}" Grid.Column="0" ToolTip.Tip="Confirmed">
+ <Border Background="Transparent" IsVisible="{Binding Confirmed}" Grid.Column="0" ToolTip.Tip="{Binding Confirmations, StringFormat=\{0\} Confirmations}">
<Path HorizontalAlignment="Center" Data="F1 M 23.7501,33.25L 34.8334,44.3333L 52.2499,22.1668L 56.9999,26.9168L 34.8334,53.8333L 19.0001,38L 23.7501,33.25 Z" Fill="#22B14C" Height="16" Width="16" Stretch="Fill" />
</Border>
<TextBlock Text="{Binding DateTime, ConverterParameter=11, Converter={StaticResource LurkingWifeModeStringConverter}, Mode=OneWay}" Grid.Column="1" />

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabViewModel.cs
@@ -105,6 +105,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
DateTime = txr.dateTime.ToLocalTime(),
Confirmed = txr.height.Type == HeightType.Chain,
+ Confirmations = txr.height.Type == HeightType.Chain ? Global.BitcoinStore.HashChain.TipHeight - txr.height.Value + 1 : 0,
AmountBtc = $"{txr.amount.ToString(fplus: true, trimExcessZero: true)}",
Label = txr.label,
TransactionId = txr.transactionId.ToString()

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/TransactionInfo.cs
WalletWasabi.Gui/Controls/WalletExplorer/TransactionInfo.cs
@@ -7,6 +7,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
public class TransactionInfo : ReactiveObject
{
+ private int _confirmations;
private bool _confirmed;
private DateTimeOffset _dateTime;
private string _amountBtc;
@@ -19,6 +20,12 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
set => this.RaiseAndSetIfChanged(ref _dateTime, value);
}
+ public int Confirmations
+ {
+ get => _confirmations;
+ set => this.RaiseAndSetIfChanged(ref _confirmations, value);
+ }
+
public bool Confirmed
{
get => _confirmed;

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewModel.cs
@@ -34,6 +34,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
public bool Confirmed => Model.Confirmed;
+ public int Confirmations => Model.Confirmations;
+
public string AmountBtc => Model.AmountBtc;
public Money Amount => Money.TryParse(Model.AmountBtc, out Money money) ? money : Money.Zero;

Confirmations on history's confirmed checkmake tooltip