diff --git a/dank_mids/ENVIRONMENT_VARIABLES.py b/dank_mids/ENVIRONMENT_VARIABLES.py index 51667b7d..fa24cc1b 100644 --- a/dank_mids/ENVIRONMENT_VARIABLES.py +++ b/dank_mids/ENVIRONMENT_VARIABLES.py @@ -76,8 +76,8 @@ # Validate some stuffs # NOTE: The other modes are (probably) bugging out right now. More investigation needed. For now you use infura mode. -if not OPERATION_MODE.infura: - raise ValueError("Dank mids must be run in infura mode for now") +#if not OPERATION_MODE.infura: +# raise ValueError("Dank mids must be run in infura mode for now") if OPERATION_MODE.infura: for process_pool in {MULTICALL_DECODER_PROCESSES, BROWNIE_DECODER_PROCESSES, BROWNIE_ENCODER_PROCESSES}: diff --git a/dank_mids/controller.py b/dank_mids/controller.py index ca933012..4b3c2977 100644 --- a/dank_mids/controller.py +++ b/dank_mids/controller.py @@ -132,6 +132,8 @@ def reduce_batch_size(self, num_calls: int) -> None: def _reduce_chunk_size(self, num_calls: int, chunk_name: Literal["multicall", "jsonrpc"]) -> None: new_chunk_size = round(num_calls * 0.99) if num_calls >= 100 else num_calls - 1 + # TODO: remove this later + logger.info('potential new %s batch size %s', chunk_name, new_chunk_size) if new_chunk_size < 30: logger.warning(f"your {chunk_name} batch size is really low, did you have some connection issue earlier? You might want to restart your script. {chunk_name} chunk size will not be further lowered.") return