nimbus-eth2/tests
Jacek Sieka 03005f48e1
Backfill support for ChainDAG (#3171)
In the ChainDAG, 3 block pointers are kept: genesis, tail and head. This
PR adds one more block pointer: the backfill block which represents the
block that has been backfilled so far.

When doing a checkpoint sync, a random block is given as starting point
- this is the tail block, and we require that the tail block has a
corresponding state.

When backfilling, we end up with blocks without corresponding states,
hence we cannot use `tail` as a backfill pointer - there is no state.

Nonetheless, we need to keep track of where we are in the backfill
process between restarts, such that we can answer GetBeaconBlocksByRange
requests.

This PR adds the basic support for backfill handling - it needs to be
integrated with backfill sync, and the REST API needs to be adjusted to
take advantage of the new backfilled blocks when responding to certain
requests.

Future work will also enable moving the tail in either direction:
* pruning means moving the tail forward in time and removing states
* backwards means recreating past states from genesis, such that
intermediate states are recreated step by step all the way to the tail -
at that point, tail, genesis and backfill will match up.
* backfilling is done when backfill != genesis - later, this will be the
WSS checkpoint instead
2021-12-13 14:36:06 +01:00
..
consensus_spec Backfill support for ChainDAG (#3171) 2021-12-13 14:36:06 +01:00
fork_choice Fork choice EF consensus tests (#3041) 2021-11-25 19:41:39 +01:00
fuzzing test fixture cleanups (#2976) 2021-10-12 13:36:52 +02:00
helpers Use nim-ssz-serialization module and rm local ssz code 2021-11-10 13:37:24 +02:00
mocking remove disabled incorrect attestation test (#3175) 2021-12-09 14:03:22 +01:00
simulation Remove nimbus_signing_process. 2021-11-30 16:48:36 +02:00
slashing_protection test fixture cleanups (#2976) 2021-10-12 13:36:52 +02:00
spec_block_processing remove disabled incorrect attestation test (#3175) 2021-12-09 14:03:22 +01:00
spec_epoch_processing Cleanups (#3123) 2021-11-25 13:20:36 +01:00
all_tests.nim BlockId reform (#3176) 2021-12-09 19:06:21 +02:00
all_tests.nim.cfg remove remaining traces of nim-prompt 2021-08-16 21:56:50 +03:00
test_action_tracker.nim Backfill support for ChainDAG (#3171) 2021-12-13 14:36:06 +01:00
test_attestation_pool.nim Backfill support for ChainDAG (#3171) 2021-12-13 14:36:06 +01:00
test_beacon_chain_db.nim ncli_db: add putState, putBlock (#3096) 2021-11-18 13:02:43 +01:00
test_block_dag.nim BlockId reform (#3176) 2021-12-09 19:06:21 +02:00
test_block_processor.nim move quarantine outside of chaindag (#3124) 2021-12-06 10:49:01 +01:00
test_blockchain_dag.nim Backfill support for ChainDAG (#3171) 2021-12-13 14:36:06 +01:00
test_datatypes.nim remove false OnBlockAdded dependency on phase0 HashedBeaconState (#2661) 2021-06-21 08:35:24 +00:00
test_discovery.nim odds and ends (#3015) 2021-10-21 15:09:19 +02:00
test_eth1_monitor.nim Backfill support for ChainDAG (#3171) 2021-12-13 14:36:06 +01:00
test_eth2_ssz_serialization.nim cleanups, partly from kintsugi branch (#3161) 2021-12-05 17:32:41 +00:00
test_exit_pool.nim Cleanups (#3123) 2021-11-25 13:20:36 +01:00
test_forks.nim Support starting from altair (#3054) 2021-11-10 13:39:08 +02:00
test_gossip_validation.nim Backfill support for ChainDAG (#3171) 2021-12-13 14:36:06 +01:00
test_helpers.nim import `is_valid_merkle_branch` test cases from `nim-eth` (#3182) 2021-12-10 16:56:26 +01:00
test_honest_validator.nim odds and ends (#3015) 2021-10-21 15:09:19 +02:00
test_interop.nim ncli_db: add putState, putBlock (#3096) 2021-11-18 13:02:43 +01:00
test_keystore.nim unexport various parts of tests/ and remove unused code (#2794) 2021-08-18 13:58:43 +00:00
test_merge_vectors.nim Backfill support for ChainDAG (#3171) 2021-12-13 14:36:06 +01:00
test_message_signatures.nim batch-verify sync messages for a small perf boost (#3151) 2021-12-09 14:56:54 +02:00
test_peer_pool.nim proc -> func in ncli/, research/, and test/ (#2818) 2021-08-25 14:51:52 +00:00
test_spec.nim ncli_db: add putState, putBlock (#3096) 2021-11-18 13:02:43 +01:00
test_statediff.nim update statediffs to work with Altair (#3061) 2021-11-09 16:17:57 +00:00
test_sync_committee_pool.nim batch-verify sync messages for a small perf boost (#3151) 2021-12-09 14:56:54 +02:00
test_sync_manager.nim Backward sync support for SyncManager. (#3131) 2021-12-08 22:15:29 +01: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 update spec references from eth2.0-specs to consensus-specs and to v1.1.0-beta.2 (#2822) 2021-08-26 10:21:52 +02:00
testblockutil.nim batch-verify sync messages for a small perf boost (#3151) 2021-12-09 14:56:54 +02:00
testdbutil.nim Support starting from altair (#3054) 2021-11-10 13:39:08 +02:00
teststateutil.nim ncli_db: add putState, putBlock (#3096) 2021-11-18 13:02:43 +01:00
testutil.nim forkedbeaconstate_helpers -> forks (#2772) 2021-08-10 22:46:35 +02:00