def start(self): oldstatus = self.status super().start() if oldstatus in Status.going(): logger.info("{} is already {}, so start has no effect". format(self, self.status.name)) else: self.startNodestack() self.maintainConnections()
def start(self, loop): oldstatus = self.status super().start(loop) if oldstatus in Status.going(): logger.info("{} is already {}, so start has no effect".format( self, self.status.name)) else: self.startNodestack() self.maintainConnections()
def start(self, loop): oldstatus = self.status if oldstatus in Status.going(): logger.info("{} is already {}, so start has no effect". format(self.alias, self.status.name)) else: super().start(loop) self.nodestack.start() self.nodestack.maintainConnections(force=True) if self.ledger: self.ledgerManager.setLedgerCanSync(POOL_LEDGER_ID, True) self.mode = Mode.starting
def start(self, loop): oldstatus = self.status if oldstatus in Status.going(): logger.info("{} is already {}, so start has no effect". format(self, self.status.name)) else: super().start(loop) self.nodestack.start() self.nodestack.maintainConnections() if self._ledger: self.ledgerManager.setLedgerCanSync(0, True) self.mode = Mode.starting
def start(self): oldstatus = self.status super().start() if oldstatus in Status.going(): logger.info("{} is already {}, so start has no effect". format(self, self.status.name)) else: self.startNodestack() self.startClientstack() self.elector = self.newPrimaryDecider() # if first time running this node if not self.nodestack.remotes: logger.info("{} first time running; waiting for key sharing..." "".format(self)) else: self.maintainConnections()
def start(self, loop): super().start(loop) if self.hasAnonCreds and self.status not in Status.going(): self.peerStack.start()
def isGoing(self): """ Is the status in Status.going()? """ return self.status in Status.going()
def isReady(self): """ Is the status in Status.ready()? """ return self.status in Status.ready()
def is_ready(self): return self.node_status in Status.ready()