File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -193,4 +193,5 @@ FakesAssemblies/
193193# LightSwitch generated files
194194GeneratedArtifacts /
195195_Pvt_Extensions /
196- ModelManifest.xml
196+ ModelManifest.xml
197+ * .pubxml
Original file line number Diff line number Diff line change 99 <Version >0.11.0</Version >
1010 </PropertyGroup >
1111 <ItemGroup >
12- <PackageReference Include =" Autarkysoft.Bitcoin" Version =" 0.11 .0" />
12+ <PackageReference Include =" Autarkysoft.Bitcoin" Version =" 0.12 .0" />
1313 <PackageReference Include =" Avalonia" Version =" 0.10.0" />
1414 <PackageReference Include =" Avalonia.Desktop" Version =" 0.10.0" />
1515 <PackageReference Include =" Avalonia.Diagnostics" Version =" 0.10.0" />
Original file line number Diff line number Diff line change @@ -246,6 +246,9 @@ public bool CheckTx
246246 set => SetField ( ref _checkTx , value ) ;
247247 }
248248
249+ public static string CheckTxToolTip => "Enable to check the transaction hex using Bitcoin.Net library by deserializing " +
250+ "and evaluating all its scripts." ;
251+
249252
250253 private bool _isSending ;
251254 public bool IsSending
@@ -283,6 +286,23 @@ private async void BroadcastTx()
283286 Status = $ "Invalid transaction. Error message: { error } ";
284287 return ;
285288 }
289+
290+ for ( int i = 0 ; i < tx . TxInList . Length ; i ++ )
291+ {
292+ if ( ! tx . TxInList [ i ] . SigScript . TryEvaluate ( out _ , out _ , out error ) )
293+ {
294+ Status = $ "Invalid input signature script at index { i } . Error message: { error } ";
295+ return ;
296+ }
297+ }
298+ for ( int i = 0 ; i < tx . TxOutList . Length ; i ++ )
299+ {
300+ if ( ! tx . TxOutList [ i ] . PubScript . TryEvaluate ( out _ , out _ , out error ) )
301+ {
302+ Status = $ "Invalid input pubkey script at index { i } . Error message: { error } ";
303+ return ;
304+ }
305+ }
286306 }
287307
288308 IsSending = true ;
Original file line number Diff line number Diff line change 3939
4040 <CheckBox Content =" Deserialize and check transaction"
4141 IsVisible =" {Binding IsCheckTxVisible}"
42- IsChecked =" {Binding CheckTx}" />
42+ IsChecked =" {Binding CheckTx}"
43+ ToolTip.Tip=" {Binding CheckTxToolTip}" />
4344
4445 <Button Content =" Broadcast"
4546 Command =" {Binding BroadcastTxCommand}"
You can’t perform that action at this time.
0 commit comments