This commit is contained in:
Lex Berezhny 2019-07-10 23:17:15 -04:00
parent 68b29d9529
commit a73c5aec27

View file

@ -360,7 +360,7 @@ class QueryProcessor(Process):
return result, extra_txo_rows return result, extra_txo_rows
def run(self): def run(self):
(call_queue, result_queue, _, initargs) = self._args (call_queue, result_queue, _, initargs) = self._args # pylint: disable=W0632
db_path, ledger_name = initargs db_path, ledger_name = initargs
self.ledger = MainNetLedger if ledger_name == 'mainnet' else RegTestLedger self.ledger = MainNetLedger if ledger_name == 'mainnet' else RegTestLedger
self.db = sqlite3.connect(db_path, isolation_level=None) self.db = sqlite3.connect(db_path, isolation_level=None)