@@ -2751,8 +2751,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
2751
2751
/// The result is a transaction which we can revoke broadcastership of (ie a "local" transaction)
2752
2752
/// TODO Some magic rust shit to compile-time check this?
2753
2753
fn build_holder_transaction_keys(&self) -> TxCreationKeys {
2754
- let per_commitment_point = self.holder_commitment_point.current_point()
2755
- .expect("Should not build commitment transaction before retrieving first commitment point");
2754
+ let per_commitment_point = self.holder_commitment_point.current_point();
2756
2755
let delayed_payment_base = &self.get_holder_pubkeys().delayed_payment_basepoint;
2757
2756
let htlc_basepoint = &self.get_holder_pubkeys().htlc_basepoint;
2758
2757
let counterparty_pubkeys = self.get_counterparty_pubkeys();
@@ -5412,8 +5411,7 @@ impl<SP: Deref> Channel<SP> where
5412
5411
debug_assert!(self.context.holder_commitment_point.transaction_number() <= INITIAL_COMMITMENT_NUMBER + 2);
5413
5412
// TODO: handle non-available case when get_per_commitment_point becomes async
5414
5413
debug_assert!(self.context.holder_commitment_point.is_available());
5415
- let next_per_commitment_point = self.context.holder_commitment_point.current_point()
5416
- .expect("TODO");
5414
+ let next_per_commitment_point = self.context.holder_commitment_point.current_point();
5417
5415
let per_commitment_secret = self.context.holder_signer.as_ref().release_commitment_secret(self.context.holder_commitment_point.transaction_number() + 2);
5418
5416
msgs::RevokeAndACK {
5419
5417
channel_id: self.context.channel_id,
@@ -7616,7 +7614,7 @@ impl<SP: Deref> OutboundV1Channel<SP> where SP::Target: SignerProvider {
7616
7614
}
7617
7615
7618
7616
debug_assert!(self.context.holder_commitment_point.is_available());
7619
- let first_per_commitment_point = self.context.holder_commitment_point.current_point().expect("TODO") ;
7617
+ let first_per_commitment_point = self.context.holder_commitment_point.current_point();
7620
7618
let keys = self.context.get_holder_pubkeys();
7621
7619
7622
7620
msgs::OpenChannel {
@@ -8015,7 +8013,7 @@ impl<SP: Deref> InboundV1Channel<SP> where SP::Target: SignerProvider {
8015
8013
/// [`msgs::AcceptChannel`]: crate::ln::msgs::AcceptChannel
8016
8014
fn generate_accept_channel_message(&self) -> msgs::AcceptChannel {
8017
8015
debug_assert!(self.context.holder_commitment_point.is_available());
8018
- let first_per_commitment_point = self.context.holder_commitment_point.current_point().expect("TODO") ;
8016
+ let first_per_commitment_point = self.context.holder_commitment_point.current_point();
8019
8017
let keys = self.context.get_holder_pubkeys();
8020
8018
8021
8019
msgs::AcceptChannel {
0 commit comments