예제 #1
0
파일: client.py 프로젝트: jbest2015/plenum
 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
파일: client.py 프로젝트: tomergi/plenum
 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
파일: client.py 프로젝트: evernym/plenum
 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
파일: node.py 프로젝트: jbest2015/plenum
    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
파일: motor.py 프로젝트: tomergi/plenum
 def isGoing(self):
     """
     Is the status in Status.going()?
     """
     return self.status in Status.going()
예제 #9
0
파일: motor.py 프로젝트: tomergi/plenum
 def isReady(self):
     """
     Is the status in Status.ready()?
     """
     return self.status in Status.ready()
예제 #10
0
파일: motor.py 프로젝트: jbest2015/plenum
 def isGoing(self):
     """
     Is the status in Status.going()?
     """
     return self.status in Status.going()
예제 #11
0
파일: motor.py 프로젝트: jbest2015/plenum
 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()