Skip to content
Permalink
Browse files

Merge pull request #809 from lontivero/Features/Display-Coin-Address

Add Bitcoin address to the coins' details
  • Loading branch information...
nopara73 committed Nov 7, 2018
2 parents acd6c13 + 16c1aad commit 140b3040bbcb8ca5829ae18614fc5ed2c16d69d2
@@ -47,8 +47,11 @@
<TextBlock Text="Label:" Grid.Row="2" />
<controls:ExtendedTextBox Classes="selectableTextBlock Transaparent" Text="{Binding Label}" Grid.Column="1" Grid.Row="2" />

<TextBlock Text="Anonymity Set:" Grid.Row="3" />
<controls:ExtendedTextBox Classes="selectableTextBlock Transaparent" Text="{Binding AnonymitySet}" Grid.Column="1" Grid.Row="3" />
<TextBlock Text="Address:" Grid.Row="3" />
<controls:ExtendedTextBox Classes="selectableTextBlock Transaparent" Text="{Binding Address}" Grid.Column="1" Grid.Row="3" />

<TextBlock Text="Anonymity Set:" Grid.Row="4" />
<controls:ExtendedTextBox Classes="selectableTextBlock Transaparent" Text="{Binding AnonymitySet}" Grid.Column="1" Grid.Row="4" />
</Grid>
</StackPanel>
</Expander>
@@ -42,6 +42,8 @@ public CoinViewModel(SmartCoin model)

public bool SpentOrCoinJoinInProgress => Model.SpentOrCoinJoinInProgress;

public string Address => Model.ScriptPubKey.GetDestinationAddress(Global.Network).ToString();

public int Confirmations => Model.Height.Type == HeightType.Chain
? Global.IndexDownloader.BestHeight.Value - Model.Height.Value + 1
: 0;

0 comments on commit 140b304

Please sign in to comment.
You can’t perform that action at this time.