We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bee7e7f commit cfec158Copy full SHA for cfec158
lightning/src/ln/channel.rs
@@ -2108,6 +2108,7 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
2108
let change_output_weight = get_output_weight(&change_output.script_pubkey).to_wu();
2109
let change_output_fee = fee_for_weight(self.dual_funding_context.funding_feerate_sat_per_1000_weight, change_output_weight);
2110
change_output.value = Amount::from_sat(change_value.saturating_sub(change_output_fee));
2111
+ // Note: dust check not done here, should be handled before
2112
funding_outputs.push(OutputOwned::Single(change_output));
2113
}
2114
0 commit comments