eth-monitor

Monitor and cache ethereum transactions with match filters
git clone git://git.defalsify.org/eth-monitor.git
Log | Files | Refs | README | LICENSE

commit a29ae355974c0f3574ee5735cb0270b613ecff6c
parent c99259b2ed28e88681f5c30003af64af1152a6e1
Author: lash <dev@holbrook.no>
Date:   Thu, 17 Aug 2023 13:27:12 +0100

Skip cache rules filter when deactivated

Diffstat:
MCHANGELOG | 1+
Meth_monitor/settings.py | 5++++-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -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 diff --git a/eth_monitor/settings.py b/eth_monitor/settings.py @@ -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)