@@ -496,6 +496,7 @@ def test_closing_negotiation_step_700sat(node_factory, bitcoind, chainparams):
496496 closing_negotiation_step (node_factory , bitcoind , chainparams , opts )
497497
498498
499+ @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" )
499500@pytest .mark .parametrize ("anchors" , [False , True ])
500501def test_penalty_inhtlc (node_factory , bitcoind , executor , chainparams , anchors ):
501502 """Test penalty transaction with an incoming HTLC"""
@@ -628,6 +629,7 @@ def test_penalty_inhtlc(node_factory, bitcoind, executor, chainparams, anchors):
628629 check_utxos_channel (l2 , [channel_id ], expected_2 , tags )
629630
630631
632+ @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" )
631633@pytest .mark .parametrize ("anchors" , [False , True ])
632634def test_penalty_outhtlc (node_factory , bitcoind , executor , chainparams , anchors ):
633635 """Test penalty transaction with an outgoing HTLC"""
@@ -764,6 +766,7 @@ def test_penalty_outhtlc(node_factory, bitcoind, executor, chainparams, anchors)
764766
765767
766768@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
769+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "handle_sign_option_will_fund_offer unimplemented" )
767770@pytest .mark .openchannel ('v2' )
768771@pytest .mark .slow_test
769772def test_channel_lease_falls_behind (node_factory , bitcoind ):
@@ -803,6 +806,7 @@ def test_channel_lease_falls_behind(node_factory, bitcoind):
803806
804807
805808@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
809+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "handle_sign_option_will_fund_offer unimplemented" )
806810@pytest .mark .openchannel ('v2' )
807811@pytest .mark .slow_test
808812def test_channel_lease_post_expiry (node_factory , bitcoind , chainparams ):
@@ -903,6 +907,7 @@ def test_channel_lease_post_expiry(node_factory, bitcoind, chainparams):
903907
904908
905909@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
910+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "handle_sign_option_will_fund_offer unimplemented" )
906911@pytest .mark .openchannel ('v2' )
907912@pytest .mark .slow_test
908913def test_channel_lease_unilat_closes (node_factory , bitcoind ):
@@ -1014,6 +1019,7 @@ def test_channel_lease_unilat_closes(node_factory, bitcoind):
10141019
10151020
10161021@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
1022+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "handle_sign_option_will_fund_offer unimplemented" )
10171023@pytest .mark .openchannel ('v2' )
10181024@unittest .skipIf (os .getenv ('TEST_DB_PROVIDER' , 'sqlite3' ) != 'sqlite3' , "Makes use of the sqlite3 db" )
10191025def test_channel_lease_lessor_cheat (node_factory , bitcoind , chainparams ):
@@ -1088,6 +1094,7 @@ def test_channel_lease_lessor_cheat(node_factory, bitcoind, chainparams):
10881094
10891095
10901096@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
1097+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "handle_sign_option_will_fund_offer unimplemented" )
10911098@pytest .mark .openchannel ('v2' )
10921099@unittest .skipIf (os .getenv ('TEST_DB_PROVIDER' , 'sqlite3' ) != 'sqlite3' , "Makes use of the sqlite3 db" )
10931100def test_channel_lease_lessee_cheat (node_factory , bitcoind , chainparams ):
@@ -1163,6 +1170,8 @@ def test_channel_lease_lessee_cheat(node_factory, bitcoind, chainparams):
11631170 'Unknown spend of OUR_UNILATERAL/DELAYED_OUTPUT_TO_US by' ])
11641171
11651172
1173+ # VLS_PERMISSIVE generates invalid signature bassed on bad commitnum
1174+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "invalid next holder commitment number: 4 != 6" )
11661175@unittest .skipIf (os .getenv ('TEST_DB_PROVIDER' , 'sqlite3' ) != 'sqlite3' , "Makes use of the sqlite3 db" )
11671176@pytest .mark .slow_test
11681177@pytest .mark .parametrize ("anchors" , [False , True ])
@@ -1351,6 +1360,8 @@ def test_penalty_htlc_tx_fulfill(node_factory, bitcoind, chainparams, anchors):
13511360 check_balance_snaps (l2 , expected_bals_2 )
13521361
13531362
1363+ # VLS_PERMISSIVE generates invalid signature bassed on bad commitnum
1364+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "invalid next holder commitment number: 4 != 6" )
13541365@unittest .skipIf (os .getenv ('TEST_DB_PROVIDER' , 'sqlite3' ) != 'sqlite3' , "Makes use of the sqlite3 db" )
13551366@pytest .mark .slow_test
13561367@pytest .mark .parametrize ("anchors" , [False , True ])
@@ -1580,6 +1591,7 @@ def test_penalty_htlc_tx_timeout(node_factory, bitcoind, chainparams, anchors):
15801591 assert acc ['resolved_at_block' ] > 0
15811592
15821593
1594+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ) and os .getenv ('VLS_PERMISSIVE' ) != '1' , "exceeds max fee policy" )
15831595@pytest .mark .parametrize ("anchors" , [False , True ])
15841596def test_penalty_rbf_normal (node_factory , bitcoind , executor , chainparams , anchors ):
15851597 '''
@@ -2896,6 +2908,7 @@ def route_to_l1(src):
28962908
28972909
28982910@pytest .mark .slow_test
2911+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "frequently flakes" )
28992912def test_onchain_multihtlc_our_unilateral (node_factory , bitcoind ):
29002913 """Node pushes a channel onchain with multiple HTLCs with same payment_hash """
29012914 h , l1 , l2 , l3 , l4 , l5 , l6 , l7 = setup_multihtlc_test (node_factory , bitcoind )
@@ -2951,6 +2964,7 @@ def test_onchain_multihtlc_our_unilateral(node_factory, bitcoind):
29512964
29522965
29532966@pytest .mark .slow_test
2967+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "frequently flakes" )
29542968def test_onchain_multihtlc_their_unilateral (node_factory , bitcoind ):
29552969 """Node pushes a channel onchain with multiple HTLCs with same payment_hash """
29562970 h , l1 , l2 , l3 , l4 , l5 , l6 , l7 = setup_multihtlc_test (node_factory , bitcoind )
@@ -3116,6 +3130,7 @@ def test_permfail_htlc_out(node_factory, bitcoind, executor):
31163130 wait_for (lambda : l2 .rpc .listpeers ()['peers' ] == [])
31173131
31183132
3133+ #@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "policy: can't withdraw to non-wallet address") # FIXME - should work with auto-approve
31193134def test_permfail (node_factory , bitcoind ):
31203135 l1 , l2 = node_factory .line_graph (2 )
31213136
@@ -3215,6 +3230,7 @@ def test_shutdown(node_factory):
32153230 l1 .rpc .stop ()
32163231
32173232
3233+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ) and os .getenv ('VLS_PERMISSIVE' ) != '1' , "validate_setup_channel: holder_shutdown_script is not in wallet or allowlist" )
32183234def test_option_upfront_shutdown_script (node_factory , bitcoind , executor , chainparams ):
32193235 l1 = node_factory .get_node (start = False , allow_warning = True )
32203236 # Insist on upfront script we're not going to match.
0 commit comments