Skip to content

Commit 35483fa

Browse files
committed
increase scribe history tx lfu cache size
1 parent bffd1b1 commit 35483fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hub/scribe/env.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self, db_dir=None, max_query_workers=None, chain=None, reorg_limit=
1818
if isinstance(rebuild_address_status_from_height, int) else -1
1919
self.daemon_ca_path = daemon_ca_path if daemon_ca_path else None
2020
self.history_tx_cache_size = history_tx_cache_size if history_tx_cache_size is not None else \
21-
self.integer('HISTORY_TX_CACHE_SIZE', 524288)
21+
self.integer('HISTORY_TX_CACHE_SIZE', 4194304)
2222

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

0 commit comments

Comments
 (0)