eth2.0-specs/tests/core/config_helpers
protolambda 46be6aed1d
fix config loader to support list inputs
2020-01-13 20:01:42 +01:00
..
preset_loader fix config loader to support list inputs 2020-01-13 20:01:42 +01:00
README.md reorg specs by fork and move ssz out to own folder. make all of the build and link changes to support move 2020-01-10 11:55:13 -07:00
requirements.txt reorg specs by fork and move ssz out to own folder. make all of the build and link changes to support move 2020-01-10 11:55:13 -07:00
setup.py reorg specs by fork and move ssz out to own folder. make all of the build and link changes to support move 2020-01-10 11:55:13 -07:00

README.md

Eth2 config helpers

preset_loader: A util to load config-presets with. See Configs documentation.

Usage:

configs_path = 'configs/'

...

import preset_loader
from eth2spec.phase0 import spec
my_presets = preset_loader.load_presets(configs_path, 'mainnet')
spec.apply_constants_preset(my_presets)

WARNING: this overwrites globals, make sure to prevent accidental collisions with other usage of the same imported specs package.