nimbus-eth2/tests
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
..
fork_choice remove false OnBlockAdded dependency on phase0 HashedBeaconState (#2661) 2021-06-21 08:35:24 +00:00
fuzzing Clarify that the deposit cretion tools are intended for testnets 2021-04-08 19:58:22 +03:00
helpers remove {.inline.} pragmas (#2033) 2020-11-20 11:00:22 +01:00
mocking Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
official Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
simulation Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
slashing_protection add checkDir = true to walkDir() across tests (#2694) 2021-07-02 17:33:59 +00:00
spec_block_processing Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
spec_epoch_processing Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
all_tests.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
all_tests.nim.cfg Rename binaries; Mimic the original repo layout in the distribution 2020-11-09 11:38:52 +02:00
test_attestation_pool.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
test_beacon_chain_db.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
test_beaconstate.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
test_bitseqs.nim fix subnet logic (#2555) 2021-05-11 22:03:40 +02:00
test_block_pool.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
test_datatypes.nim remove false OnBlockAdded dependency on phase0 HashedBeaconState (#2661) 2021-06-21 08:35:24 +00:00
test_discovery.nim remove false OnBlockAdded dependency on phase0 HashedBeaconState (#2661) 2021-06-21 08:35:24 +00:00
test_eth1_monitor.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_exit_pool.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
test_gossip_validation.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
test_helpers.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_honest_validator.nim remove false OnBlockAdded dependency on phase0 HashedBeaconState (#2661) 2021-06-21 08:35:24 +00:00
test_interop.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
test_keystore.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_peer_pool.nim add attestation stats tool to ncli_db (#2539) 2021-05-07 13:36:21 +02:00
test_ssz.nim remove false OnBlockAdded dependency on phase0 HashedBeaconState (#2661) 2021-06-21 08:35:24 +00:00
test_ssz_merkleization.nim Move SSZ, deposit_contracts & eth1_monitor [reorg files 3/5] (#2371) 2021-03-03 07:23:05 +01:00
test_ssz_roundtrip.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_statediff.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
test_sync_manager.nim clean up block processing (#2610) 2021-05-28 19:34:00 +03:00
test_sync_manager.nim.cfg Split Eth2Processor in prep for batching (#2396) 2021-03-11 11:10:57 +01:00
test_zero_signature.nim remove false OnBlockAdded dependency on phase0 HashedBeaconState (#2661) 2021-06-21 08:35:24 +00:00
testblockutil.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
testdbutil.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
teststateutil.nim Implement split preset/config support (#2710) 2021-07-12 15:01:38 +02:00
testutil.nim split state_transition() into slots/block parts and use only block where appropriate (#2630) 2021-06-03 11:42:25 +02:00