Пример #1
0
 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()
Пример #2
0
 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()
Пример #3
0
 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
Пример #4
0
 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
Пример #5
0
    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()
Пример #6
0
 def start(self, loop):
     super().start(loop)
     if self.hasAnonCreds and self.status not in Status.going():
         self.peerStack.start()
Пример #7
0
 def start(self, loop):
     super().start(loop)
     if self.hasAnonCreds and self.status not in Status.going():
         self.peerStack.start()
Пример #8
0
 def isGoing(self):
     """
     Is the status in Status.going()?
     """
     return self.status in Status.going()
Пример #9
0
 def isReady(self):
     """
     Is the status in Status.ready()?
     """
     return self.status in Status.ready()
Пример #10
0
 def isGoing(self):
     """
     Is the status in Status.going()?
     """
     return self.status in Status.going()
Пример #11
0
 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()