From 354c69bf4f90496e8b2cf6892cc82cbc5de7c435 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 7 Jul 2021 20:39:04 -0400 Subject: [PATCH] fix non localhost elasticsearch --- lbry/wallet/server/leveldb.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lbry/wallet/server/leveldb.py b/lbry/wallet/server/leveldb.py index 0442a3cfd..e9d813882 100644 --- a/lbry/wallet/server/leveldb.py +++ b/lbry/wallet/server/leveldb.py @@ -151,7 +151,10 @@ class LevelDB: self.transaction_num_mapping = {} # Search index - self.search_index = SearchIndex(self.env.es_index_prefix, self.env.database_query_timeout) + self.search_index = SearchIndex( + self.env.es_index_prefix, self.env.database_query_timeout, + elastic_host=env.elastic_host, elastic_port=env.elastic_port + ) self.genesis_bytes = bytes.fromhex(self.coin.GENESIS_HASH)