@@ -3823,7 +3823,7 @@ pub(super) struct DualFundingChannelContext {
3823
3823
/// The amount in satoshis we will be contributing to the channel.
3824
3824
pub our_funding_satoshis: u64,
3825
3825
/// The amount in satoshis our counterparty will be contributing to the channel.
3826
- pub their_funding_satoshis: u64,
3826
+ pub their_funding_satoshis: Option< u64> ,
3827
3827
/// The funding transaction locktime suggested by the initiator. If set by us, it is always set
3828
3828
/// to the current block height to align incentives against fee-sniping.
3829
3829
pub funding_tx_locktime: LockTime,
@@ -8407,7 +8407,7 @@ impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8407
8407
unfunded_context: UnfundedChannelContext { unfunded_channel_age_ticks: 0 },
8408
8408
dual_funding_context: DualFundingChannelContext {
8409
8409
our_funding_satoshis: funding_satoshis,
8410
- their_funding_satoshis: 0 ,
8410
+ their_funding_satoshis: None ,
8411
8411
funding_tx_locktime,
8412
8412
funding_feerate_sat_per_1000_weight,
8413
8413
our_funding_inputs: funding_inputs,
@@ -8513,7 +8513,7 @@ impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8513
8513
// Now we can generate the `channel_id` since we have our counterparty's `revocation_basepoint`.
8514
8514
self.context.channel_id = ChannelId::v2_from_revocation_basepoints(
8515
8515
&self.context.get_holder_pubkeys().revocation_basepoint, &RevocationBasepoint::from(msg.common_fields.revocation_basepoint));
8516
- self.dual_funding_context.their_funding_satoshis = msg.funding_satoshis;
8516
+ self.dual_funding_context.their_funding_satoshis = Some( msg.funding_satoshis) ;
8517
8517
self.context.do_accept_channel_checks(
8518
8518
default_limits, their_features, &msg.common_fields, get_v2_channel_reserve_satoshis(
8519
8519
msg.common_fields.dust_limit_satoshis, self.context.channel_value_satoshis))
@@ -8606,7 +8606,7 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
8606
8606
unfunded_context: UnfundedChannelContext { unfunded_channel_age_ticks: 0 },
8607
8607
dual_funding_context: DualFundingChannelContext {
8608
8608
our_funding_satoshis: funding_satoshis,
8609
- their_funding_satoshis: msg.common_fields.funding_satoshis,
8609
+ their_funding_satoshis: Some( msg.common_fields.funding_satoshis) ,
8610
8610
funding_tx_locktime: LockTime::from_consensus(msg.locktime),
8611
8611
funding_feerate_sat_per_1000_weight: msg.funding_feerate_sat_per_1000_weight,
8612
8612
our_funding_inputs: funding_inputs,
0 commit comments