def geth_to_parity(genesis):
    """Converts a Geth style genesis to Parity style"""
    ret = {'name': 'etheno', 'engine': {'instantSeal': None}, 'genesis': {
        'seal': {'generic': '0x0'}, 'difficulty': '0x%s' % genesis[
        'difficulty'], 'gasLimit': '0x%s' % genesis['gasLimit'], 'author':
        list(genesis['alloc'])[-1]}, 'params': {'networkID': '0x%x' %
        genesis['config']['chainId'], 'maximumExtraDataSize': '0x20',
        'minGasLimit': '0x%s' % genesis['gasLimit'], 'gasLimitBoundDivisor':
        '1', 'eip150Transition': '0x%x' % genesis['config']['eip150Block'],
        'eip160Transition': '0x0', 'eip161abcTransition': '0x0',
        'eip161dTransition': '0x0', 'eip155Transition': '0x%x' % genesis[
        'config']['eip155Block'], 'eip98Transition': '0x7fffffffffffff',
        'maxCodeSize': 24576, 'maxCodeSizeTransition': '0x0',
        'eip140Transition': '0x0', 'eip211Transition': '0x0',
        'eip214Transition': '0x0', 'eip658Transition': '0x0',
        'wasmActivationTransition': '0x0'}, 'accounts': dict(genesis['alloc'])}
    if 'constantinopleBlock' in genesis['config']:
        block = '0x%x' % genesis['config']['constantinopleBlock']
        ret['params']['eip145Transition'] = block
        ret['params']['eip1014Transition'] = block
        ret['params']['eip1052Transition'] = block
    return ret
