@@ -55,7 +55,7 @@ def test_queryrates(node_factory, bitcoind):
5555@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
5656@pytest .mark .developer ("uses dev-disconnect" )
5757@pytest .mark .openchannel ('v1' ) # Mixed v1 + v2, v2 manually turned on
58- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't support dual-funding yet" )
58+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd doesn't support dual-funding yet" )
5959def test_multifunding_v2_best_effort (node_factory , bitcoind ):
6060 '''
6161 Check that best_effort flag works.
@@ -141,7 +141,7 @@ def get_funded_channel_scid(n1, n2):
141141@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
142142@pytest .mark .developer ("uses dev-disconnect" )
143143@pytest .mark .openchannel ('v2' )
144- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't support dual-funding yet" )
144+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd doesn't support dual-funding yet" )
145145def test_v2_open_sigs_restart (node_factory , bitcoind ):
146146 disconnects_1 = ['-WIRE_TX_SIGNATURES' ]
147147 disconnects_2 = ['+WIRE_TX_SIGNATURES' ]
@@ -187,7 +187,7 @@ def test_v2_open_sigs_restart(node_factory, bitcoind):
187187@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
188188@pytest .mark .developer ("uses dev-disconnect" )
189189@pytest .mark .openchannel ('v2' )
190- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't support dual-funding yet" )
190+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd doesn't support dual-funding yet" )
191191def test_v2_open_sigs_restart_while_dead (node_factory , bitcoind ):
192192 # Same thing as above, except the transaction mines
193193 # while we're asleep
@@ -511,7 +511,7 @@ def test_v2_rbf_multi(node_factory, bitcoind, chainparams):
511511@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
512512@pytest .mark .developer ("uses dev-disconnect" )
513513@pytest .mark .openchannel ('v2' )
514- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't support dual-funding yet" )
514+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd doesn't support dual-funding yet" )
515515def test_rbf_reconnect_init (node_factory , bitcoind , chainparams ):
516516 disconnects = ['-WIRE_INIT_RBF' ,
517517 '@WIRE_INIT_RBF' ,
@@ -563,7 +563,7 @@ def test_rbf_reconnect_init(node_factory, bitcoind, chainparams):
563563@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
564564@pytest .mark .developer ("uses dev-disconnect" )
565565@pytest .mark .openchannel ('v2' )
566- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't support dual-funding yet" )
566+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd doesn't support dual-funding yet" )
567567def test_rbf_reconnect_ack (node_factory , bitcoind , chainparams ):
568568 disconnects = ['-WIRE_ACK_RBF' ,
569569 '@WIRE_ACK_RBF' ,
@@ -615,7 +615,7 @@ def test_rbf_reconnect_ack(node_factory, bitcoind, chainparams):
615615@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
616616@pytest .mark .developer ("uses dev-disconnect" )
617617@pytest .mark .openchannel ('v2' )
618- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't support dual-funding yet" )
618+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd doesn't support dual-funding yet" )
619619def test_rbf_reconnect_tx_construct (node_factory , bitcoind , chainparams ):
620620 disconnects = ['=WIRE_TX_ADD_INPUT' , # Initial funding succeeds
621621 '-WIRE_TX_ADD_INPUT' ,
@@ -683,7 +683,7 @@ def test_rbf_reconnect_tx_construct(node_factory, bitcoind, chainparams):
683683@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
684684@pytest .mark .developer ("uses dev-disconnect" )
685685@pytest .mark .openchannel ('v2' )
686- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't support dual-funding yet" )
686+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd doesn't support dual-funding yet" )
687687def test_rbf_reconnect_tx_sigs (node_factory , bitcoind , chainparams ):
688688 disconnects = ['=WIRE_TX_SIGNATURES' , # Initial funding succeeds
689689 '-WIRE_TX_SIGNATURES' , # When we send tx-sigs, RBF
@@ -825,7 +825,7 @@ def test_rbf_reconnect_tx_sigs(node_factory, bitcoind, chainparams):
825825
826826@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
827827@pytest .mark .openchannel ('v2' )
828- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't support dual-funding yet" )
828+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd doesn't support dual-funding yet" )
829829def test_rbf_no_overlap (node_factory , bitcoind , chainparams ):
830830 l1 , l2 = node_factory .get_nodes (2 ,
831831 opts = {'allow_warning' : True })
@@ -1181,7 +1181,7 @@ def test_funder_options(node_factory, bitcoind):
11811181
11821182
11831183@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
1184- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't support dual-funding yet" )
1184+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd doesn't support dual-funding yet" )
11851185def test_funder_contribution_limits (node_factory , bitcoind ):
11861186 opts = {'experimental-dual-fund' : None ,
11871187 'feerates' : (5000 , 5000 , 5000 , 5000 )}
0 commit comments