nimbus-eth2/tests
Jacek Sieka 89d6a1b403
Introduce slot->BlockRef mapping for finalized chain (#3144)
* Introduce slot->BlockRef mapping for finalized chain

The finalized chain is linear, thus we can use a seq to lookup blocks by
slot number.

Here, we introduce such a seq, even though in the future, it should
likely be backed by a database structure instead, or, more likely, a
flat era file with a flat lookup index.

This dramatically speeds up requests by slot, such as those coming from
the REST interface or GetBlocksByRange, as these are currently served by
a linear iteration from head.

* fix REST block requests to not return blocks from an earlier slot when
the given slot is empty
* fix StateId interpretation such that it doesn't treat state roots as
block roots
* don't load full block from database just to return its root
2021-12-06 20:52:35 +02:00
..
consensus_spec move quarantine outside of chaindag (#3124) 2021-12-06 10:49:01 +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 ncli_db: add putState, putBlock (#3096) 2021-11-18 13:02:43 +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 v1.1.{5 -> 6} phase 0 and altair spec URL updates (#3157) 2021-12-03 17:40:23 +00:00
spec_epoch_processing Cleanups (#3123) 2021-11-25 13:20:36 +01:00
all_tests.nim move quarantine outside of chaindag (#3124) 2021-12-06 10:49:01 +01:00
all_tests.nim.cfg remove remaining traces of nim-prompt 2021-08-16 21:56:50 +03:00
test_action_tracker.nim register vc duties with subnet tracker (#2949) 2021-10-18 11:11:44 +02:00
test_attestation_pool.nim move quarantine outside of chaindag (#3124) 2021-12-06 10:49:01 +01:00
test_beacon_chain_db.nim ncli_db: add putState, putBlock (#3096) 2021-11-18 13:02:43 +01:00
test_block_processor.nim move quarantine outside of chaindag (#3124) 2021-12-06 10:49:01 +01:00
test_blockchain_dag.nim Introduce slot->BlockRef mapping for finalized chain (#3144) 2021-12-06 20:52:35 +02: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 Switch back to WebSocket URLs in the Eth1Monitor 2021-12-03 17:04:29 +02: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 move quarantine outside of chaindag (#3124) 2021-12-06 10:49:01 +01:00
test_helpers.nim clean up fork enum and field names 2021-10-19 11:06:38 +03: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 document how to run merge local testnet with Nethermind (#3110) 2021-11-17 20:45:39 +01:00
test_message_signatures.nim always use static keys in tests (#2928) 2021-09-30 17:14:03 +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 Cleanups (#3123) 2021-11-25 13:20:36 +01:00
test_sync_manager.nim move quarantine outside of chaindag (#3124) 2021-12-06 10:49:01 +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 cleanups, partly from kintsugi branch (#3161) 2021-12-05 17:32:41 +00: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