def get_block_range(tempdir, date, provider_uri): logging.info('Calling get_block_range_for_date({}, {}, ...)'.format(provider_uri, date)) get_block_range_for_date.callback( provider_uri=provider_uri, date=date, output=os.path.join(tempdir, "blocks_meta.txt") ) with open(os.path.join(tempdir, "blocks_meta.txt")) as block_range_file: block_range = block_range_file.read() start_block, end_block = block_range.split(",") return int(start_block), int(end_block)
def get_block_range(tempdir, date): get_block_range_for_date.callback(provider_uri=web3_provider_uri, date=date, output=os.path.join( tempdir, "blocks_meta.txt")) with open(os.path.join(tempdir, "blocks_meta.txt")) as block_range_file: block_range = block_range_file.read() start_block, end_block = block_range.split(",") return int(start_block), int(end_block)