Skip to content

Commit 61aefc7

Browse files
committed
not retrying batched eth_getLogs if RPC does not support batch requests. Handled from eth.get_logs wrapper
1 parent dc9532d commit 61aefc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IceCreamSwapWeb3/BatchRetryMiddleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def request_wrapper(method, params):
4141
exponential_retry(f"[batch]{method}")(request_wrapper)(
4242
method,
4343
params,
44-
no_retry=not self._w3.should_retry
44+
no_retry=not self._w3.should_retry or method == "eth_getLogs"
4545
)
4646
for method, params in requests_info
4747
]

0 commit comments

Comments
 (0)