mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-17 13:06:34 +00:00
update new-feature doc
This commit is contained in:
parent
67279448be
commit
f0c900282e
@ -70,24 +70,7 @@ You can refer to the previous fork's `fork.md` file.
|
|||||||
- Update configs: `configs/mainnet.yaml` and `configs/minimal.yaml`
|
- Update configs: `configs/mainnet.yaml` and `configs/minimal.yaml`
|
||||||
|
|
||||||
### 3. Update [`context.py`](https://github.com/ethereum/consensus-specs/blob/dev/tests/core/pyspec/eth2spec/test/context.py)
|
### 3. Update [`context.py`](https://github.com/ethereum/consensus-specs/blob/dev/tests/core/pyspec/eth2spec/test/context.py)
|
||||||
- Update `spec_targets` by adding `<NEW_FEATURE>`
|
- [Optional] Add `with_<new-feature-name>_and_later` decorator for writing pytest cases. e.g., `with_capella_and_later`.
|
||||||
|
|
||||||
```python
|
|
||||||
from eth2spec.eip9999 import mainnet as spec_eip9999_mainnet, minimal as spec_eip9999_minimal
|
|
||||||
|
|
||||||
...
|
|
||||||
|
|
||||||
spec_targets: Dict[PresetBaseName, Dict[SpecForkName, Spec]] = {
|
|
||||||
MINIMAL: {
|
|
||||||
...
|
|
||||||
EIP9999: spec_eip9999_minimal,
|
|
||||||
},
|
|
||||||
MAINNET: {
|
|
||||||
...
|
|
||||||
EIP9999: spec_eip9999_mainnet
|
|
||||||
},
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 4. Update [`constants.py`](https://github.com/ethereum/consensus-specs/blob/dev/tests/core/pyspec/eth2spec/test/helpers/constants.py)
|
### 4. Update [`constants.py`](https://github.com/ethereum/consensus-specs/blob/dev/tests/core/pyspec/eth2spec/test/helpers/constants.py)
|
||||||
- Add `<NEW_FEATURE>` to `ALL_PHASES` and `TESTGEN_FORKS`
|
- Add `<NEW_FEATURE>` to `ALL_PHASES` and `TESTGEN_FORKS`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user