@@ -8239,10 +8239,12 @@ impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8239
8239
8240
8240
let first_per_commitment_point = self.context.holder_signer.as_ref()
8241
8241
.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");
8243
8244
let second_per_commitment_point = self.context.holder_signer.as_ref()
8244
8245
.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");
8246
8248
let keys = self.context.get_holder_pubkeys();
8247
8249
8248
8250
msgs::OpenChannelV2 {
@@ -8389,9 +8391,11 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
8389
8391
/// [`msgs::AcceptChannelV2`]: crate::ln::msgs::AcceptChannelV2
8390
8392
fn generate_accept_channel_v2_message(&self) -> msgs::AcceptChannelV2 {
8391
8393
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");
8393
8396
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");
8395
8399
let keys = self.context.get_holder_pubkeys();
8396
8400
8397
8401
msgs::AcceptChannelV2 {
0 commit comments