File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -9103,12 +9103,17 @@ impl<SP: Deref> FundedChannel<SP> where
9103
9103
_ => todo!()
9104
9104
}
9105
9105
9106
+ // New reserve values are based on the new channel value, and v2-specific
9107
+ let counterparty_selected_channel_reserve_satoshis = Some(get_v2_channel_reserve_satoshis(
9108
+ post_channel_value, self.context.counterparty_dust_limit_satoshis));
9109
+ let holder_selected_channel_reserve_satoshis = get_v2_channel_reserve_satoshis(
9110
+ post_channel_value, MIN_CHAN_DUST_LIMIT_SATOSHIS);
9106
9111
let pending_funding = FundingScope {
9107
9112
channel_transaction_parameters: post_channel_transaction_parameters,
9108
9113
value_to_self_msat: post_value_to_self_msat,
9109
9114
funding_transaction: None,
9110
- counterparty_selected_channel_reserve_satoshis: self.funding.counterparty_selected_channel_reserve_satoshis, // TODO check
9111
- holder_selected_channel_reserve_satoshis: self.funding.holder_selected_channel_reserve_satoshis, // TODO check
9115
+ counterparty_selected_channel_reserve_satoshis,
9116
+ holder_selected_channel_reserve_satoshis,
9112
9117
#[cfg(debug_assertions)]
9113
9118
holder_max_commitment_tx_output: Mutex::new((post_value_to_self_msat, (post_channel_value * 1000).saturating_sub(post_value_to_self_msat))),
9114
9119
#[cfg(debug_assertions)]
You can’t perform that action at this time.
0 commit comments