Skip to content

Commit 270b5b4

Browse files
committed
geth supports 1k batched together requests by default, using this as default value to split batches.
1 parent aada329 commit 270b5b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IceCreamSwapWeb3/Web3Advanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(
3838
node_url: str,
3939
should_retry: bool = True,
4040
unstable_blocks: int = int(os.getenv("UNSTABLE_BLOCKS", 5)), # not all nodes might have latest n blocks, these are seen as unstable
41-
rpc_batch_max_size: int = int(os.getenv("RPC_BATCH_MAX_SIZE", 500)), # split batch requests up if they are larger
41+
rpc_batch_max_size: int = int(os.getenv("RPC_BATCH_MAX_SIZE", 1000)), # split batch requests up if they are larger
4242
):
4343
patch_error_formatters()
4444
self.node_url = node_url

0 commit comments

Comments
 (0)