Example #1
0
 def loadAttributeStore(self):
     return AttributeStore(
         initKeyValueStorage(
             self.config.attrStorage,
             self.dataLocation,
             self.config.attrDbName)
     )
Example #2
0
 def loadConfigState(self):
     return PruningState(
         initKeyValueStorage(
             self.config.configStateStorage,
             self.dataLocation,
             self.config.configStateDbName)
     )
Example #3
0
 def loadConfigState(self):
     return PruningState(
         initKeyValueStorage(
             self.config.configStateStorage,
             self.dataLocation,
             self.config.configStateDbName)
     )
Example #4
0
 def getIdrCache(self):
     if self.idrCache is None:
         self.idrCache = IdrCache(self.name,
                                  initKeyValueStorage(self.config.idrCacheStorage,
                                                      self.dataLocation,
                                                      self.config.idrCacheDbName)
                                  )
     return self.idrCache
Example #5
0
 def getIdrCache(self):
     return IdrCache(
         self.name,
         initKeyValueStorage(
             self.config.idrCacheStorage,
             self.dataLocation,
             self.config.idrCacheDbName)
     )
Example #6
0
 def __init__(self,
              key_value_type,
              data_location,
              key_value_storage_name,
              serializer=None):
     self._kvs = initKeyValueStorage(key_value_type, data_location,
                                     key_value_storage_name)
     self._serializer = serializer or multi_sig_store_serializer
Example #7
0
 def getIdrCache(self):
     return IdrCache(
         self.name,
         initKeyValueStorage(self.config.idrCacheStorage, self.dataLocation,
                             self.config.idrCacheDbName))
Example #8
0
def get_auction_state(data_dir, name, config):
    return PruningState(
        initKeyValueStorage(config.auctionStateStorage, data_dir, name))