Skip to content

Commit 2e5ff7e

Browse files
committed
lightning: improve accept_forwards_to_priv_channels doc
Document that `accept_forwards_to_priv_channels` does not apply for intercepted payments.
1 parent 18eb30b commit 2e5ff7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/util/config.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,12 @@ pub struct UserConfig {
830830
/// all your channels and open new ones. For privacy, you should also change your node_id
831831
/// (swapping all private and public key material for new ones) at that time.
832832
///
833+
/// Note that this setting does not apply for intercepted payments that are surfaced via
834+
/// [`Event::HTLCIntercepted`] and manually forwarded.
835+
///
833836
/// Default value: `false`
837+
///
838+
/// [`Event::HTLCIntercepted`]: crate::events::Event::HTLCIntercepted
834839
pub accept_forwards_to_priv_channels: bool,
835840
/// If this is set to `false`, we do not accept inbound requests to open a new channel.
836841
///

0 commit comments

Comments
 (0)