Skip to content

Commit

Permalink
pyln: Apply early_opts just like opts in TailableProc
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Dec 15, 2023
1 parent 192776c commit 1157260
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/pyln-testing/pyln/testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,9 @@ def cleanup(self):
def cmd_line(self):

opts = []
for k, v in self.early_opts.items():
opts.append(f'--{k}{"=" + v if v is not None else ""}')

for k, v in self.opts.items():
if v is None:
opts.append("--{}".format(k))
Expand All @@ -655,7 +658,7 @@ def cmd_line(self):
else:
opts.append("--{}={}".format(k, v))

return self.cmd_prefix + [self.executable] + self.early_opts + opts
return self.cmd_prefix + [self.executable] + opts

def start(self, stdin=None, wait_for_initialized=True, stderr_redir=False):
self.opts['bitcoin-rpcport'] = self.rpcproxy.rpcport
Expand Down

0 comments on commit 1157260

Please sign in to comment.