From faa43fc20ee9af328b713e3dada1dcf6ed83028f Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 8 Nov 2021 14:18:22 -0500 Subject: [PATCH] use rocksdb instead of leveldb -dont use block processor directly from session manager --- lbry/wallet/server/server.py | 0 lbry/wallet/server/session.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 lbry/wallet/server/server.py diff --git a/lbry/wallet/server/server.py b/lbry/wallet/server/server.py new file mode 100644 index 000000000..e69de29bb diff --git a/lbry/wallet/server/session.py b/lbry/wallet/server/session.py index 5e276e367..f987f747c 100644 --- a/lbry/wallet/server/session.py +++ b/lbry/wallet/server/session.py @@ -695,7 +695,7 @@ class SessionBase(RPCSession): request_handlers: typing.Dict[str, typing.Callable] = {} 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) self.env = session_manager.env super().__init__(connection=connection) @@ -881,7 +881,7 @@ class LBRYElectrumX(SessionBase): self.protocol_tuple = self.PROTOCOL_MIN self.protocol_string = None self.daemon = self.session_manager.daemon - self.db: LevelDB = self.session_manager.db + self.db: HubDB = self.session_manager.db @classmethod def protocol_min_max_strings(cls):