Browse Source

pyln-testing: allow to customize --allow-deprecated-apis

travis-debug
darosior 5 years ago
committed by Rusty Russell
parent
commit
242ddb5660
  1. 4
      contrib/pyln-testing/pyln/testing/utils.py

4
contrib/pyln-testing/pyln/testing/utils.py

@ -66,6 +66,7 @@ TEST_NETWORK = env("TEST_NETWORK", 'regtest')
DEVELOPER = env("DEVELOPER", "0") == "1"
TEST_DEBUG = env("TEST_DEBUG", "0") == "1"
SLOW_MACHINE = env("SLOW_MACHINE", "0") == "1"
DEPRECATED_APIS = env("DEPRECATED_APIS", "0") == "1"
TIMEOUT = int(env("TIMEOUT", 180 if SLOW_MACHINE else 60))
@ -479,7 +480,8 @@ class LightningD(TailableProc):
opts = {
'lightning-dir': lightning_dir,
'addr': '127.0.0.1:{}'.format(port),
'allow-deprecated-apis': 'false',
'allow-deprecated-apis': '{}'.format("true" if DEPRECATED_APIS
else "false"),
'network': TEST_NETWORK,
'ignore-fee-limits': 'false',
'bitcoin-rpcuser': BITCOIND_CONFIG['rpcuser'],

Loading…
Cancel
Save