예제 #1
0
 def start(self, port, peer_id="", group_id=""):
     self.__port = port
     if self.__inner_service_port is None:
         self.__inner_service_port = int(port) + conf.PORT_DIFF_INNER_SERVICE
     self.__peer_id = peer_id
     self.__group_id = group_id
     CommonThread.start(self)
예제 #2
0
 def start(self, port, peer_id="", group_id=""):
     self.__port = port
     self.peer_id = peer_id
     self.__group_id = group_id
     CommonThread.start(self)
     self.__broadcast_process.set_to_process(
         BroadcastProcess.PROCESS_INFO_KEY,
         f"peer_id({self.get_peer_id()})")
예제 #3
0
 def start(self, port, peer_id="", group_id=""):
     self.__port = port
     if self.__inner_service_port is None:
         self.__inner_service_port = port + conf.PORT_DIFF_INNER_SERVICE
     self.__peer_id = peer_id
     self.__group_id = group_id
     CommonThread.start(self)
     self.__broadcast_process.set_to_process(BroadcastProcess.PROCESS_INFO_KEY, f"peer_id({self.__peer_id})")
예제 #4
0
 def start(self):
     if conf.ALLOW_MAKE_EMPTY_BLOCK:
         self.__block_generation_scheduler.start()
     CommonThread.start(self)