def METHOD_NAME(block: 'Block') -> float:
    """ Calculate block weight according to the ascendents of `block`, using calculate_next_weight."""
    if TEST_MODE & TestMode.TEST_BLOCK_WEIGHT:
        return 1.0
    if block.is_genesis:
        return MIN_BLOCK_WEIGHT
    return calculate_next_weight(block.get_block_parent(), block.timestamp)