Skip to content

Commit

Permalink
feat: retry on optiscan api failures
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Apr 3, 2023
1 parent 1b2b82a commit 878be07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eth_retry/eth_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ def should_retry(e: Exception, failures: int) -> bool:
# From block explorer while interacting with api. Just retry.
'max rate limit reached',
'please use api key for higher rate limit',
# This one comes from optiscan specifically when you have no key
'Too many invalid api key attempts, please try again later'

# Occurs occasionally on AVAX when node is slow to sync. Just retry.
'after last accepted block',
Expand Down

0 comments on commit 878be07

Please sign in to comment.