@@ -3825,7 +3825,7 @@ pub(super) struct DualFundingChannelContext {
3825
3825
/// The amount in satoshis we will be contributing to the channel.
3826
3826
pub our_funding_satoshis: u64,
3827
3827
/// The amount in satoshis our counterparty will be contributing to the channel.
3828
- pub their_funding_satoshis: u64,
3828
+ pub their_funding_satoshis: Option< u64> ,
3829
3829
/// The funding transaction locktime suggested by the initiator. If set by us, it is always set
3830
3830
/// to the current block height to align incentives against fee-sniping.
3831
3831
pub funding_tx_locktime: LockTime,
@@ -8412,7 +8412,7 @@ impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8412
8412
unfunded_context: UnfundedChannelContext { unfunded_channel_age_ticks: 0 },
8413
8413
dual_funding_context: DualFundingChannelContext {
8414
8414
our_funding_satoshis: funding_satoshis,
8415
- their_funding_satoshis: 0 ,
8415
+ their_funding_satoshis: None ,
8416
8416
funding_tx_locktime,
8417
8417
funding_feerate_sat_per_1000_weight,
8418
8418
our_funding_inputs: funding_inputs,
@@ -8518,7 +8518,7 @@ impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8518
8518
// Now we can generate the `channel_id` since we have our counterparty's `revocation_basepoint`.
8519
8519
self.context.channel_id = ChannelId::v2_from_revocation_basepoints(
8520
8520
&self.context.get_holder_pubkeys().revocation_basepoint, &RevocationBasepoint::from(msg.common_fields.revocation_basepoint));
8521
- self.dual_funding_context.their_funding_satoshis = msg.funding_satoshis;
8521
+ self.dual_funding_context.their_funding_satoshis = Some( msg.funding_satoshis) ;
8522
8522
self.context.do_accept_channel_checks(
8523
8523
default_limits, their_features, &msg.common_fields, get_v2_channel_reserve_satoshis(
8524
8524
msg.common_fields.dust_limit_satoshis, self.context.channel_value_satoshis))
@@ -8611,7 +8611,7 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
8611
8611
unfunded_context: UnfundedChannelContext { unfunded_channel_age_ticks: 0 },
8612
8612
dual_funding_context: DualFundingChannelContext {
8613
8613
our_funding_satoshis: funding_satoshis,
8614
- their_funding_satoshis: msg.common_fields.funding_satoshis,
8614
+ their_funding_satoshis: Some( msg.common_fields.funding_satoshis) ,
8615
8615
funding_tx_locktime: LockTime::from_consensus(msg.locktime),
8616
8616
funding_feerate_sat_per_1000_weight: msg.funding_feerate_sat_per_1000_weight,
8617
8617
our_funding_inputs: funding_inputs,
0 commit comments