Skip to content

Commit

Permalink
f - add expects in splicing/dual funding
Browse files Browse the repository at this point in the history
  • Loading branch information
alecchendev committed Jul 10, 2024
1 parent d9a371f commit e784104
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lightning/src/ln/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8239,10 +8239,12 @@ impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {

let first_per_commitment_point = self.context.holder_signer.as_ref()
.get_per_commitment_point(self.context.holder_commitment_point.transaction_number(),
&self.context.secp_ctx);
&self.context.secp_ctx)
.expect("TODO: async signing is not yet supported for commitment points in v2 channel establishment");
let second_per_commitment_point = self.context.holder_signer.as_ref()
.get_per_commitment_point(self.context.holder_commitment_point.transaction_number() - 1,
&self.context.secp_ctx);
&self.context.secp_ctx)
.expect("TODO: async signing is not yet supported for commitment points in v2 channel establishment");
let keys = self.context.get_holder_pubkeys();

msgs::OpenChannelV2 {
Expand Down Expand Up @@ -8389,9 +8391,11 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
/// [`msgs::AcceptChannelV2`]: crate::ln::msgs::AcceptChannelV2
fn generate_accept_channel_v2_message(&self) -> msgs::AcceptChannelV2 {
let first_per_commitment_point = self.context.holder_signer.as_ref().get_per_commitment_point(
self.context.holder_commitment_point.transaction_number(), &self.context.secp_ctx);
self.context.holder_commitment_point.transaction_number(), &self.context.secp_ctx)
.expect("TODO: async signing is not yet supported for commitment points in v2 channel establishment");
let second_per_commitment_point = self.context.holder_signer.as_ref().get_per_commitment_point(
self.context.holder_commitment_point.transaction_number() - 1, &self.context.secp_ctx);
self.context.holder_commitment_point.transaction_number() - 1, &self.context.secp_ctx)
.expect("TODO: async signing is not yet supported for commitment points in v2 channel establishment");
let keys = self.context.get_holder_pubkeys();

msgs::AcceptChannelV2 {
Expand Down

0 comments on commit e784104

Please sign in to comment.