Skip to content

Commit e784104

Browse files
committed
f - add expects in splicing/dual funding
1 parent d9a371f commit e784104

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lightning/src/ln/channel.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8239,10 +8239,12 @@ impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
82398239

82408240
let first_per_commitment_point = self.context.holder_signer.as_ref()
82418241
.get_per_commitment_point(self.context.holder_commitment_point.transaction_number(),
8242-
&self.context.secp_ctx);
8242+
&self.context.secp_ctx)
8243+
.expect("TODO: async signing is not yet supported for commitment points in v2 channel establishment");
82438244
let second_per_commitment_point = self.context.holder_signer.as_ref()
82448245
.get_per_commitment_point(self.context.holder_commitment_point.transaction_number() - 1,
8245-
&self.context.secp_ctx);
8246+
&self.context.secp_ctx)
8247+
.expect("TODO: async signing is not yet supported for commitment points in v2 channel establishment");
82468248
let keys = self.context.get_holder_pubkeys();
82478249

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

83978401
msgs::AcceptChannelV2 {

0 commit comments

Comments
 (0)