MCPcopy Create free account
hub / github.com/LUX-Core/lux / start

Method start

test/functional/test_framework/test_node.py:71–83  ·  view source on GitHub ↗

Start the node.

(self, extra_args=None, stderr=None)

Source from the content-addressed store, hash-verified

69 return self.rpc.__getattr__(*args, **kwargs)
70
71 def start(self, extra_args=None, stderr=None):
72 """Start the node."""
73 if extra_args is None:
74 extra_args = self.extra_args
75 if stderr is None:
76 stderr = self.stderr
77
78
79 if not any(arg.startswith('-staking=') for arg in extra_args):
80 extra_args.append('-staking=0')
81 self.process = subprocess.Popen(self.args + extra_args, stderr=stderr)
82 self.running = True
83 self.log.debug("luxd started, waiting for RPC to come up")
84
85 def wait_for_rpc_connection(self):
86 """Sets up an RPC connection to the luxd process. Returns False if unable to connect."""

Callers 5

run_testMethod · 0.45
run_testMethod · 0.45
run_testMethod · 0.45
start_nodeMethod · 0.45
start_nodesMethod · 0.45

Calls 2

debugMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected