75
75
mod balance;
76
76
mod builder;
77
77
mod chain;
78
- mod config;
78
+ pub mod config;
79
79
mod connection;
80
80
mod error;
81
81
mod event;
@@ -102,7 +102,6 @@ pub use lightning;
102
102
pub use lightning_invoice;
103
103
104
104
pub use balance:: { BalanceDetails , LightningBalance , PendingSweepBalance } ;
105
- pub use config:: { default_config, AnchorChannelsConfig , Config } ;
106
105
pub use error:: Error as NodeError ;
107
106
use error:: Error ;
108
107
@@ -122,8 +121,8 @@ pub use builder::NodeBuilder as Builder;
122
121
123
122
use chain:: ChainSource ;
124
123
use 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 ,
127
126
} ;
128
127
use connection:: ConnectionManager ;
129
128
use event:: { EventHandler , EventQueue } ;
@@ -1131,6 +1130,8 @@ impl Node {
1131
1130
/// opening the channel.
1132
1131
///
1133
1132
/// Returns a [`UserChannelId`] allowing to locally keep track of the channel.
1133
+ ///
1134
+ /// [`AnchorChannelsConfig::per_channel_reserve_sats`]: crate::config::AnchorChannelsConfig::per_channel_reserve_sats
1134
1135
pub fn open_channel (
1135
1136
& self , node_id : PublicKey , address : SocketAddress , channel_amount_sats : u64 ,
1136
1137
push_to_counterparty_msat : Option < u64 > , channel_config : Option < ChannelConfig > ,
@@ -1164,6 +1165,8 @@ impl Node {
1164
1165
/// opening the channel.
1165
1166
///
1166
1167
/// Returns a [`UserChannelId`] allowing to locally keep track of the channel.
1168
+ ///
1169
+ /// [`AnchorChannelsConfig::per_channel_reserve_sats`]: crate::config::AnchorChannelsConfig::per_channel_reserve_sats
1167
1170
pub fn open_announced_channel (
1168
1171
& self , node_id : PublicKey , address : SocketAddress , channel_amount_sats : u64 ,
1169
1172
push_to_counterparty_msat : Option < u64 > , channel_config : Option < ChannelConfig > ,
@@ -1233,6 +1236,8 @@ impl Node {
1233
1236
/// Broadcasting the closing transactions will be omitted for Anchor channels if we trust the
1234
1237
/// counterparty to broadcast for us (see [`AnchorChannelsConfig::trusted_peers_no_reserve`]
1235
1238
/// for more information).
1239
+ ///
1240
+ /// [`AnchorChannelsConfig::trusted_peers_no_reserve`]: crate::config::AnchorChannelsConfig::trusted_peers_no_reserve
1236
1241
pub fn force_close_channel (
1237
1242
& self , user_channel_id : & UserChannelId , counterparty_node_id : PublicKey ,
1238
1243
reason : Option < String > ,
@@ -1389,7 +1394,8 @@ impl Node {
1389
1394
///
1390
1395
/// For example, you could retrieve all stored outbound payments as follows:
1391
1396
/// ```
1392
- /// # use ldk_node::{Builder, Config};
1397
+ /// # use ldk_node::Builder;
1398
+ /// # use ldk_node::config::Config;
1393
1399
/// # use ldk_node::payment::PaymentDirection;
1394
1400
/// # use ldk_node::bitcoin::Network;
1395
1401
/// # let mut config = Config::default();
0 commit comments