@@ -141,30 +141,20 @@ fn channel_open_with_no_address() {
141
141
// Test 1: Opening channel without address and no existing connection should fail
142
142
assert_eq ! (
143
143
Err ( NodeError :: ConnectionFailed ) ,
144
- node_a. open_channel(
145
- node_b. node_id( ) ,
146
- None ,
147
- 100_000 ,
148
- None ,
149
- None ,
150
- )
144
+ node_a. open_channel( node_b. node_id( ) , None , 100_000 , None , None , )
151
145
) ;
152
146
153
147
// Test 2: Connect first, then open channel without address should succeed
154
- node_a. connect (
155
- node_b. node_id ( ) ,
156
- node_b. listening_addresses ( ) . unwrap ( ) . first ( ) . unwrap ( ) . clone ( ) ,
157
- true ,
158
- ) . unwrap ( ) ;
148
+ node_a
149
+ . connect (
150
+ node_b. node_id ( ) ,
151
+ node_b. listening_addresses ( ) . unwrap ( ) . first ( ) . unwrap ( ) . clone ( ) ,
152
+ true ,
153
+ )
154
+ . unwrap ( ) ;
159
155
160
156
// Now opening without address should work since we're connected
161
- node_a. open_channel (
162
- node_b. node_id ( ) ,
163
- None ,
164
- 100_000 ,
165
- None ,
166
- None ,
167
- ) . unwrap ( ) ;
157
+ node_a. open_channel ( node_b. node_id ( ) , None , 100_000 , None , None ) . unwrap ( ) ;
168
158
169
159
// Verify channel was created successfully
170
160
let funding_txo = expect_channel_pending_event ! ( node_a, node_b. node_id( ) ) ;
@@ -175,30 +165,20 @@ fn channel_open_with_no_address() {
175
165
node_a. disconnect ( node_b. node_id ( ) ) . unwrap ( ) ;
176
166
assert_eq ! (
177
167
Err ( NodeError :: ConnectionFailed ) ,
178
- node_a. open_announced_channel(
179
- node_b. node_id( ) ,
180
- None ,
181
- 100_000 ,
182
- None ,
183
- None ,
184
- )
168
+ node_a. open_announced_channel( node_b. node_id( ) , None , 100_000 , None , None , )
185
169
) ;
186
170
187
171
// Test 4: Connect first, then open announced channel without address should succeed
188
- node_a. connect (
189
- node_b. node_id ( ) ,
190
- node_b. listening_addresses ( ) . unwrap ( ) . first ( ) . unwrap ( ) . clone ( ) ,
191
- true ,
192
- ) . unwrap ( ) ;
172
+ node_a
173
+ . connect (
174
+ node_b. node_id ( ) ,
175
+ node_b. listening_addresses ( ) . unwrap ( ) . first ( ) . unwrap ( ) . clone ( ) ,
176
+ true ,
177
+ )
178
+ . unwrap ( ) ;
193
179
194
180
// Now opening announced channel without address should work
195
- node_a. open_announced_channel (
196
- node_b. node_id ( ) ,
197
- None ,
198
- 100_000 ,
199
- None ,
200
- None ,
201
- ) . unwrap ( ) ;
181
+ node_a. open_announced_channel ( node_b. node_id ( ) , None , 100_000 , None , None ) . unwrap ( ) ;
202
182
203
183
// Verify announced channel was created successfully
204
184
let funding_txo = expect_channel_pending_event ! ( node_a, node_b. node_id( ) ) ;
0 commit comments