Пример #1
0
class NetStatus(object):
    '''Download consensus and server descriptor documents.'''

    def __init__(self):
        logging.debug("Created NetStatus.")
        self._mcm = MicroconsensusManager()
        self._mdm = MicrodescriptorManager(self._mcm)

    def getMicrodescriptorsForCircuit(self):
        return self._mdm.getMicrodescriptorsForCircuit()

    def getMicroconsensus(self):
        return self._mcm.getMicroconsensus()
Пример #2
0
 def __init__(self):
     logging.debug("Created NetStatus.")
     self._mcm = MicroconsensusManager()
     self._mdm = MicrodescriptorManager(self._mcm)