@@ -4436,7 +4436,8 @@ where
4436
4436
4437
4437
4438
4438
/// **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.
4440
4441
///
4441
4442
/// For a safer method, please refer to [`ChannelManager::funding_transaction_generated`].
4442
4443
///
@@ -4452,9 +4453,8 @@ where
4452
4453
/// Returns [`APIError::ChannelUnavailable`] if a funding transaction has already been provided
4453
4454
/// for the channel or if the channel has been closed as indicated by [`Event::ChannelClosed`].
4454
4455
///
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).
4458
4458
///
4459
4459
/// Note to keep the miner incentives aligned in moving the blockchain forward, we recommend
4460
4460
/// the wallet software generating the funding transaction to apply anti-fee sniping as
@@ -6721,7 +6721,7 @@ where
6721
6721
emit_funding_tx_broadcast_safe_event!(pending_events, channel, funding_txo.into_bitcoin_outpoint())
6722
6722
},
6723
6723
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!");
6725
6725
return (htlc_forwards, decode_update_add_htlcs);
6726
6726
}
6727
6727
};
0 commit comments