diff --git a/lnprototest/clightning/clightning.py b/lnprototest/clightning/clightning.py index 79f8bb4..198c1ad 100644 --- a/lnprototest/clightning/clightning.py +++ b/lnprototest/clightning/clightning.py @@ -71,7 +71,7 @@ def __init__(self, config: Any): self.startup_flags.append("--{}".format(flag)) # Does it support (i.e. require!) --developer? - ret = subprocess.run( + ret = subprocess.Popen( [ "{}/lightningd/lightningd".format(LIGHTNING_SRC), "--developer", @@ -80,7 +80,7 @@ def __init__(self, config: Any): stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, ) - if ret.returncode == 0: + if ret.returncode != 0: self.startup_flags.append("--developer") opts = (