Skip to content

Commit f8bdcdd

Browse files
committed
Add holder commitment point to channel struct
1 parent 2f33058 commit f8bdcdd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3698,6 +3698,7 @@ pub(super) struct Channel<SP: Deref> where SP::Target: SignerProvider {
36983698
pub context: ChannelContext<SP>,
36993699
#[cfg(any(dual_funding, splicing))]
37003700
pub dual_funding_channel_context: Option<DualFundingChannelContext>,
3701+
holder_commitment_point: HolderCommitmentPoint,
37013702
}
37023703

37033704
#[cfg(any(test, fuzzing))]
@@ -7926,10 +7927,12 @@ impl<SP: Deref> OutboundV1Channel<SP> where SP::Target: SignerProvider {
79267927

79277928
log_info!(logger, "Received funding_signed from peer for channel {}", &self.context.channel_id());
79287929

7930+
let holder_commitment_point = self.context.holder_commitment_point;
79297931
let mut channel = Channel {
79307932
context: self.context,
79317933
#[cfg(any(dual_funding, splicing))]
79327934
dual_funding_channel_context: None,
7935+
holder_commitment_point,
79337936
};
79347937

79357938
let need_channel_ready = channel.check_get_channel_ready(0, logger).is_some();
@@ -8224,10 +8227,12 @@ impl<SP: Deref> InboundV1Channel<SP> where SP::Target: SignerProvider {
82248227

82258228
// Promote the channel to a full-fledged one now that we have updated the state and have a
82268229
// `ChannelMonitor`.
8230+
let holder_commitment_point = self.context.holder_commitment_point;
82278231
let mut channel = Channel {
82288232
context: self.context,
82298233
#[cfg(any(dual_funding, splicing))]
82308234
dual_funding_channel_context: None,
8235+
holder_commitment_point,
82318236
};
82328237
let need_channel_ready = channel.check_get_channel_ready(0, logger).is_some();
82338238
channel.monitor_updating_paused(false, false, need_channel_ready, Vec::new(), Vec::new(), Vec::new());
@@ -9585,6 +9590,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, u32, &'c Ch
95859590
},
95869591
#[cfg(any(dual_funding, splicing))]
95879592
dual_funding_channel_context: None,
9593+
holder_commitment_point,
95889594
})
95899595
}
95909596
}

0 commit comments

Comments
 (0)