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 } ;
@@ -1129,6 +1128,8 @@ impl Node {
1129
1128
/// opening the channel.
1130
1129
///
1131
1130
/// 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
1132
1133
pub fn open_channel (
1133
1134
& self , node_id : PublicKey , address : SocketAddress , channel_amount_sats : u64 ,
1134
1135
push_to_counterparty_msat : Option < u64 > , channel_config : Option < ChannelConfig > ,
@@ -1162,6 +1163,8 @@ impl Node {
1162
1163
/// opening the channel.
1163
1164
///
1164
1165
/// 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
1165
1168
pub fn open_announced_channel (
1166
1169
& self , node_id : PublicKey , address : SocketAddress , channel_amount_sats : u64 ,
1167
1170
push_to_counterparty_msat : Option < u64 > , channel_config : Option < ChannelConfig > ,
@@ -1231,6 +1234,8 @@ impl Node {
1231
1234
/// Broadcasting the closing transactions will be omitted for Anchor channels if we trust the
1232
1235
/// counterparty to broadcast for us (see [`AnchorChannelsConfig::trusted_peers_no_reserve`]
1233
1236
/// for more information).
1237
+ ///
1238
+ /// [`AnchorChannelsConfig::trusted_peers_no_reserve`]: crate::config::AnchorChannelsConfig::trusted_peers_no_reserve
1234
1239
pub fn force_close_channel (
1235
1240
& self , user_channel_id : & UserChannelId , counterparty_node_id : PublicKey ,
1236
1241
reason : Option < String > ,
0 commit comments