Skip to content

Commit d359dab

Browse files
jbesraaTheBlueMatt
andcommitted
f
Co-authored-by: Matt Corallo <[email protected]>
1 parent 8514725 commit d359dab

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

lightning/src/events/mod.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -594,14 +594,9 @@ pub enum Event {
594594
FundingTxBroadcastSafe {
595595
/// The `channel_id` indicating which channel has reached this stage.
596596
channel_id: ChannelId,
597-
/// The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound
598-
/// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if
599-
/// [`UserConfig::manually_accept_inbound_channels`] config flag is set to `true`. Otherwise
600-
/// `user_channel_id` will be randomized for an inbound channel.
597+
/// The `user_channel_id` value passed in to [`ChannelManager::create_channel`].
601598
///
602599
/// [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
603-
/// [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
604-
/// [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
605600
user_channel_id: u128,
606601
/// The outpoint of the channel's funding transaction.
607602
funding_txo: OutPoint,

lightning/src/ln/channelmanager.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -4436,7 +4436,8 @@ where
44364436

44374437

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

0 commit comments

Comments
 (0)