File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -5831,21 +5831,21 @@ impl FundingNegotiationContext {
5831
5831
5832
5832
// Optionally add change output
5833
5833
if self.our_funding_contribution_satoshis > 0 {
5834
- let change_script = if let Some(script) = change_destination_opt {
5835
- script
5836
- } else {
5837
- signer_provider.get_destination_script(context.channel_keys_id).map_err(|_err| {
5838
- AbortReason::InternalError("Error getting destination script")
5839
- })?
5840
- };
5841
5834
let change_value_opt = calculate_change_output_value(
5842
5835
&self,
5843
5836
funding.channel_transaction_parameters.splice_parent_funding_txid.is_some(),
5844
5837
&shared_funding_output.script_pubkey,
5845
5838
&funding_outputs,
5846
- change_script.minimal_non_dust().to_sat() ,
5839
+ context.holder_dust_limit_satoshis ,
5847
5840
)?;
5848
5841
if let Some(change_value) = change_value_opt {
5842
+ let change_script = if let Some(script) = change_destination_opt {
5843
+ script
5844
+ } else {
5845
+ signer_provider.get_destination_script(context.channel_keys_id).map_err(|_err| {
5846
+ AbortReason::InternalError("Error getting destination script")
5847
+ })?
5848
+ };
5849
5849
let mut change_output =
5850
5850
TxOut { value: Amount::from_sat(change_value), script_pubkey: change_script };
5851
5851
let change_output_weight = get_output_weight(&change_output.script_pubkey).to_wu();
You can’t perform that action at this time.
0 commit comments