Skip to content

Commit 3648eed

Browse files
committed
Use the per-commitment point from the trusted_tx
1 parent d782143 commit 3648eed

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lightning/src/chain/onchaintx.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1167,15 +1167,10 @@ impl<ChannelSigner: WriteableEcdsaChannelSigner> OnchainTxHandler<ChannelSigner>
11671167
.map(|(htlc_idx, htlc)| {
11681168
let counterparty_htlc_sig = holder_commitment.counterparty_htlc_sigs[htlc_idx];
11691169

1170-
// TODO(waterson) fallible: move this somewhere!
1171-
let per_commitment_point = self.signer.get_per_commitment_point(
1172-
trusted_tx.commitment_number(), &self.secp_ctx,
1173-
).unwrap();
1174-
11751170
ExternalHTLCClaim {
11761171
commitment_txid: trusted_tx.txid(),
11771172
per_commitment_number: trusted_tx.commitment_number(),
1178-
per_commitment_point: per_commitment_point,
1173+
per_commitment_point: trusted_tx.per_commitment_point(),
11791174
htlc: htlc.clone(),
11801175
preimage: *preimage,
11811176
counterparty_sig: counterparty_htlc_sig,

0 commit comments

Comments
 (0)