nimbus-eth2/beacon_chain/ssz
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
..
bitseqs.nim fix subnet logic (#2555) 2021-05-11 22:03:40 +02:00
bytes_reader.nim proposed structure for altair (#2323) 2021-05-28 15:25:58 +00:00
dynamic_navigator.nim remove false OnBlockAdded dependency on phase0 HashedBeaconState (#2661) 2021-06-21 08:35:24 +00:00
merkleization.nim bump spec refs from v1.0.0 to v1.0.1 and update copyright years (#2357) 2021-02-25 13:37:22 +00:00
navigator.nim fix broken metrics during replay (#2090) 2020-11-27 23:16:13 +01:00
spec_types.nim EH cleanup (#2455) 2021-03-26 07:52:01 +01:00
ssz_serialization.nim Db1 cont (#2573) 2021-05-17 18:37:26 +02:00
sszdump.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
types.nim Revamp attestation pool 2021-04-13 20:24:02 +03:00