make sure that broadcaster is available
MODIFY
WalletWasabi.Fluent/ViewModels/TransactionBroadcasting/LoadTransactionViewModel.cs
WalletWasabi.Fluent/ViewModels/TransactionBroadcasting/LoadTransactionViewModel.cs
@@ -7,6 +7,7 @@ using Avalonia;
using NBitcoin;
using ReactiveUI;
using Splat;
+using WalletWasabi.Blockchain.TransactionBroadcasting;
using WalletWasabi.Blockchain.Transactions;
using WalletWasabi.Fluent.Helpers;
using WalletWasabi.Fluent.ViewModels.Navigation;
@@ -39,11 +40,11 @@ namespace WalletWasabi.Fluent.ViewModels.TransactionBroadcasting
this.WhenAnyValue(x => x.FinalTransaction)
.Where(x => x is { })
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(x =>
+ .Subscribe(finalTransaction =>
{
try
{
- Navigate().To(new BroadcastTransactionViewModel(BitcoinStore, x!, Network, global.TransactionBroadcaster));
+ Navigate().To(new BroadcastTransactionViewModel(global, finalTransaction!));
}
catch (Exception ex)
{

MODIFY
WalletWasabi.Fluent/Views/TransactionBroadcasting/BroadcastTransactionView.axaml
WalletWasabi.Fluent/Views/TransactionBroadcasting/BroadcastTransactionView.axaml
<c:ContentArea Title="Transaction"
Caption="{Binding TransactionId}"
EnableCancel="True"
- EnableNext="True" NextContent="Broadcast"
- IsBusy="{Binding IsBusy}">
+ EnableNext="True" NextContent="Broadcast">
+
+ <DockPanel LastChildFill="True">
+ <DockPanel.Styles>
- <Panel>
- <Panel.Styles>
<Style Selector="TextBlock.unit">
<Setter Property="VerticalAlignment" Value="Bottom"/>
<Setter Property="Margin" Value="3 0 0 6"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="TextBlock.FontSize" Value="35"/>
</Style>
- </Panel.Styles>
+ </DockPanel.Styles>
+
+ <StackPanel Orientation="Horizontal" DockPanel.Dock="Bottom" HorizontalAlignment="Center" Margin="20">
+ <StackPanel.Styles>
+ <Style Selector="TextBlock">
+ <Setter Property="VerticalAlignment" Value="Bottom"/>
+ </Style>
+ <Style Selector="TextBlock.countValue">
+ <Setter Property="FontSize" Value="30"/>
+ <Setter Property="FontWeight" Value="Bold"/>
+ <Setter Property="Margin" Value="0 0 0 -4"/>
+ </Style>
+ </StackPanel.Styles>
+ <TextBlock Text="The transaction has " />
+ <TextBlock Text="{Binding InputCount}" Classes="countValue"/>
+ <TextBlock Text=" input(s) and " />
+ <TextBlock Text="{Binding OutputCount}" Classes="countValue"/>
+ <TextBlock Text=" output(s)." />
+ </StackPanel>
- <Grid ColumnDefinitions="*,*,*" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="20 0">
+ <Grid ColumnDefinitions="*,*,*" DockPanel.Dock="Bottom" HorizontalAlignment="Stretch" Margin="20">
<StackPanel Grid.Column="0" HorizontalAlignment="Left">
<TextBlock Text="Input" Classes="amountTitle"/>
<StackPanel Classes="amountValue">
</StackPanel>
</Grid>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0 0 0 20">
- <StackPanel.Styles>
- <Style Selector="TextBlock">
- <Setter Property="VerticalAlignment" Value="Bottom"/>
- </Style>
- <Style Selector="TextBlock.countValue">
- <Setter Property="FontSize" Value="30"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="Margin" Value="0 0 0 -4"/>
+ <Viewbox Width="300" DockPanel.Dock="Top" HorizontalAlignment="Center">
+ <Viewbox.Resources>
+ <SolidColorBrush x:Key="SystemAccentSolidColorBrush" Color="{StaticResource SystemAccentColor}"/>
+ </Viewbox.Resources>
+ <Viewbox.Styles>
+ <Style Selector="PathIcon.broadcasting">
+ <Setter Property="Opacity" Value="0.6"/>
+ <Setter Property="Foreground" Value="{StaticResource SystemAccentSolidColorBrush}"/>
+ <Style.Animations>
+ <Animation Duration="0:0:0.5" IterationCount="INFINITE" PlaybackDirection="Alternate">
+ <KeyFrame Cue="0%">
+ <Setter Property="Opacity" Value="0.4"/>
+ </KeyFrame>
+ <KeyFrame Cue="100%">
+ <Setter Property="Opacity" Value="1.0"/>
+ </KeyFrame>
+ </Animation>
+ </Style.Animations>
</Style>
- </StackPanel.Styles>
- <TextBlock Text="The transaction has "/>
- <TextBlock Text="{Binding InputCount}" Classes="countValue"/>
- <TextBlock Text=" input(s) and "/>
- <TextBlock Text="{Binding OutputCount}" Classes="countValue"/>
- <TextBlock Text=" output(s)."/>
- </StackPanel>
+ </Viewbox.Styles>
+
+ <PathIcon Data="{StaticResource live_regular}" Opacity="0.6"/>
+ </Viewbox>
- </Panel>
+ </DockPanel>
</c:ContentArea>
</UserControl>
\ No newline at end of file

make sure that broadcaster is available