Skip to content

Commit

Permalink
feat: override user-configured jsonrpc batch size for tenderly (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 18, 2023
1 parent 59b8b61 commit 9addd70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dank_mids/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def __init__(self, w3: Web3) -> None:

self.endpoint = self.w3.provider.endpoint_uri
self._sort_calls = "tenderly" in self.endpoint or "chainstack" in self.endpoint
if "tenderly" in self.endpoint and ENVS.MAX_JSONRPC_BATCH_SIZE > 10:
logger.info("max jsonrpc batch size for tenderly is 10, overriding existing max")
self.set_batch_size_limit(10)

self._instance: int = sum(len(_instances) for _instances in instances.values())
instances[self.chain_id].append(self) # type: ignore
Expand Down

0 comments on commit 9addd70

Please sign in to comment.