File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -2833,9 +2833,7 @@ def _prepare_send(
2833
2833
# Get info from psbt
2834
2834
psbtinfo = info
2835
2835
tx = info ["tx" ]
2836
- inputs = tx ["vin" ]
2837
- outputs = tx ["vout" ]
2838
- outs = outputs
2836
+ outs = tx ["vout" ]
2839
2837
total_in_amt = 0
2840
2838
total_out_amt = 0
2841
2839
change = 0
@@ -2867,7 +2865,7 @@ def _prepare_send(
2867
2865
F .info (f"total output amount: { total_out_amt } BTC" )
2868
2866
F .info (f"{ num_inputs } inputs, { num_outputs } outputs" )
2869
2867
F .info (f"network fee: { result ['fee' ]} BTC ({ perc :.2f} % of amount)" )
2870
- F .info (f"change back: { change } BTC" ) # TODO: test calculation
2868
+ F .info (f"change back: { change } BTC" )
2871
2869
F .info ("outputs:" )
2872
2870
2873
2871
# Display outputs
Original file line number Diff line number Diff line change @@ -922,9 +922,7 @@ def _prepare_send(
922
922
# Get info from psbt
923
923
psbtinfo = info
924
924
tx = info ["tx" ]
925
- inputs = tx ["vin" ]
926
- outputs = tx ["vout" ]
927
- outs = outputs
925
+ outs = tx ["vout" ]
928
926
total_in_amt = 0
929
927
total_out_amt = 0
930
928
change = 0
@@ -956,7 +954,7 @@ def _prepare_send(
956
954
F .info (f"total output amount: { total_out_amt } BTC" )
957
955
F .info (f"{ num_inputs } inputs, { num_outputs } outputs" )
958
956
F .info (f"network fee: { result ['fee' ]} BTC ({ perc :.2f} % of amount)" )
959
- F .info (f"change back: { change } BTC" ) # TODO: test calculation
957
+ F .info (f"change back: { change } BTC" )
960
958
F .info ("outputs:" )
961
959
962
960
# Display outputs
You can’t perform that action at this time.
0 commit comments