increase UTXO and HashXUTXO cache sizes

This commit is contained in:
Jack Robison 2022-10-16 14:43:08 -04:00
parent 2150363108
commit 8947d3cb19

View file

@ -1292,7 +1292,7 @@ class UTXOPrefixRow(PrefixRow):
prefix = DB_PREFIXES.utxo.value prefix = DB_PREFIXES.utxo.value
key_struct = struct.Struct(b'>11sLH') key_struct = struct.Struct(b'>11sLH')
value_struct = struct.Struct(b'>Q') value_struct = struct.Struct(b'>Q')
cache_size = 1024 * 1024 * 64
key_part_lambdas = [ key_part_lambdas = [
lambda: b'', lambda: b'',
struct.Struct(b'>11s').pack, struct.Struct(b'>11s').pack,
@ -1325,7 +1325,7 @@ class HashXUTXOPrefixRow(PrefixRow):
prefix = DB_PREFIXES.hashx_utxo.value prefix = DB_PREFIXES.hashx_utxo.value
key_struct = struct.Struct(b'>4sLH') key_struct = struct.Struct(b'>4sLH')
value_struct = struct.Struct(b'>11s') value_struct = struct.Struct(b'>11s')
cache_size = 1024 * 1024 * 64
key_part_lambdas = [ key_part_lambdas = [
lambda: b'', lambda: b'',
struct.Struct(b'>4s').pack, struct.Struct(b'>4s').pack,