eth2.0-specs/tests/formats/genesis/validity.md

33 lines
708 B
Markdown
Raw Normal View History

# Genesis validity testing
Tests if a genesis state is valid, i.e. if it counts as trigger to launch.
## Test case format
2021-03-15 16:38:30 +00:00
### `meta.yaml`
A yaml file to help read the deposit count:
```yaml
description: string -- Optional. Description of test case, purely for debugging purposes.
```
2020-10-08 19:02:18 +00:00
### `genesis.ssz_snappy`
2021-03-13 04:42:51 +00:00
An SSZ-snappy encoded `BeaconState`, the state to validate as genesis candidate.
### `is_valid.yaml`
A boolean, true if the genesis state is deemed valid as to launch with, false otherwise.
## Processing
To process the data, call `is_valid_genesis_state(genesis)`.
## Condition
The result of calling `is_valid_genesis_state(genesis)` should match the expected `is_valid` boolean.