@@ -1186,12 +1186,12 @@ impl Node {
1186
1186
///
1187
1187
/// [`AnchorChannelsConfig::per_channel_reserve_sats`]: crate::config::AnchorChannelsConfig::per_channel_reserve_sats
1188
1188
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 ,
1190
1190
push_to_counterparty_msat : Option < u64 > , channel_config : Option < ChannelConfig > ,
1191
1191
) -> Result < UserChannelId , Error > {
1192
1192
self . open_channel_inner (
1193
1193
node_id,
1194
- Some ( address) ,
1194
+ address,
1195
1195
channel_amount_sats,
1196
1196
push_to_counterparty_msat,
1197
1197
channel_config,
@@ -1221,13 +1221,13 @@ impl Node {
1221
1221
///
1222
1222
/// [`AnchorChannelsConfig::per_channel_reserve_sats`]: crate::config::AnchorChannelsConfig::per_channel_reserve_sats
1223
1223
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 ,
1225
1225
push_to_counterparty_msat : Option < u64 > , channel_config : Option < ChannelConfig > ,
1226
1226
) -> Result < UserChannelId , Error > {
1227
1227
if may_announce_channel ( & self . config ) {
1228
1228
self . open_channel_inner (
1229
1229
node_id,
1230
- Some ( address) ,
1230
+ address,
1231
1231
channel_amount_sats,
1232
1232
push_to_counterparty_msat,
1233
1233
channel_config,
0 commit comments