@@ -1186,12 +1186,12 @@ impl Node {
11861186 ///
11871187 /// [`AnchorChannelsConfig::per_channel_reserve_sats`]: crate::config::AnchorChannelsConfig::per_channel_reserve_sats
11881188 pub fn open_channel (
1189- & self , node_id : PublicKey , address : SocketAddress , channel_amount_sats : u64 ,
1189+ & self , node_id : PublicKey , address : Option < SocketAddress > , channel_amount_sats : u64 ,
11901190 push_to_counterparty_msat : Option < u64 > , channel_config : Option < ChannelConfig > ,
11911191 ) -> Result < UserChannelId , Error > {
11921192 self . open_channel_inner (
11931193 node_id,
1194- Some ( address) ,
1194+ address,
11951195 channel_amount_sats,
11961196 push_to_counterparty_msat,
11971197 channel_config,
@@ -1221,13 +1221,13 @@ impl Node {
12211221 ///
12221222 /// [`AnchorChannelsConfig::per_channel_reserve_sats`]: crate::config::AnchorChannelsConfig::per_channel_reserve_sats
12231223 pub fn open_announced_channel (
1224- & self , node_id : PublicKey , address : SocketAddress , channel_amount_sats : u64 ,
1224+ & self , node_id : PublicKey , address : Option < SocketAddress > , channel_amount_sats : u64 ,
12251225 push_to_counterparty_msat : Option < u64 > , channel_config : Option < ChannelConfig > ,
12261226 ) -> Result < UserChannelId , Error > {
12271227 if may_announce_channel ( & self . config ) {
12281228 self . open_channel_inner (
12291229 node_id,
1230- Some ( address) ,
1230+ address,
12311231 channel_amount_sats,
12321232 push_to_counterparty_msat,
12331233 channel_config,
0 commit comments