Skip to content

Commit 007e678

Browse files
committed
Remove superfluous commitment_number parameter.
1 parent 5965fb8 commit 007e678

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lightning/src/sign/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ impl TaprootChannelSigner for InMemorySigner {
12581258
todo!()
12591259
}
12601260

1261-
fn finalize_holder_commitment(&self, commitment_number: u64, commitment_tx: &HolderCommitmentTransaction, counterparty_partial_signature: PartialSignatureWithNonce, secp_ctx: &Secp256k1<All>) -> Result<PartialSignature, ()> {
1261+
fn finalize_holder_commitment(&self, commitment_tx: &HolderCommitmentTransaction, counterparty_partial_signature: PartialSignatureWithNonce, secp_ctx: &Secp256k1<All>) -> Result<PartialSignature, ()> {
12621262
todo!()
12631263
}
12641264

lightning/src/sign/taproot.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ pub trait TaprootChannelSigner: ChannelSigner {
5151
/// An external signer implementation should check that the commitment has not been revoked.
5252
///
5353
// TODO: Document the things someone using this interface should enforce before signing.
54-
fn finalize_holder_commitment(&self, commitment_number: u64,
55-
commitment_tx: &HolderCommitmentTransaction,
54+
fn finalize_holder_commitment(&self, commitment_tx: &HolderCommitmentTransaction,
5655
counterparty_partial_signature: PartialSignatureWithNonce,
5756
secp_ctx: &Secp256k1<secp256k1::All>
5857
) -> Result<PartialSignature, ()>;

lightning/src/util/test_channel_signer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ impl TaprootChannelSigner for TestChannelSigner {
292292
todo!()
293293
}
294294

295-
fn finalize_holder_commitment(&self, commitment_number: u64, commitment_tx: &HolderCommitmentTransaction, counterparty_partial_signature: PartialSignatureWithNonce, secp_ctx: &Secp256k1<All>) -> Result<PartialSignature, ()> {
295+
fn finalize_holder_commitment(&self, commitment_tx: &HolderCommitmentTransaction, counterparty_partial_signature: PartialSignatureWithNonce, secp_ctx: &Secp256k1<All>) -> Result<PartialSignature, ()> {
296296
todo!()
297297
}
298298

0 commit comments

Comments
 (0)