mirror of
git://holbrook.no/eth-monitor.git
synced 2024-11-23 12:26:45 +01:00
Skip cache rules filter when deactivated
This commit is contained in:
parent
c99259b2ed
commit
a29ae35597
@ -1,4 +1,5 @@
|
|||||||
- 0.8.8
|
- 0.8.8
|
||||||
|
* Skip rules filter processing for cache when deactivated
|
||||||
* Add match-all flag to rule processing
|
* 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
|
* Add match-all flag to CLI to toggle setting match_all flag to rule processing for include criteria
|
||||||
- 0.8.7
|
- 0.8.7
|
||||||
|
@ -274,7 +274,10 @@ def process_cache_store(settings, config):
|
|||||||
|
|
||||||
def process_cache_filter(settings, config):
|
def process_cache_filter(settings, config):
|
||||||
cache_store = settings.get('CACHE_STORE')
|
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 = settings.get('SYNC_STORE')
|
||||||
sync_store.register(fltr)
|
sync_store.register(fltr)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user