nimbus-eth2/tests/consensus_spec
Jacek Sieka f19a497eec
ncli_db: add putState, putBlock (#3096)
* ncli_db: add putState, putBlock

These tools allow modifying an existing nimbus database for the purpose
of recovery or reorg, moving the head, tail and genesis to arbitrary
points.

* remove potentially expensive `putState` in `BeaconStateDB`
* introduce `latest_block_root` which computes the root of the latest
applied block from the `latest_block_header` field (instead of passing
it in separately)
* avoid some unnecessary BeaconState copies during init
* discover https://github.com/nim-lang/Nim/issues/19094
* prefer `HashedBeaconState` in a few places to avoid recomputing state
root
* fetch latest block root from state when creating blocks
* harden `get_beacon_proposer_index` against invalid slots and document
* move random spec function tests to `test_spec.nim`
* avoid unnecessary state root computation before block proposal
2021-11-18 13:02:43 +01:00
..
altair ncli_db: add putState, putBlock (#3096) 2021-11-18 13:02:43 +01:00
merge use v1.1.4 test vectors 2021-11-07 21:42:11 +02:00
phase0 refactor executionPayload tests; reduce HashSet creation (#3003) 2021-10-20 13:36:38 +02:00
README.md test fixture cleanups (#2976) 2021-10-12 13:36:52 +02:00
all_tests.nim test fixture cleanups (#2976) 2021-10-12 13:36:52 +02:00
consensus_spec_tests_preset.nim test fixture cleanups (#2976) 2021-10-12 13:36:52 +02:00
fixtures_utils.nim mass/mechanical update of 1.1.4 phase0 and altair spec URLs to 1.1.5 (#3067) 2021-11-09 07:40:41 +00:00
test_fixture_ssz_generic_types.nim better logging on invalid database (#3097) 2021-11-13 17:27:28 +01:00

README.md

Tests based on scenarios generated from the consensus spec.