Ejemplo n.º 1
0
    def __init__(self, start_block, end_block, zilliqa_api, max_workers,
                 item_exporter):
        validate_range(start_block, end_block)
        self.start_block = start_block
        self.end_block = end_block

        self.batch_work_executor = BatchWorkExecutor(
            1, max_workers, retry_exceptions=RETRY_EXCEPTIONS)
        self.item_exporter = item_exporter

        self.zilliqa_service = ZilliqaService(zilliqa_api)
 def __init__(self, zilliqa_api):
     self._zilliqa_service = ZilliqaService(zilliqa_api)