@@ -18,6 +18,7 @@ use crate::chain::chaininterface::{BroadcasterInterface, fee_for_weight};
1818use crate :: chain:: ClaimId ;
1919use crate :: io_extras:: sink;
2020use crate :: ln:: channel:: ANCHOR_OUTPUT_VALUE_SATOSHI ;
21+ use crate :: ln:: ChannelId ;
2122use crate :: ln:: chan_utils;
2223use crate :: ln:: chan_utils:: {
2324 ANCHOR_INPUT_WITNESS_WEIGHT , HTLC_SUCCESS_INPUT_ANCHOR_WITNESS_WEIGHT ,
@@ -37,7 +38,7 @@ use bitcoin::blockdata::locktime::absolute::LockTime;
3738use bitcoin:: consensus:: Encodable ;
3839use bitcoin:: psbt:: PartiallySignedTransaction ;
3940use bitcoin:: secp256k1;
40- use bitcoin:: secp256k1:: Secp256k1 ;
41+ use bitcoin:: secp256k1:: { PublicKey , Secp256k1 } ;
4142use bitcoin:: secp256k1:: ecdsa:: Signature ;
4243
4344const EMPTY_SCRIPT_SIG_WEIGHT : u64 = 1 /* empty script_sig */ * WITNESS_SCALE_FACTOR as u64 ;
@@ -147,6 +148,10 @@ pub enum BumpTransactionEvent {
147148 /// [`EcdsaChannelSigner::sign_holder_anchor_input`]: crate::sign::ecdsa::EcdsaChannelSigner::sign_holder_anchor_input
148149 /// [`build_anchor_input_witness`]: crate::ln::chan_utils::build_anchor_input_witness
149150 ChannelClose {
151+ /// The `channel_id` of the channel which has been closed.
152+ channel_id : ChannelId ,
153+ /// Counterparty in the closed channel.
154+ counterparty_node_id : PublicKey ,
150155 /// The unique identifier for the claim of the anchor output in the commitment transaction.
151156 ///
152157 /// The identifier must map to the set of external UTXOs assigned to the claim, such that
@@ -200,6 +205,10 @@ pub enum BumpTransactionEvent {
200205 /// [`EcdsaChannelSigner`]: crate::sign::ecdsa::EcdsaChannelSigner
201206 /// [`EcdsaChannelSigner::sign_holder_htlc_transaction`]: crate::sign::ecdsa::EcdsaChannelSigner::sign_holder_htlc_transaction
202207 HTLCResolution {
208+ /// The `channel_id` of the channel which has been closed.
209+ channel_id : ChannelId ,
210+ /// Counterparty in the closed channel.
211+ counterparty_node_id : PublicKey ,
203212 /// The unique identifier for the claim of the HTLCs in the confirmed commitment
204213 /// transaction.
205214 ///
@@ -797,7 +806,7 @@ where
797806 }
798807 }
799808 BumpTransactionEvent :: HTLCResolution {
800- claim_id, target_feerate_sat_per_1000_weight, htlc_descriptors, tx_lock_time,
809+ claim_id, target_feerate_sat_per_1000_weight, htlc_descriptors, tx_lock_time, ..
801810 } => {
802811 log_info ! ( self . logger, "Handling HTLC bump (claim_id = {}, htlcs_to_claim = {})" ,
803812 log_bytes!( claim_id. 0 ) , log_iter!( htlc_descriptors. iter( ) . map( |d| d. outpoint( ) ) ) ) ;
0 commit comments