def start_validator(num, sawtooth_home): return NodeController.start_node( num, NodeController.intkey_config_identity, NodeController.everyone_peers_with_everyone, NodeController.even_parallel_odd_serial, sawtooth_home, NodeController.simple_validator_cmds)
def start_node(self, num, processors, peering, poet_kwargs): LOGGER.info('Starting node {}'.format(num)) processes = NodeController.start_node( num, processors, peering, poet_kwargs) self.nodes[num] = processes self.clients[num] = IntkeyClient( NodeController.http_address(num)) time.sleep(1)
def start_node(self, num, processors, peering, schedulers, poet_kwargs): LOGGER.info('Starting node {}'.format(num)) processes = NodeController.start_node(num, processors, peering, schedulers, poet_kwargs) # Check that none of the processes have returned for proc in processes: if proc.returncode != None: raise subprocess.CalledProcessError(proc.pid, proc.returncode) self.nodes[num] = processes self.clients[num] = IntkeyClient(NodeController.http_address(num)) time.sleep(1)
def start_node(self, num, processors, peering, schedulers, poet_kwargs): LOGGER.info('Starting node %s', num) sawtooth_home = mkdtemp() with SetSawtoothHome(sawtooth_home): processes = NodeController.start_node( num, processors, peering, schedulers, sawtooth_home, NodeController.validator_cmds, poet_kwargs) # Check that none of the processes have returned for proc in processes: if proc.returncode is not None: raise subprocess.CalledProcessError(proc.pid, proc.returncode) self.nodes[num] = processes self.clients[num] = IntkeyClient(NodeController.http_address(num), WAIT) time.sleep(1)
def start_node(self, num, processors, peering, poet_kwargs): LOGGER.info('Starting node {}'.format(num)) processes = NodeController.start_node( num, processors, peering, poet_kwargs) # Check that none of the processes have returned for proc in processes: if proc.returncode != None: raise subprocess.CalledProcessError(proc.pid, proc.returncode) self.nodes[num] = processes self.clients[num] = IntkeyClient( NodeController.http_address(num)) time.sleep(1)
def start_node(self, num, processors, peering, schedulers, poet_kwargs): LOGGER.info('Starting node %s', num) sawtooth_home = mkdtemp() with SetSawtoothHome(sawtooth_home): processes = NodeController.start_node( num, processors, peering, schedulers, sawtooth_home, NodeController.validator_cmds, poet_kwargs) # Check that none of the processes have returned for proc in processes: if proc.returncode is not None: raise subprocess.CalledProcessError(proc.pid, proc.returncode) self.nodes[num] = processes self.clients[num] = IntkeyClient( NodeController.http_address(num), WAIT) time.sleep(1)