Start the node.
(self, extra_args=None, stderr=None)
| 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.""" |
no test coverage detected