Exemplo n.º 1
0
def noproof_consensus_chain(request):
    return api.build(
        MiningChain,
        api.fork_at(request.param, 0),
        api.disable_pow_check(),
        api.genesis(),
    )
Exemplo n.º 2
0
def noproof_consensus_chain(vm_class):
    # This will always have the same vm configuration as the POW chain
    return api.build(
        MiningChain,
        api.fork_at(vm_class, 0),
        api.disable_pow_check(),
        api.genesis(params=dict(gas_limit=100000)),
    )
Exemplo n.º 3
0
def base_chain(request):
    chain = api.build(
        MiningChain,
        request.param(0),
        api.disable_pow_check(),
        api.genesis(),
    )

    return chain
def base_chain(request):
    if request.param is api.homestead_at:
        fork_fns = (request.param(0), api.dao_fork_at(0))
    else:
        fork_fns = (request.param(0),)

    chain = api.build(
        MiningChain,
        *fork_fns,
        api.disable_pow_check(),
        api.genesis(),
    )

    return chain
Exemplo n.º 5
0
def pow_consensus_chain(vm_class):
    return api.build(
        MiningChain,
        api.fork_at(vm_class, 0),
        api.genesis(),
    )
Exemplo n.º 6
0
def pow_consensus_chain(request):
    return api.build(
        MiningChain,
        api.fork_at(request.param, 0),
        api.genesis(),
    )