fix non localhost elasticsearch

This commit is contained in:
Jack Robison 2021-07-07 20:39:04 -04:00
parent c91a47fcaa
commit b9c2ee745a
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -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)