|
9 | 9 |
|
10 | 10 | //! Utitilies for bumping transactions originating from [`super::Event`]s.
|
11 | 11 |
|
| 12 | +use crate::chain::ClaimId; |
12 | 13 | use crate::ln::PaymentPreimage;
|
13 | 14 | use crate::ln::chan_utils;
|
14 | 15 | use crate::ln::chan_utils::{ChannelTransactionParameters, HTLCOutputInCommitment};
|
@@ -173,6 +174,12 @@ pub enum BumpTransactionEvent {
|
173 | 174 | /// [`EcdsaChannelSigner::sign_holder_anchor_input`]: crate::sign::EcdsaChannelSigner::sign_holder_anchor_input
|
174 | 175 | /// [`build_anchor_input_witness`]: crate::ln::chan_utils::build_anchor_input_witness
|
175 | 176 | ChannelClose {
|
| 177 | + /// The unique identifier for the claim of the anchor output in the commitment transaction. |
| 178 | + /// |
| 179 | + /// The identifier must map to the set of external UTXOs assigned to the claim, such that |
| 180 | + /// they can be reused when a new claim with the same identifier needs to be made, resulting |
| 181 | + /// in a fee-bumping attempt. |
| 182 | + claim_id: ClaimId, |
176 | 183 | /// The target feerate that the transaction package, which consists of the commitment
|
177 | 184 | /// transaction and the to-be-crafted child anchor transaction, must meet.
|
178 | 185 | package_target_feerate_sat_per_1000_weight: u32,
|
@@ -222,6 +229,13 @@ pub enum BumpTransactionEvent {
|
222 | 229 | /// [`EcdsaChannelSigner::sign_holder_htlc_transaction`]: crate::sign::EcdsaChannelSigner::sign_holder_htlc_transaction
|
223 | 230 | /// [`HTLCDescriptor::tx_input_witness`]: HTLCDescriptor::tx_input_witness
|
224 | 231 | HTLCResolution {
|
| 232 | + /// The unique identifier for the claim of the HTLCs in the confirmed commitment |
| 233 | + /// transaction. |
| 234 | + /// |
| 235 | + /// The identifier must map to the set of external UTXOs assigned to the claim, such that |
| 236 | + /// they can be reused when a new claim with the same identifier needs to be made, resulting |
| 237 | + /// in a fee-bumping attempt. |
| 238 | + claim_id: ClaimId, |
225 | 239 | /// The target feerate that the resulting HTLC transaction must meet.
|
226 | 240 | target_feerate_sat_per_1000_weight: u32,
|
227 | 241 | /// The set of pending HTLCs on the confirmed commitment that need to be claimed, preferably
|
|
0 commit comments