lighthouse/beacon_node/beacon_chain/test_harness/examples/chain.yaml

44 lines
1.2 KiB
YAML
Raw Normal View History

title: Validator Registry Tests
summary: Tests deposit and slashing effects on validator registry.
test_suite: validator_registry
fork: tchaikovsky
version: 1.0
test_cases:
- config:
epoch_length: 64
deposits_for_chain_start: 1000
num_slots: 64
skip_slots: [2, 3]
deposits:
- slot: 1
amount: 32
merkle_index: 0
- slot: 3
amount: 32
merkle_index: 1
- slot: 5
amount: 32
merkle_index: 2
proposer_slashings:
# At slot 2, trigger a proposer slashing for validator #42.
- slot: 2
validator_index: 42
# At slot 8, trigger a proposer slashing for validator #13.
- slot: 8
validator_index: 13
attester_slashings:
# At slot 2, trigger an attester slashing for validators #11 and #12.
- slot: 2
validator_indices: [11, 12]
# At slot 5, trigger an attester slashing for validator #14.
- slot: 5
validator_indices: [14]
results:
num_skipped_slots: 2
states:
- slot: 63
num_validators: 1003
slashed_validators: [11, 12, 13, 14, 42]
exited_validators: []