Browse Source

pyln-testing: add 'config' method to a node

Query for a config's value. If not set, returns 'none'
ppa
niftynei 4 years ago
committed by Christian Decker
parent
commit
3c1d90086f
  1. 7
      contrib/pyln-testing/pyln/testing/utils.py

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

@ -1043,6 +1043,13 @@ class LightningNode(object):
out = out[2 + length:]
return msgs
def config(self, config_name):
try:
opt = self.rpc.listconfigs(config_name)
return opt[config_name]
except RpcError:
return None
class Throttler(object):
"""Throttles the creation of system-processes to avoid overload.

Loading…
Cancel
Save