We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eee9dd commit 6ede3ccCopy full SHA for 6ede3cc
IceCreamSwapWeb3/Web3Advanced.py
@@ -1,5 +1,6 @@
1
import os
2
from importlib.resources import files
3
+from time import sleep
4
5
from eth_utils import to_checksum_address
6
from web3 import Web3
@@ -106,7 +107,7 @@ def _find_max_filter_range(self) -> int:
106
107
assert result == []
108
return filter_range
109
except Exception:
- pass
110
+ sleep(0.1)
111
print(f"Can not use eth_getLogs with RPC {self.node_url}")
112
return 0
113
@@ -120,7 +121,7 @@ def _find_max_batch_size(self) -> int:
120
121
assert len(result) == batch_size
122
return batch_size
123
124
125
print(f"Can not use batch requests with RPC {self.node_url}")
126
127
0 commit comments