use rocksdb instead of leveldb
-dont use block processor directly from session manager
This commit is contained in:
parent
f7deaa3303
commit
faa43fc20e
2 changed files with 2 additions and 2 deletions
0
lbry/wallet/server/server.py
Normal file
0
lbry/wallet/server/server.py
Normal file
|
@ -695,7 +695,7 @@ class SessionBase(RPCSession):
|
||||||
request_handlers: typing.Dict[str, typing.Callable] = {}
|
request_handlers: typing.Dict[str, typing.Callable] = {}
|
||||||
version = '0.5.7'
|
version = '0.5.7'
|
||||||
|
|
||||||
def __init__(self, session_manager: 'LBRYSessionManager', db: 'LevelDB', mempool: 'MemPool', kind: str):
|
def __init__(self, session_manager: 'LBRYSessionManager', db: 'HubDB', mempool: 'MemPool', kind: str):
|
||||||
connection = JSONRPCConnection(JSONRPCAutoDetect)
|
connection = JSONRPCConnection(JSONRPCAutoDetect)
|
||||||
self.env = session_manager.env
|
self.env = session_manager.env
|
||||||
super().__init__(connection=connection)
|
super().__init__(connection=connection)
|
||||||
|
@ -881,7 +881,7 @@ class LBRYElectrumX(SessionBase):
|
||||||
self.protocol_tuple = self.PROTOCOL_MIN
|
self.protocol_tuple = self.PROTOCOL_MIN
|
||||||
self.protocol_string = None
|
self.protocol_string = None
|
||||||
self.daemon = self.session_manager.daemon
|
self.daemon = self.session_manager.daemon
|
||||||
self.db: LevelDB = self.session_manager.db
|
self.db: HubDB = self.session_manager.db
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def protocol_min_max_strings(cls):
|
def protocol_min_max_strings(cls):
|
||||||
|
|
Loading…
Add table
Reference in a new issue