@@ -245,17 +245,14 @@ pub struct ClaimedHTLC {
245245 pub channel_id : ChannelId ,
246246 /// The `user_channel_id` of the channel over which the HTLC was received. This is the value
247247 /// passed in to [`ChannelManager::create_channel`] for outbound channels, or to
248- /// [`ChannelManager::accept_inbound_channel`] for inbound channels if
249- /// [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise
250- /// `user_channel_id` will be randomized for an inbound channel.
248+ /// [`ChannelManager::accept_inbound_channel`] for inbound channels.
251249 ///
252250 /// This field will be zero for a payment that was serialized prior to LDK version 0.0.117. (This
253251 /// should only happen in the case that a payment was claimable prior to LDK version 0.0.117, but
254252 /// was not actually claimed until after upgrading.)
255253 ///
256254 /// [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
257255 /// [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
258- /// [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
259256 pub user_channel_id : u128 ,
260257 /// The block height at which this HTLC expires.
261258 pub cltv_expiry : u32 ,
@@ -765,14 +762,11 @@ pub enum Event {
765762 /// The script which should be used in the transaction output.
766763 output_script : ScriptBuf ,
767764 /// The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound
768- /// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if
769- /// [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise
770- /// `user_channel_id` will be randomized for an inbound channel. This may be zero for objects
771- /// serialized with LDK versions prior to 0.0.113.
765+ /// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels.
766+ /// This may be zero for objects serialized with LDK versions prior to 0.0.113.
772767 ///
773768 /// [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
774769 /// [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
775- /// [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
776770 user_channel_id : u128 ,
777771 } ,
778772 /// Used to indicate that the counterparty node has provided the signature(s) required to
@@ -1404,13 +1398,10 @@ pub enum Event {
14041398 /// The `channel_id` of the channel that is pending confirmation.
14051399 channel_id : ChannelId ,
14061400 /// The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound
1407- /// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if
1408- /// [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise
1409- /// `user_channel_id` will be randomized for an inbound channel.
1401+ /// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels.
14101402 ///
14111403 /// [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
14121404 /// [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
1413- /// [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
14141405 user_channel_id : u128 ,
14151406 /// The `temporary_channel_id` this channel used to be known by during channel establishment.
14161407 ///
@@ -1444,13 +1435,10 @@ pub enum Event {
14441435 /// The `channel_id` of the channel that is ready.
14451436 channel_id : ChannelId ,
14461437 /// The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound
1447- /// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if
1448- /// [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise
1449- /// `user_channel_id` will be randomized for an inbound channel.
1438+ /// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels.
14501439 ///
14511440 /// [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
14521441 /// [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
1453- /// [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
14541442 user_channel_id : u128 ,
14551443 /// The `node_id` of the channel counterparty.
14561444 counterparty_node_id : PublicKey ,
@@ -1466,11 +1454,10 @@ pub enum Event {
14661454 /// process of closure. This includes previously opened channels, and channels that time out from not being funded.
14671455 ///
14681456 /// Note that this event is only triggered for accepted channels: if the
1469- /// [`UserConfig::manually_accept_inbound_channels`] config flag is set to true and the channel is
1470- /// rejected, no `ChannelClosed` event will be sent.
1457+ /// [`Event::OpenChannelRequest`] was rejected, no `ChannelClosed` event will be sent.
14711458 ///
14721459 /// [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
1473- /// [`UserConfig::manually_accept_inbound_channels `]: crate::util::config::UserConfig::manually_accept_inbound_channels
1460+ /// [`Event::OpenChannelRequest `]: Event::OpenChannelRequest
14741461 ///
14751462 /// # Failure Behavior and Persistence
14761463 /// This event will eventually be replayed after failures-to-handle (i.e., the event handler
@@ -1480,15 +1467,12 @@ pub enum Event {
14801467 /// resolving the channel are likely still awaiting confirmation.
14811468 channel_id : ChannelId ,
14821469 /// The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound
1483- /// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if
1484- /// [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise
1485- /// `user_channel_id` will be randomized for inbound channels.
1470+ /// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels.
14861471 /// This may be zero for inbound channels serialized prior to 0.0.113 and will always be
14871472 /// zero for objects serialized with LDK versions prior to 0.0.102.
14881473 ///
14891474 /// [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
14901475 /// [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
1491- /// [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
14921476 user_channel_id : u128 ,
14931477 /// The reason the channel was closed.
14941478 reason : ClosureReason ,
@@ -1532,13 +1516,10 @@ pub enum Event {
15321516 /// The `channel_id` of the channel that has a pending splice funding transaction.
15331517 channel_id : ChannelId ,
15341518 /// The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound
1535- /// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if
1536- /// [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise
1537- /// `user_channel_id` will be randomized for an inbound channel.
1519+ /// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels.
15381520 ///
15391521 /// [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
15401522 /// [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
1541- /// [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
15421523 user_channel_id : u128 ,
15431524 /// The `node_id` of the channel counterparty.
15441525 counterparty_node_id : PublicKey ,
@@ -1565,13 +1546,10 @@ pub enum Event {
15651546 /// The `channel_id` of the channel for which the splice failed.
15661547 channel_id : ChannelId ,
15671548 /// The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound
1568- /// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if
1569- /// [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise
1570- /// `user_channel_id` will be randomized for an inbound channel.
1549+ /// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels.
15711550 ///
15721551 /// [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
15731552 /// [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
1574- /// [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
15751553 user_channel_id : u128 ,
15761554 /// The `node_id` of the channel counterparty.
15771555 counterparty_node_id : PublicKey ,
@@ -1604,22 +1582,19 @@ pub enum Event {
16041582 } ,
16051583 /// Indicates a request to open a new channel by a peer.
16061584 ///
1585+ /// This event is triggered for all inbound requests to open a new channel.
16071586 /// To accept the request (and in the case of a dual-funded channel, not contribute funds),
16081587 /// call [`ChannelManager::accept_inbound_channel`].
16091588 /// To reject the request, call [`ChannelManager::force_close_broadcasting_latest_txn`].
16101589 /// Note that a [`ChannelClosed`] event will _not_ be triggered if the channel is rejected.
16111590 ///
1612- /// The event is only triggered when a new open channel request is received and the
1613- /// [`UserConfig::manually_accept_inbound_channels`] config flag is set to true.
1614- ///
16151591 /// # Failure Behavior and Persistence
16161592 /// This event will eventually be replayed after failures-to-handle (i.e., the event handler
16171593 /// returning `Err(ReplayEvent ())`) and won't be persisted across restarts.
16181594 ///
16191595 /// [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
16201596 /// [`ChannelClosed`]: Event::ChannelClosed
16211597 /// [`ChannelManager::force_close_broadcasting_latest_txn`]: crate::ln::channelmanager::ChannelManager::force_close_broadcasting_latest_txn
1622- /// [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
16231598 OpenChannelRequest {
16241599 /// The temporary channel ID of the channel requested to be opened.
16251600 ///
@@ -1861,11 +1836,11 @@ pub enum Event {
18611836 ///
18621837 /// [`ChannelManager::funding_transaction_signed`]: crate::ln::channelmanager::ChannelManager::funding_transaction_signed
18631838 counterparty_node_id : PublicKey ,
1864- /// The `user_channel_id` value passed in for outbound channels, or for inbound channels if
1865- /// [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise
1866- /// `user_channel_id` will be randomized for inbound channels.
1839+ /// The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound
1840+ /// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels.
18671841 ///
1868- /// [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
1842+ /// [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
1843+ /// [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
18691844 user_channel_id : u128 ,
18701845 /// The unsigned transaction to be signed and passed back to
18711846 /// [`ChannelManager::funding_transaction_signed`].
0 commit comments