@@ -120,6 +120,7 @@ def test_bookkeeping_closing_subsat_htlcs(node_factory, bitcoind, chainparams):
120120
121121
122122@unittest .skipIf (TEST_NETWORK != 'regtest' , "External wallet support doesn't work with elements yet." )
123+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ) and os .getenv ('VLS_PERMISSIVE' ) != '1' , "remote_hsmd doesn't allow withdrawal to non-wallet, non-allowlisted address" )
123124def test_bookkeeping_external_withdraws (node_factory , bitcoind ):
124125 """ Withdrawals to an external address shouldn't be included
125126 in the income statements until confirmed"""
@@ -201,6 +202,7 @@ def test_bookkeeping_external_withdraws(node_factory, bitcoind):
201202
202203@unittest .skipIf (TEST_NETWORK != 'regtest' , "External wallet support doesn't work with elements yet." )
203204@unittest .skipIf (os .getenv ('TEST_DB_PROVIDER' , 'sqlite3' ) != 'sqlite3' , "Depends on sqlite3 database location" )
205+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ) and os .getenv ('VLS_PERMISSIVE' ) != '1' , "policy: can't withdraw to non-wallet address" )
204206def test_bookkeeping_external_withdraw_missing (node_factory , bitcoind ):
205207 """ Withdrawals to an external address turn up as
206208 extremely large onchain_fees when they happen before
@@ -267,6 +269,7 @@ def test_bookkeeping_external_withdraw_missing(node_factory, bitcoind):
267269
268270
269271@unittest .skipIf (TEST_NETWORK != 'regtest' , "External wallet support doesn't work with elements yet." )
272+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ) and os .getenv ('VLS_PERMISSIVE' ) != '1' , "policy: can't withdraw to non-wallet address" )
270273def test_bookkeeping_rbf_withdraw (node_factory , bitcoind ):
271274 """ If a withdraw to an external gets RBF'd,
272275 it should *not* show up in our income ever.
@@ -413,6 +416,7 @@ def _check_events(node, channel_id, exp_events):
413416
414417@unittest .skipIf (os .getenv ('TEST_DB_PROVIDER' , 'sqlite3' ) != 'sqlite3' , "turns off bookkeeper at start" )
415418@unittest .skipIf (TEST_NETWORK != 'regtest' , "network fees hardcoded" )
419+ @unittest .skipIf (os .getenv ('SUBDAEMON' ).startswith ('hsmd:remote_hsmd' ) and os .getenv ('VLS_PERMISSIVE' ) != '1' , "remote_hsmd doesn't allow push of non-trivial amount" )
416420@pytest .mark .openchannel ('v1' , 'Uses push-msat' )
417421def test_bookkeeping_missed_chans_pushed (node_factory , bitcoind ):
418422 """
0 commit comments