2019-06-30 12:58:53 +00:00
|
|
|
# Genesis validity testing
|
|
|
|
|
|
|
|
Tests if a genesis state is valid, i.e. if it counts as trigger to launch.
|
|
|
|
|
|
|
|
## Test case format
|
|
|
|
|
2020-10-08 19:02:18 +00:00
|
|
|
### `genesis.ssz_snappy`
|
2019-07-30 12:09:20 +00:00
|
|
|
|
2020-10-08 19:02:18 +00:00
|
|
|
A SSZ-snappy encoded `BeaconState`, the state to validate as genesis candidate.
|
2019-07-30 12:09:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
### `is_valid.yaml`
|
|
|
|
|
|
|
|
A boolean, true if the genesis state is deemed valid as to launch with, false otherwise.
|
|
|
|
|
|
|
|
|
|
|
|
## Processing
|
2019-06-30 12:58:53 +00:00
|
|
|
|
|
|
|
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.
|