mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-09 10:22:00 +00:00
5e902b448a
Co-Authored-By: protolambda <proto@protolambda.com>
509 B
509 B
ETH 2.0 config helpers
preset_loader
: A util to load constants-presets with.
See Constants-presets 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.