2019-03-03 00:19:27 +00:00
|
|
|
title: Validator Registry Tests
|
|
|
|
summary: Tests deposit and slashing effects on validator registry.
|
|
|
|
test_suite: validator_registry
|
|
|
|
fork: tchaikovsky
|
2019-02-28 12:13:00 +00:00
|
|
|
version: 1.0
|
|
|
|
test_cases:
|
|
|
|
- config:
|
|
|
|
epoch_length: 64
|
|
|
|
deposits_for_chain_start: 1000
|
2019-03-02 09:17:14 +00:00
|
|
|
num_slots: 64
|
2019-03-01 02:28:07 +00:00
|
|
|
skip_slots: [2, 3]
|
2019-03-01 05:59:55 +00:00
|
|
|
deposits:
|
2019-03-03 00:31:08 +00:00
|
|
|
# At slot 1, create a new validator deposit of 32 ETH.
|
2019-03-01 05:59:55 +00:00
|
|
|
- slot: 1
|
|
|
|
amount: 32
|
2019-03-03 00:31:08 +00:00
|
|
|
# Trigger more deposits...
|
2019-03-01 05:59:55 +00:00
|
|
|
- slot: 3
|
|
|
|
amount: 32
|
|
|
|
- slot: 5
|
|
|
|
amount: 32
|
2019-03-02 00:25:55 +00:00
|
|
|
proposer_slashings:
|
2019-03-02 07:37:21 +00:00
|
|
|
# At slot 2, trigger a proposer slashing for validator #42.
|
|
|
|
- slot: 2
|
|
|
|
validator_index: 42
|
2019-03-03 00:31:08 +00:00
|
|
|
# Trigger another slashing...
|
2019-03-02 07:37:21 +00:00
|
|
|
- slot: 8
|
|
|
|
validator_index: 13
|
2019-02-28 12:13:00 +00:00
|
|
|
attester_slashings:
|
2019-03-02 07:37:21 +00:00
|
|
|
# At slot 2, trigger an attester slashing for validators #11 and #12.
|
2019-03-02 04:28:01 +00:00
|
|
|
- slot: 2
|
|
|
|
validator_indices: [11, 12]
|
2019-03-03 00:31:08 +00:00
|
|
|
# Trigger another slashing...
|
2019-03-02 07:37:21 +00:00
|
|
|
- slot: 5
|
|
|
|
validator_indices: [14]
|
2019-02-28 12:13:00 +00:00
|
|
|
results:
|
2019-03-02 09:17:14 +00:00
|
|
|
num_skipped_slots: 2
|
|
|
|
states:
|
|
|
|
- slot: 63
|
|
|
|
num_validators: 1003
|
2019-03-03 00:19:27 +00:00
|
|
|
slashed_validators: [11, 12, 13, 14, 42]
|
2019-03-02 09:17:14 +00:00
|
|
|
exited_validators: []
|
|
|
|
|