@@ -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,7 @@ def test_channel_lease_lessee_cheat(node_factory, bitcoind, chainparams):
11551162 'Unknown spend of OUR_UNILATERAL/DELAYED_OUTPUT_TO_US by' ])
11561163
11571164
1165+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ) and os .getenv ('VLS_PERMISSIVE' ) != '1' , "validate_payments: unbalanced payments on channel" )
11581166@unittest .skipIf (os .getenv ('TEST_DB_PROVIDER' , 'sqlite3' ) != 'sqlite3' , "Makes use of the sqlite3 db" )
11591167@pytest .mark .slow_test
11601168@pytest .mark .parametrize ("anchors" , [False , True ])
@@ -1339,6 +1347,7 @@ def test_penalty_htlc_tx_fulfill(node_factory, bitcoind, chainparams, anchors):
13391347 check_balance_snaps (l2 , expected_bals_2 )
13401348
13411349
1350+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ) and os .getenv ('VLS_PERMISSIVE' ) != '1' , "validate_payments: unbalanced payments on channel" )
13421351@unittest .skipIf (os .getenv ('TEST_DB_PROVIDER' , 'sqlite3' ) != 'sqlite3' , "Makes use of the sqlite3 db" )
13431352@pytest .mark .slow_test
13441353@pytest .mark .parametrize ("anchors" , [False , True ])
@@ -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 '''
@@ -2859,6 +2869,7 @@ def route_to_l1(src):
28592869
28602870
28612871@pytest .mark .slow_test
2872+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "frequently flakes" )
28622873def test_onchain_multihtlc_our_unilateral (node_factory , bitcoind ):
28632874 """Node pushes a channel onchain with multiple HTLCs with same payment_hash """
28642875 h , l1 , l2 , l3 , l4 , l5 , l6 , l7 = setup_multihtlc_test (node_factory , bitcoind )
@@ -2914,6 +2925,7 @@ def test_onchain_multihtlc_our_unilateral(node_factory, bitcoind):
29142925
29152926
29162927@pytest .mark .slow_test
2928+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ), "frequently flakes" )
29172929def test_onchain_multihtlc_their_unilateral (node_factory , bitcoind ):
29182930 """Node pushes a channel onchain with multiple HTLCs with same payment_hash """
29192931 h , l1 , l2 , l3 , l4 , l5 , l6 , l7 = setup_multihtlc_test (node_factory , bitcoind )
@@ -3077,6 +3089,7 @@ def test_permfail_htlc_out(node_factory, bitcoind, executor):
30773089 wait_for (lambda : l2 .rpc .listpeers ()['peers' ] == [])
30783090
30793091
3092+ #@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "policy: can't withdraw to non-wallet address") # FIXME - should work with auto-approve
30803093def test_permfail (node_factory , bitcoind ):
30813094 l1 , l2 = node_factory .line_graph (2 )
30823095
@@ -3176,6 +3189,7 @@ def test_shutdown(node_factory):
31763189 l1 .rpc .stop ()
31773190
31783191
3192+ @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" )
31793193def test_option_upfront_shutdown_script (node_factory , bitcoind , executor , chainparams ):
31803194 l1 = node_factory .get_node (start = False , allow_warning = True )
31813195 # Insist on upfront script we're not going to match.
0 commit comments