scale number of validators in tests based on number of slots

This commit is contained in:
Danny Ryan 2019-04-24 12:31:27 -06:00
parent b1874dc18b
commit 7e6a69dfaa
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
2 changed files with 3 additions and 3 deletions

View File

@ -22,8 +22,8 @@ def config(request):
@pytest.fixture
def num_validators():
return 100
def num_validators(config):
return spec.SLOTS_PER_EPOCH * 8
@pytest.fixture

View File

@ -48,7 +48,7 @@ from eth2spec.utils.merkle_minimal import (
)
privkeys = [i + 1 for i in range(1000)]
privkeys = [i + 1 for i in range(1024)]
pubkeys = [bls.privtopub(privkey) for privkey in privkeys]
pubkey_to_privkey = {pubkey: privkey for privkey, pubkey in zip(privkeys, pubkeys)}