From 51a753c4d26812b93af180d36e1fd65eb4ede269 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 12 May 2022 14:36:14 -0400 Subject: [PATCH] fix settings --- scribe/blockchain/env.py | 3 ++- scribe/hub/env.py | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scribe/blockchain/env.py b/scribe/blockchain/env.py index c6c2cdd..e98ac06 100644 --- a/scribe/blockchain/env.py +++ b/scribe/blockchain/env.py @@ -38,5 +38,6 @@ class BlockchainEnv(Env): db_dir=args.db_dir, daemon_url=args.daemon_url, db_max_open_files=args.db_max_open_files, max_query_workers=args.max_query_workers, chain=args.chain, reorg_limit=args.reorg_limit, prometheus_port=args.prometheus_port, cache_all_tx_hashes=args.cache_all_tx_hashes, - cache_all_claim_txos=args.cache_all_claim_txos + cache_all_claim_txos=args.cache_all_claim_txos, index_address_status=args.index_address_statuses, + hashX_history_cache_size=args.address_history_cache_size ) diff --git a/scribe/hub/env.py b/scribe/hub/env.py index 8babd3e..85ada99 100644 --- a/scribe/hub/env.py +++ b/scribe/hub/env.py @@ -10,9 +10,10 @@ class ServerEnv(Env): payment_address=None, donation_address=None, max_send=None, max_receive=None, max_sessions=None, session_timeout=None, drop_client=None, description=None, daily_fee=None, database_query_timeout=None, elastic_notifier_host=None, elastic_notifier_port=None, - blocking_channel_ids=None, filtering_channel_ids=None, peer_hubs=None, peer_announce=None): + blocking_channel_ids=None, filtering_channel_ids=None, peer_hubs=None, peer_announce=None, + index_address_status=None): super().__init__(db_dir, max_query_workers, chain, reorg_limit, prometheus_port, cache_all_tx_hashes, - cache_all_claim_txos, blocking_channel_ids, filtering_channel_ids) + cache_all_claim_txos, blocking_channel_ids, filtering_channel_ids, index_address_status) self.daemon_url = daemon_url if daemon_url is not None else self.required('DAEMON_URL') self.host = host if host is not None else self.default('HOST', 'localhost') self.elastic_host = elastic_host if elastic_host is not None else self.default('ELASTIC_HOST', 'localhost') @@ -109,5 +110,5 @@ class ServerEnv(Env): drop_client=args.drop_client, description=args.description, daily_fee=args.daily_fee, database_query_timeout=args.query_timeout_ms, blocking_channel_ids=args.blocking_channel_ids, filtering_channel_ids=args.filtering_channel_ids, elastic_notifier_host=args.elastic_notifier_host, - elastic_notifier_port=args.elastic_notifier_port + elastic_notifier_port=args.elastic_notifier_port, index_address_status=args.index_address_statuses )