more keys, more validators, fix import

This commit is contained in:
protolambda 2019-05-17 20:54:34 +02:00
parent 62999d8ded
commit f937dec2a1
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
3 changed files with 5 additions and 7 deletions

View File

@ -6,7 +6,7 @@ from .helpers.genesis import create_genesis_state
from .utils import spectest, with_args
# Provides a genesis state as first argument to the function decorated with this
with_state = with_args(lambda: [create_genesis_state(spec.SLOTS_PER_EPOCH * 8)])
with_state = with_args(lambda: [create_genesis_state(spec.SHARD_COUNT * 2)])
# shorthand for decorating @with_state @spectest()

View File

@ -1,5 +1,6 @@
from py_ecc import bls
from eth2spec.phase0 import spec
privkeys = [i + 1 for i in range(1024)]
privkeys = [i + 1 for i in range(spec.SHARD_COUNT * 8)]
pubkeys = [bls.privtopub(privkey) for privkey in privkeys]
pubkey_to_privkey = {pubkey: privkey for privkey, pubkey in zip(privkeys, pubkeys)}

View File

@ -5,11 +5,8 @@ from eth2spec.phase0.state_transition import (
state_transition,
)
from .context import spec_state_test
from .helpers.state import (
next_epoch,
apply_empty_block
)
from .helpers.block import build_empty_block_for_next_slot
from .helpers.state import next_epoch
from .helpers.block import build_empty_block_for_next_slot, apply_empty_block
from .helpers.attestations import (
fill_aggregate_attestation,
get_current_epoch,