Skip to content

Commit

Permalink
increase scribe history tx lfu cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
jackrobison committed Jul 31, 2022
1 parent bffd1b1 commit 35483fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hub/scribe/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, db_dir=None, max_query_workers=None, chain=None, reorg_limit=
if isinstance(rebuild_address_status_from_height, int) else -1
self.daemon_ca_path = daemon_ca_path if daemon_ca_path else None
self.history_tx_cache_size = history_tx_cache_size if history_tx_cache_size is not None else \
self.integer('HISTORY_TX_CACHE_SIZE', 524288)
self.integer('HISTORY_TX_CACHE_SIZE', 4194304)

@classmethod
def contribute_to_arg_parser(cls, parser):
Expand All @@ -42,7 +42,7 @@ def contribute_to_arg_parser(cls, parser):
help="Rebuild address statuses, set to 0 to reindex all address statuses or provide a "
"block height to start reindexing from. Defaults to -1 (off).")
parser.add_argument('--history_tx_cache_size', type=int,
default=cls.integer('HISTORY_TX_CACHE_SIZE', 524288),
default=cls.integer('HISTORY_TX_CACHE_SIZE', 4194304),
help="Size of the lfu cache of txids in transaction histories for addresses. "
"Can be set in the env with 'HISTORY_TX_CACHE_SIZE'")

Expand Down

0 comments on commit 35483fa

Please sign in to comment.