@@ -1023,9 +1023,9 @@ where
1023
1023
/// were being held for that JIT channel are forwarded. In a `client_trusts_lsp` flow, once
1024
1024
/// the fee has been fully paid, the channel's funding transaction will be broadcasted.
1025
1025
///
1026
- /// Note that `next_channel_id` and `skimmed_fee_msat` are required to be provided. Therefore, the corresponding
1027
- /// [`Event::PaymentForwarded`] events need to be generated and serialized by LDK versions
1028
- /// greater or equal to 0.0.122.
1026
+ /// Note that `next_channel_id` and `skimmed_fee_msat` are required to be provided.
1027
+ /// Therefore, the corresponding [`Event::PaymentForwarded`] events need to be generated and
1028
+ /// serialized by LDK versions greater or equal to 0.0.122.
1029
1029
///
1030
1030
/// [`Event::PaymentForwarded`]: lightning::events::Event::PaymentForwarded
1031
1031
pub fn payment_forwarded (
@@ -1595,6 +1595,13 @@ where
1595
1595
/// Stores the funding transaction for a JIT channel.
1596
1596
///
1597
1597
/// Call this when the funding transaction is created.
1598
+ ///
1599
+ /// In `client_trusts_lsp` the broadcasting of the funding transaction will be handled internally
1600
+ /// after you also mark it as broadcast-safe via
1601
+ /// [`set_funding_tx_broadcast_safe`] and once the opening fee has been collected. You do not need
1602
+ /// to broadcast the funding transaction yourself in this flow.
1603
+ ///
1604
+ /// [`set_funding_tx_broadcast_safe`]: Self::set_funding_tx_broadcast_safe
1598
1605
pub fn store_funding_transaction (
1599
1606
& self , user_channel_id : u128 , counterparty_node_id : & PublicKey , funding_tx : Transaction ,
1600
1607
) -> Result < ( ) , APIError > {
@@ -1640,7 +1647,8 @@ where
1640
1647
/// the intercepted payment.
1641
1648
///
1642
1649
/// In a `client_trusts_lsp` flow, after this is set and the opening fee has been fully skimmed,
1643
- /// the channel's funding transaction will be broadcasted.
1650
+ /// the channel's funding transaction will be broadcasted if the channel is still usable.
1651
+ /// If the channel has been closed or force-closed before this point, the funding transaction will not be broadcasted.
1644
1652
///
1645
1653
/// [`Event::FundingTxBroadcastSafe`]: lightning::events::Event::FundingTxBroadcastSafe
1646
1654
pub fn set_funding_tx_broadcast_safe (
0 commit comments