4
0
mirror of git://holbrook.no/eth-monitor.git synced 2024-11-26 21:36:45 +01:00

Skip cache rules filter when deactivated

This commit is contained in:
lash 2023-08-17 13:27:12 +01:00
parent c99259b2ed
commit a29ae35597
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
- 0.8.8
* Skip rules filter processing for cache when deactivated
* Add match-all flag to rule processing
* Add match-all flag to CLI to toggle setting match_all flag to rule processing for include criteria
- 0.8.7

View File

@ -274,7 +274,10 @@ def process_cache_store(settings, config):
def process_cache_filter(settings, config):
cache_store = settings.get('CACHE_STORE')
fltr = CacheFilter(cache_store, rules_filter=settings.o['RULES'], include_tx_data=config.true('ETHCACHE_STORE_TX'))
cache_rules = AddressRules(include_by_default=True)
if str(cache_store) != 'Nullstore':
cache_rules = settings.o['RULES']
fltr = CacheFilter(cache_store, rules_filter=cache_rules, include_tx_data=config.true('ETHCACHE_STORE_TX'))
sync_store = settings.get('SYNC_STORE')
sync_store.register(fltr)