scale number of validators in tests based on number of slots
This commit is contained in:
parent
b1874dc18b
commit
7e6a69dfaa
|
@ -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
|
||||
|
|
|
@ -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)}
|
||||
|
||||
|
|
Loading…
Reference in New Issue