@@ -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 ):
@@ -1155,6 +1162,8 @@ def test_channel_lease_lessee_cheat(node_factory, bitcoind, chainparams):
11551162 'Unknown spend of OUR_UNILATERAL/DELAYED_OUTPUT_TO_US by' ])
11561163
11571164
1165+ # VLS_PERMISSIVE generates invalid signature bassed on bad commitnum
1166+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "invalid next holder commitment number: 4 != 6" )
11581167@unittest .skipIf (os .getenv ('TEST_DB_PROVIDER' , 'sqlite3' ) != 'sqlite3' , "Makes use of the sqlite3 db" )
11591168@pytest .mark .slow_test
11601169@pytest .mark .parametrize ("anchors" , [False , True ])
@@ -1339,6 +1348,8 @@ def test_penalty_htlc_tx_fulfill(node_factory, bitcoind, chainparams, anchors):
13391348 check_balance_snaps (l2 , expected_bals_2 )
13401349
13411350
1351+ # VLS_PERMISSIVE generates invalid signature bassed on bad commitnum
1352+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "invalid next holder commitment number: 4 != 6" )
13421353@unittest .skipIf (os .getenv ('TEST_DB_PROVIDER' , 'sqlite3' ) != 'sqlite3' , "Makes use of the sqlite3 db" )
13431354@pytest .mark .slow_test
13441355@pytest .mark .parametrize ("anchors" , [False , True ])
@@ -1568,6 +1579,7 @@ def test_penalty_htlc_tx_timeout(node_factory, bitcoind, chainparams, anchors):
15681579 assert acc ['resolved_at_block' ] > 0
15691580
15701581
1582+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ) and os .getenv ('VLS_PERMISSIVE' ) != '1' , "exceeds max fee policy" )
15711583@pytest .mark .parametrize ("anchors" , [False , True ])
15721584def test_penalty_rbf_normal (node_factory , bitcoind , executor , chainparams , anchors ):
15731585 '''
@@ -2859,6 +2871,7 @@ def route_to_l1(src):
28592871
28602872
28612873@pytest .mark .slow_test
2874+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "frequently flakes" )
28622875def test_onchain_multihtlc_our_unilateral (node_factory , bitcoind ):
28632876 """Node pushes a channel onchain with multiple HTLCs with same payment_hash """
28642877 h , l1 , l2 , l3 , l4 , l5 , l6 , l7 = setup_multihtlc_test (node_factory , bitcoind )
@@ -2914,6 +2927,7 @@ def test_onchain_multihtlc_our_unilateral(node_factory, bitcoind):
29142927
29152928
29162929@pytest .mark .slow_test
2930+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "frequently flakes" )
29172931def test_onchain_multihtlc_their_unilateral (node_factory , bitcoind ):
29182932 """Node pushes a channel onchain with multiple HTLCs with same payment_hash """
29192933 h , l1 , l2 , l3 , l4 , l5 , l6 , l7 = setup_multihtlc_test (node_factory , bitcoind )
@@ -3077,6 +3091,7 @@ def test_permfail_htlc_out(node_factory, bitcoind, executor):
30773091 wait_for (lambda : l2 .rpc .listpeers ()['peers' ] == [])
30783092
30793093
3094+ #@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "policy: can't withdraw to non-wallet address") # FIXME - should work with auto-approve
30803095def test_permfail (node_factory , bitcoind ):
30813096 l1 , l2 = node_factory .line_graph (2 )
30823097
@@ -3176,6 +3191,7 @@ def test_shutdown(node_factory):
31763191 l1 .rpc .stop ()
31773192
31783193
3194+ @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" )
31793195def test_option_upfront_shutdown_script (node_factory , bitcoind , executor , chainparams ):
31803196 l1 = node_factory .get_node (start = False , allow_warning = True )
31813197 # Insist on upfront script we're not going to match.
0 commit comments