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

Method start_nodes

test/functional/test_framework/test_framework.py:245–263  ·  view source on GitHub ↗

Start multiple luxds

(self, extra_args=None)

Source from the content-addressed store, hash-verified

243 coverage.write_all_rpc_commands(self.options.coveragedir, node.rpc)
244
245 def start_nodes(self, extra_args=None):
246 """Start multiple luxds"""
247
248 if extra_args is None:
249 extra_args = [None] * self.num_nodes
250 assert_equal(len(extra_args), self.num_nodes)
251 try:
252 for i, node in enumerate(self.nodes):
253 node.start(extra_args[i])
254 for node in self.nodes:
255 node.wait_for_rpc_connection()
256 except:
257 # If one node failed to start, stop the others
258 self.stop_nodes()
259 raise
260
261 if self.options.coveragedir is not None:
262 for node in self.nodes:
263 coverage.write_all_rpc_commands(self.options.coveragedir, node.rpc)
264
265 def stop_node(self, i):
266 """Stop a luxd test node"""

Callers 4

setup_nodesMethod · 0.95
setup_nodesMethod · 0.80
reindexMethod · 0.80
setup_networkMethod · 0.80

Calls 4

stop_nodesMethod · 0.95
assert_equalFunction · 0.70
startMethod · 0.45

Tested by

no test coverage detected