File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3104,9 +3104,7 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitorImpl<Signer> {
3104
3104
} ,
3105
3105
commitment_txid : htlc. commitment_txid ,
3106
3106
per_commitment_number : htlc. per_commitment_number ,
3107
- per_commitment_point : self . onchain_tx_handler . signer . get_per_commitment_point (
3108
- htlc. per_commitment_number , & self . onchain_tx_handler . secp_ctx ,
3109
- ) ,
3107
+ per_commitment_point : htlc. per_commitment_point ,
3110
3108
feerate_per_kw : 0 ,
3111
3109
htlc : htlc. htlc ,
3112
3110
preimage : htlc. preimage ,
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ use bitcoin::blockdata::script::{Script, ScriptBuf};
19
19
use bitcoin:: hashes:: { Hash , HashEngine } ;
20
20
use bitcoin:: hashes:: sha256:: Hash as Sha256 ;
21
21
use bitcoin:: hash_types:: { Txid , BlockHash } ;
22
+ use bitcoin:: secp256k1:: PublicKey ;
22
23
use bitcoin:: secp256k1:: { Secp256k1 , ecdsa:: Signature } ;
23
24
use bitcoin:: secp256k1;
24
25
@@ -179,6 +180,7 @@ pub(crate) struct ExternalHTLCClaim {
179
180
pub ( crate ) htlc : HTLCOutputInCommitment ,
180
181
pub ( crate ) preimage : Option < PaymentPreimage > ,
181
182
pub ( crate ) counterparty_sig : Signature ,
183
+ pub ( crate ) per_commitment_point : PublicKey ,
182
184
}
183
185
184
186
// Represents the different types of claims for which events are yielded externally to satisfy said
@@ -1230,6 +1232,7 @@ impl<ChannelSigner: EcdsaChannelSigner> OnchainTxHandler<ChannelSigner> {
1230
1232
htlc : htlc. clone ( ) ,
1231
1233
preimage : * preimage,
1232
1234
counterparty_sig : counterparty_htlc_sig,
1235
+ per_commitment_point : trusted_tx. per_commitment_point ( ) ,
1233
1236
}
1234
1237
} )
1235
1238
} ;
You can’t perform that action at this time.
0 commit comments