@@ -482,6 +482,7 @@ def test_closing_negotiation_step_700sat(node_factory, bitcoind, chainparams):
482482 closing_negotiation_step (node_factory , bitcoind , chainparams , opts )
483483
484484
485+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ) and os .getenv ('VLS_PERMISSIVE' ) != '1' , "dev_sign_last_tx causes subsequent validate_holder_commitment_tx failure" )
485486@pytest .mark .parametrize ("anchors" , [False , True ])
486487def test_penalty_inhtlc (node_factory , bitcoind , executor , chainparams , anchors ):
487488 """Test penalty transaction with an incoming HTLC"""
@@ -614,6 +615,7 @@ def test_penalty_inhtlc(node_factory, bitcoind, executor, chainparams, anchors):
614615 check_utxos_channel (l2 , [channel_id ], expected_2 , tags )
615616
616617
618+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ) and os .getenv ('VLS_PERMISSIVE' ) != '1' , "dev_sign_last_tx causes subsequent validate_holder_commitment_tx failure" )
617619@pytest .mark .parametrize ("anchors" , [False , True ])
618620def test_penalty_outhtlc (node_factory , bitcoind , executor , chainparams , anchors ):
619621 """Test penalty transaction with an outgoing HTLC"""
@@ -750,6 +752,7 @@ def test_penalty_outhtlc(node_factory, bitcoind, executor, chainparams, anchors)
750752
751753
752754@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
755+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "handle_sign_option_will_fund_offer unimplemented" )
753756@pytest .mark .openchannel ('v2' )
754757@pytest .mark .slow_test
755758def test_channel_lease_falls_behind (node_factory , bitcoind ):
@@ -791,6 +794,7 @@ def test_channel_lease_falls_behind(node_factory, bitcoind):
791794
792795
793796@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
797+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "handle_sign_option_will_fund_offer unimplemented" )
794798@pytest .mark .openchannel ('v2' )
795799@pytest .mark .slow_test
796800def test_channel_lease_post_expiry (node_factory , bitcoind , chainparams ):
@@ -892,6 +896,7 @@ def test_channel_lease_post_expiry(node_factory, bitcoind, chainparams):
892896
893897
894898@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
899+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "handle_sign_option_will_fund_offer unimplemented" )
895900@pytest .mark .openchannel ('v2' )
896901@pytest .mark .slow_test
897902def test_channel_lease_unilat_closes (node_factory , bitcoind ):
@@ -1004,6 +1009,7 @@ def test_channel_lease_unilat_closes(node_factory, bitcoind):
10041009
10051010
10061011@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
1012+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "handle_sign_option_will_fund_offer unimplemented" )
10071013@pytest .mark .openchannel ('v2' )
10081014@unittest .skipIf (os .getenv ('TEST_DB_PROVIDER' , 'sqlite3' ) != 'sqlite3' , "Makes use of the sqlite3 db" )
10091015def test_channel_lease_lessor_cheat (node_factory , bitcoind , chainparams ):
@@ -1080,6 +1086,7 @@ def test_channel_lease_lessor_cheat(node_factory, bitcoind, chainparams):
10801086
10811087
10821088@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
1089+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "handle_sign_option_will_fund_offer unimplemented" )
10831090@pytest .mark .openchannel ('v2' )
10841091@unittest .skipIf (os .getenv ('TEST_DB_PROVIDER' , 'sqlite3' ) != 'sqlite3' , "Makes use of the sqlite3 db" )
10851092def test_channel_lease_lessee_cheat (node_factory , bitcoind , chainparams ):
@@ -1156,6 +1163,7 @@ def test_channel_lease_lessee_cheat(node_factory, bitcoind, chainparams):
11561163
11571164
11581165@unittest .skipIf (os .getenv ('TEST_DB_PROVIDER' , 'sqlite3' ) != 'sqlite3' , "Makes use of the sqlite3 db" )
1166+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "policy: can't sign revoked commitment number" ) # FIXME - should work w/ VLS_PERMISSIVE
11591167@pytest .mark .slow_test
11601168@pytest .mark .parametrize ("anchors" , [False , True ])
11611169def test_penalty_htlc_tx_fulfill (node_factory , bitcoind , chainparams , anchors ):
@@ -1340,6 +1348,7 @@ def test_penalty_htlc_tx_fulfill(node_factory, bitcoind, chainparams, anchors):
13401348
13411349
13421350@unittest .skipIf (os .getenv ('TEST_DB_PROVIDER' , 'sqlite3' ) != 'sqlite3' , "Makes use of the sqlite3 db" )
1351+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "policy: can't sign revoked commitment number" ) # FIXME - should work with VLS_PERMISSIVE
13431352@pytest .mark .slow_test
13441353@pytest .mark .parametrize ("anchors" , [False , True ])
13451354def test_penalty_htlc_tx_timeout (node_factory , bitcoind , chainparams , anchors ):
@@ -1568,6 +1577,7 @@ def test_penalty_htlc_tx_timeout(node_factory, bitcoind, chainparams, anchors):
15681577 assert acc ['resolved_at_block' ] > 0
15691578
15701579
1580+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ) and os .getenv ('VLS_PERMISSIVE' ) != '1' , "exceeds max fee policy" )
15711581@pytest .mark .parametrize ("anchors" , [False , True ])
15721582def test_penalty_rbf_normal (node_factory , bitcoind , executor , chainparams , anchors ):
15731583 '''
@@ -2851,6 +2861,7 @@ def route_to_l1(src):
28512861
28522862
28532863@pytest .mark .slow_test
2864+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "frequently flakes" )
28542865def test_onchain_multihtlc_our_unilateral (node_factory , bitcoind ):
28552866 """Node pushes a channel onchain with multiple HTLCs with same payment_hash """
28562867 h , l1 , l2 , l3 , l4 , l5 , l6 , l7 = setup_multihtlc_test (node_factory , bitcoind )
@@ -2906,6 +2917,7 @@ def test_onchain_multihtlc_our_unilateral(node_factory, bitcoind):
29062917
29072918
29082919@pytest .mark .slow_test
2920+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "frequently flakes" )
29092921def test_onchain_multihtlc_their_unilateral (node_factory , bitcoind ):
29102922 """Node pushes a channel onchain with multiple HTLCs with same payment_hash """
29112923 h , l1 , l2 , l3 , l4 , l5 , l6 , l7 = setup_multihtlc_test (node_factory , bitcoind )
@@ -3068,7 +3080,7 @@ def test_permfail_htlc_out(node_factory, bitcoind, executor):
30683080 bitcoind .generate_block (2 )
30693081 wait_for (lambda : l2 .rpc .listpeers ()['peers' ] == [])
30703082
3071-
3083+ @ unittest . skipIf ( os . getenv ( 'SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ), "policy: can't withdraw to non-wallet address" ) # FIXME - should work with auto-approve
30723084def test_permfail (node_factory , bitcoind ):
30733085 l1 , l2 = node_factory .line_graph (2 )
30743086
@@ -3168,6 +3180,7 @@ def test_shutdown(node_factory):
31683180 l1 .rpc .stop ()
31693181
31703182
3183+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "policy failure: validate_mutual_close_tx: holder_script doesn't match upfront holder_shutdown_script" ) # FIXME - should work with VLS_PERMISSIVE
31713184def test_option_upfront_shutdown_script (node_factory , bitcoind , executor , chainparams ):
31723185 l1 = node_factory .get_node (start = False , allow_warning = True )
31733186 # Insist on upfront script we're not going to match.
0 commit comments