7575mod balance;
7676mod builder;
7777mod chain;
78- mod config;
78+ pub mod config;
7979mod connection;
8080mod error;
8181mod event;
@@ -102,7 +102,6 @@ pub use lightning;
102102pub use lightning_invoice;
103103
104104pub use balance:: { BalanceDetails , LightningBalance , PendingSweepBalance } ;
105- pub use config:: { default_config, AnchorChannelsConfig , Config } ;
106105pub use error:: Error as NodeError ;
107106use error:: Error ;
108107
@@ -122,8 +121,8 @@ pub use builder::NodeBuilder as Builder;
122121
123122use chain:: ChainSource ;
124123use config:: {
125- default_user_config, may_announce_channel, NODE_ANN_BCAST_INTERVAL , PEER_RECONNECTION_INTERVAL ,
126- RGS_SYNC_INTERVAL ,
124+ default_user_config, may_announce_channel, Config , NODE_ANN_BCAST_INTERVAL ,
125+ PEER_RECONNECTION_INTERVAL , RGS_SYNC_INTERVAL ,
127126} ;
128127use connection:: ConnectionManager ;
129128use event:: { EventHandler , EventQueue } ;
@@ -1129,6 +1128,8 @@ impl Node {
11291128 /// opening the channel.
11301129 ///
11311130 /// Returns a [`UserChannelId`] allowing to locally keep track of the channel.
1131+ ///
1132+ /// [`AnchorChannelsConfig::per_channel_reserve_sats`]: crate::config::AnchorChannelsConfig::per_channel_reserve_sats
11321133 pub fn open_channel (
11331134 & self , node_id : PublicKey , address : SocketAddress , channel_amount_sats : u64 ,
11341135 push_to_counterparty_msat : Option < u64 > , channel_config : Option < ChannelConfig > ,
@@ -1162,6 +1163,8 @@ impl Node {
11621163 /// opening the channel.
11631164 ///
11641165 /// Returns a [`UserChannelId`] allowing to locally keep track of the channel.
1166+ ///
1167+ /// [`AnchorChannelsConfig::per_channel_reserve_sats`]: crate::config::AnchorChannelsConfig::per_channel_reserve_sats
11651168 pub fn open_announced_channel (
11661169 & self , node_id : PublicKey , address : SocketAddress , channel_amount_sats : u64 ,
11671170 push_to_counterparty_msat : Option < u64 > , channel_config : Option < ChannelConfig > ,
@@ -1231,6 +1234,8 @@ impl Node {
12311234 /// Broadcasting the closing transactions will be omitted for Anchor channels if we trust the
12321235 /// counterparty to broadcast for us (see [`AnchorChannelsConfig::trusted_peers_no_reserve`]
12331236 /// for more information).
1237+ ///
1238+ /// [`AnchorChannelsConfig::trusted_peers_no_reserve`]: crate::config::AnchorChannelsConfig::trusted_peers_no_reserve
12341239 pub fn force_close_channel (
12351240 & self , user_channel_id : & UserChannelId , counterparty_node_id : PublicKey ,
12361241 reason : Option < String > ,
@@ -1387,7 +1392,8 @@ impl Node {
13871392 ///
13881393 /// For example, you could retrieve all stored outbound payments as follows:
13891394 /// ```
1390- /// # use ldk_node::{Builder, Config};
1395+ /// # use ldk_node::Builder;
1396+ /// # use ldk_node::config::Config;
13911397 /// # use ldk_node::payment::PaymentDirection;
13921398 /// # use ldk_node::bitcoin::Network;
13931399 /// # let mut config = Config::default();
0 commit comments