fix non localhost elasticsearch
This commit is contained in:
parent
52aa045635
commit
354c69bf4f
1 changed files with 4 additions and 1 deletions
|
@ -151,7 +151,10 @@ class LevelDB:
|
||||||
self.transaction_num_mapping = {}
|
self.transaction_num_mapping = {}
|
||||||
|
|
||||||
# Search index
|
# 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)
|
self.genesis_bytes = bytes.fromhex(self.coin.GENESIS_HASH)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue