there is no first_search

This commit is contained in:
Victor Shyba 2021-08-11 01:38:43 -03:00 committed by Victor Shyba
parent 0e4b2fad99
commit 9685928087
3 changed files with 1 additions and 6 deletions

View file

@ -2615,10 +2615,6 @@ class Daemon(metaclass=JSONRPCServerType):
Returns: {Paginated[Output]}
"""
if self.ledger.config['use_go_hub']:
if self.ledger.config['first_search']:
# Only do this the first time because we might need to retry due to the go hub not being there
self.ledger.config['first_search'] = False
kwargs_old = copy.copy(kwargs)
host = self.ledger.network.client.server[0]
port = "50051"
kwargs['new_sdk_server'] = f"{host}:{port}"

View file

@ -112,7 +112,7 @@ class Ledger(metaclass=LedgerRegistry):
def __init__(self, config=None):
self.config = config or {}
self.config.update({"use_go_hub": True, "first_search": True})
self.config.update({"use_go_hub": True})
self.db: Database = self.config.get('db') or Database(
os.path.join(self.path, "blockchain.db")
)

View file

@ -234,7 +234,6 @@ class WalletManager:
async def reset(self):
self.ledger.config = {
'use_go_hub': True,
'first_search': True,
'auto_connect': True,
'explicit_servers': [],
'default_servers': Config.lbryum_servers.default,