Пример #1
0
 def __init__(self):
     """
     >>> State().db is not None
     True
     >>> State().stake_validators_list is not None
     True
     """
     self.db = db.DB()  # generate db object here
     self.stake_validators_list = StakeValidatorsList()
Пример #2
0
    def __init__(self):
        self._db = db.DB()  # generate db object here

        # FIXME: Move to BufferedChain
        self.stake_validators_tracker = StakeValidatorsTracker()
Пример #3
0
 def __init__(self):
     self.db = db.DB()  # generate db object here