Skip to content

Commit

Permalink
more filter reset on miss
Browse files Browse the repository at this point in the history
  • Loading branch information
funderbrker committed Jul 15, 2024
1 parent 10cbe06 commit ce34122
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data_access/eth_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1264,10 +1264,10 @@ def safe_get_new_entries(self, filter, get_all=False):
"filter.get_new_entries() (or .get_all_entries()) failed or timed out. Retrying..."
)
time.sleep(1)
# Filters rely on server state and may be arbitrarily uninstalled by server.
# https://github.com/ethereum/web3.py/issues/551
# If we are failing too much recreate the filter.
self._set_filters()
# Filters rely on server state and may be arbitrarily uninstalled by server.
# https://github.com/ethereum/web3.py/issues/551
# If we are failing too much recreate the filter.
self._set_filters()
logging.error("Failed to get new event entries. Passing.")
return []

Expand Down

0 comments on commit ce34122

Please sign in to comment.