@@ -140,9 +140,7 @@ def test_lsps2_buyjitchannel_no_mpp_var_invoice(node_factory, bitcoind):
140140 )
141141
142142 # Give the LSP some funds to open jit-channels
143- addr = l2 .rpc .newaddr ()["bech32" ]
144- bitcoind .rpc .sendtoaddress (addr , 1 )
145- bitcoind .generate_block (1 )
143+ l2 .fundwallet (1_000_000 )
146144
147145 node_factory .join_nodes ([l3 , l2 ], fundchannel = True , wait_for_announce = True )
148146 node_factory .join_nodes ([l1 , l2 ], fundchannel = False )
@@ -231,9 +229,7 @@ def test_lsps2_buyjitchannel_mpp_fixed_invoice(node_factory, bitcoind):
231229 )
232230
233231 # Give the LSP some funds to open jit-channels
234- addr = l2 .rpc .newaddr ()["bech32" ]
235- bitcoind .rpc .sendtoaddress (addr , 1 )
236- bitcoind .generate_block (1 )
232+ l2 .fundwallet (1_000_000 )
237233
238234 node_factory .join_nodes ([l3 , l2 ], fundchannel = True , wait_for_announce = True )
239235 node_factory .join_nodes ([l1 , l2 ], fundchannel = False )
@@ -320,9 +316,7 @@ def test_lsps2_non_approved_zero_conf(node_factory, bitcoind):
320316 )
321317
322318 # Give the LSP some funds to open jit-channels
323- addr = l2 .rpc .newaddr ()["bech32" ]
324- bitcoind .rpc .sendtoaddress (addr , 1 )
325- bitcoind .generate_block (1 )
319+ l2 .fundwallet (1_000_000 )
326320
327321 node_factory .join_nodes ([l3 , l2 ], fundchannel = True , wait_for_announce = True )
328322 node_factory .join_nodes ([l1 , l2 ], fundchannel = False )
0 commit comments