nimbus-eth2/scripts
Jacek Sieka 23eea197f6
Implement split preset/config support (#2710)
* Implement split preset/config support

This is the initial bulk refactor to introduce runtime config values in
a number of places, somewhat replacing the existing mechanism of loading
network metadata.

It still needs more work, this is the initial refactor that introduces
runtime configuration in some of the places that need it.

The PR changes the way presets and constants work, to match the spec. In
particular, a "preset" now refers to the compile-time configuration
while a "cfg" or "RuntimeConfig" is the dynamic part.

A single binary can support either mainnet or minimal, but not both.
Support for other presets has been removed completely (can be readded,
in case there's need).

There's a number of outstanding tasks:

* `SECONDS_PER_SLOT` still needs fixing
* loading custom runtime configs needs redoing
* checking constants against YAML file

* yeerongpilly support

`build/nimbus_beacon_node --network=yeerongpilly --discv5:no --log-level=DEBUG`

* load fork epoch from config

* fix fork digest sent in status
* nicer error string for request failures
* fix tools

* one more

* fixup

* fixup

* fixup

* use "standard" network definition folder in local testnet

Files are loaded from their standard locations, including genesis etc,
to conform to the format used in the `eth2-networks` repo.

* fix launch scripts, allow unknown config values

* fix base config of rest test

* cleanups

* bundle mainnet config using common loader
* fix spec links and names
* only include supported preset in binary

* drop yeerongpilly, add altair-devnet-0, support boot_enr.yaml
2021-07-12 15:01:38 +02:00
..
compile_nim_program.sh Merge stable into unstable 2021-05-20 13:50:40 +03:00
copyfile.sh scripts: make shebang more portable (#2216) 2021-01-08 11:29:43 +01:00
depositContract.v.py Fixed deposit/contract 2019-11-07 17:23:06 +00:00
launch_local_testnet.sh Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
load-testnet-nim-flags.sh run logtrace in finalization CI (#1512) 2020-08-17 08:36:29 +02:00
make_dist.sh Merge stable into unstable 2021-05-20 13:50:40 +03:00
make_prometheus_config.sh scripts: make shebang more portable (#2216) 2021-01-08 11:29:43 +01:00
makedir.sh scripts: make shebang more portable (#2216) 2021-01-08 11:29:43 +01:00
print_version.nims dist: add version and book (#1965) 2020-11-06 17:26:03 +01:00
reset_testnet.sh Remove some unused parameters (part 2) 2021-04-14 21:49:42 +03:00
reset_testnet0.sh Helpful scripts for resetting the testnets 2019-03-19 21:50:22 +02:00
reset_testnet1.sh Helpful scripts for resetting the testnets 2019-03-19 21:50:22 +02:00
rotatelogs-compress.sh Document log rotation (#2327) 2021-02-18 07:57:41 +01:00
run-beacon-node.sh run-beacon-node.sh: handle "--web3-url=..." properly 2021-04-14 16:08:54 +03:00
run-catalyst.sh update ChainDAG.effective_balance() to use StateData; rm ChainDAG.getBlockByPreciseSlot() (#2622) 2021-06-01 12:40:13 +00:00
run_fuzzing_test.nims Add a fuzzing test for the beacon node CLI parser 2020-10-02 12:42:32 +03:00
run_ssz_fuzzing_test.nims last few v1.0.0 spec refs to v1.0.1 (#2404) 2021-03-13 20:51:39 +00:00
setup_official_tests.sh Slashing protection refactor - EIP 3076 (#2094) 2021-02-09 17:23:06 +02:00
slowlogs.py script for finding slow logs 2021-03-30 09:39:16 +02:00
testnet0.env Reduce the number of validators to their older values (before this branch) 2020-06-11 17:40:08 +03:00
testnet1.env Reduce the number of validators to their older values (before this branch) 2020-06-11 17:40:08 +03:00