Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Corallo <[email protected]>
  • Loading branch information
jbesraa and TheBlueMatt committed Jun 20, 2024
1 parent 8514725 commit d359dab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
7 changes: 1 addition & 6 deletions lightning/src/events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,14 +594,9 @@ pub enum Event {
FundingTxBroadcastSafe {
/// The `channel_id` indicating which channel has reached this stage.
channel_id: ChannelId,
/// The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound
/// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if
/// [`UserConfig::manually_accept_inbound_channels`] config flag is set to `true`. Otherwise
/// `user_channel_id` will be randomized for an inbound channel.
/// The `user_channel_id` value passed in to [`ChannelManager::create_channel`].
///
/// [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
/// [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
/// [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
user_channel_id: u128,
/// The outpoint of the channel's funding transaction.
funding_txo: OutPoint,
Expand Down
10 changes: 5 additions & 5 deletions lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4436,7 +4436,8 @@ where


/// **Unsafe**: This method does not check the validity of the provided output. It is the
/// caller's responsibility to ensure that.
/// caller's responsibility to ensure that. Its important to validate you are using SegWit
/// output, as well as a final absolute timelock.
///
/// For a safer method, please refer to [`ChannelManager::funding_transaction_generated`].
///
Expand All @@ -4452,9 +4453,8 @@ where
/// Returns [`APIError::ChannelUnavailable`] if a funding transaction has already been provided
/// for the channel or if the channel has been closed as indicated by [`Event::ChannelClosed`].
///
/// May panic if the output found in the funding transaction is duplicative with some other
/// channel (note that this should be trivially prevented by using unique funding transaction
/// keys per-channel).
/// May panic if the funding output is duplicative with some other channel (note that this
/// should be trivially prevented by using unique funding transaction keys per-channel).
///
/// Note to keep the miner incentives aligned in moving the blockchain forward, we recommend
/// the wallet software generating the funding transaction to apply anti-fee sniping as
Expand Down Expand Up @@ -6721,7 +6721,7 @@ where
emit_funding_tx_broadcast_safe_event!(pending_events, channel, funding_txo.into_bitcoin_outpoint())
},
None => {
log_error!(logger, "Channel resumed without a funding txo, this should never happen!");
debug_assert!(false, "Channel resumed without a funding txo, this should never happen!");
return (htlc_forwards, decode_update_add_htlcs);
}
};
Expand Down

0 comments on commit d359dab

Please sign in to comment.