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

Handle crash on conrtact creation when recipient filter is active

This commit is contained in:
lash 2023-08-13 18:36:20 +01:00
parent 10e16dcb00
commit e176874c30
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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))

View File

@ -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