nimbus-eth2/beacon_chain
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
..
consensus_object_pools Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
eth1 Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
fork_choice add blockchain_dag altair database reading; add rollback tests (#2683) 2021-06-29 15:09:29 +00:00
gossip_processing Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
networking Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
rpc Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
spec Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
ssz Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
sync Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
validators Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
.gitignore Rename binaries; Mimic the original repo layout in the distribution 2020-11-09 11:38:52 +02:00
beacon_chain_db.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
beacon_chain_db_immutable.nim make isomorphicCast available outside immutable beacon chain database (#2696) 2021-07-02 17:38:14 +00:00
beacon_clock.nim Implement the new Altair req/resp protocols (#2676) 2021-07-07 12:09:47 +03:00
beacon_node_common.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
beacon_node_status.nim EH cleanup (#2455) 2021-03-26 07:52:01 +01:00
beacon_node_types.nim remove false OnBlockAdded dependency on phase0 HashedBeaconState (#2661) 2021-06-21 08:35:24 +00:00
conf.nim remove false OnBlockAdded dependency on phase0 HashedBeaconState (#2661) 2021-06-21 08:35:24 +00:00
extras.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
filepath.nim EH cleanup (#2455) 2021-03-26 07:52:01 +01:00
interop.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
nimbus_beacon_node.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
nimbus_beacon_node.nim.cfg Drop UseDiscv51 flag and only support discovery v5.1 2020-11-14 19:12:30 +02:00
nimbus_binary_common.nim flush stdout logs (#2669) 2021-06-29 16:53:36 +03:00
nimbus_signing_process.nim singe validator key cache 2021-06-01 20:43:44 +03:00
nimbus_validator_client.nim add blockchain_dag altair database reading; add rollback tests (#2683) 2021-06-29 15:09:29 +00:00
nimbus_validator_client.nim.cfg Rename binaries; Mimic the original repo layout in the distribution 2020-11-09 11:38:52 +02:00
ssz.nim Move SSZ, deposit_contracts & eth1_monitor [reorg files 3/5] (#2371) 2021-03-03 07:23:05 +01:00
statediff.nim write uncompressed validator keys to database (#2639) 2021-06-10 10:37:02 +03:00
statusbar.nim EH cleanup (#2455) 2021-03-26 07:52:01 +01:00
version.nim add version metric (using labels) (#2711) 2021-07-09 07:41:44 +02:00