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 e176874c30605d92fc72d2cfefd74342fd8bfaa1
parent 10e16dcb00333869d1e22999a6c782f8c04dfa7e
Author: lash <dev@holbrook.no>
Date:   Sun, 13 Aug 2023 18:36:20 +0100

Handle crash on conrtact creation when recipient filter is active

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

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,5 @@ +- 0.8.6 + * Handle crash on conrtact creation when recipient filter is active - 0.8.5 * Instantiate constructor for chain interface superclass * Remove unused settings transform method for sync interface diff --git a/eth_monitor/rules.py b/eth_monitor/rules.py @@ -85,6 +85,8 @@ class RuleSimple: if rule != None and is_same_address(sender, rule): logg.debug('tx {} rule {} match in SENDER {}'.format(tx_hash, self.description, sender)) return True + if recipient == None: + return False for rule in self.inputs: if rule != None and is_same_address(recipient, rule): logg.debug('tx {} rule {} match in RECIPIENT {}'.format(tx_hash, self.description, recipient)) diff --git a/setup.cfg b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = eth-monitor -version = 0.8.5 +version = 0.8.6 description = Monitor and cache transactions using match filters author = Louis Holbrook author_email = dev@holbrook.no