@@ -127,7 +127,7 @@ def create_manager(self, reactor: Reactor) -> HathorManager:
127
127
self .check_or_raise (not self ._args .data , '--data should not be used with --memory-storage' )
128
128
# if using MemoryStorage, no need to have cache
129
129
indexes = MemoryIndexesManager ()
130
- tx_storage = TransactionMemoryStorage (indexes )
130
+ tx_storage = TransactionMemoryStorage (indexes , settings = settings )
131
131
event_storage = EventMemoryStorage ()
132
132
self .check_or_raise (not self ._args .x_rocksdb_indexes , 'RocksDB indexes require RocksDB data' )
133
133
self .log .info ('with storage' , storage_class = type (tx_storage ).__name__ )
@@ -150,14 +150,14 @@ def create_manager(self, reactor: Reactor) -> HathorManager:
150
150
# We should only pass indexes if cache is disabled. Otherwise,
151
151
# only TransactionCacheStorage should have indexes.
152
152
kwargs ['indexes' ] = indexes
153
- tx_storage = TransactionRocksDBStorage (self .rocksdb_storage , ** kwargs )
153
+ tx_storage = TransactionRocksDBStorage (self .rocksdb_storage , settings = settings , ** kwargs )
154
154
event_storage = EventRocksDBStorage (self .rocksdb_storage )
155
155
feature_storage = FeatureActivationStorage (settings = settings , rocksdb_storage = self .rocksdb_storage )
156
156
157
157
self .log .info ('with storage' , storage_class = type (tx_storage ).__name__ , path = self ._args .data )
158
158
if self ._args .cache :
159
159
self .check_or_raise (not self ._args .memory_storage , '--cache should not be used with --memory-storage' )
160
- tx_storage = TransactionCacheStorage (tx_storage , reactor , indexes = indexes )
160
+ tx_storage = TransactionCacheStorage (tx_storage , reactor , indexes = indexes , settings = settings )
161
161
if self ._args .cache_size :
162
162
tx_storage .capacity = self ._args .cache_size
163
163
if self ._args .cache_interval :
0 commit comments