nimbus-eth2/tests
Jacek Sieka 157ddd2ac4
Fork choice fixes 5 (#1381)
* limit attestations kept in attestation pool

With fork choice updated, the attestation pool only needs to keep track
of attestations that will eventually end up in blocks - we can thus
limit the horizon of attestations that we keep more aggressively.

To get here, we expose getEpochRef which gets metadata about a
particular epochref, and make sure to populate it when a block is added
- this ensures that state rewinds during block addition are minimized.

In addition, we'll use the target root/epoch when validating
attestations - this helps minimize the number of different states that
we need to rewind to, in general.

* remove CandidateChains.justifiedState

unused

* remove BlockPools.Head object

* avoid quadratic quarantine loop

* fix
2020-07-28 13:54:32 +00:00
..
fork_choice Use fork v2 (#1358) 2020-07-25 21:41:12 +02:00
fuzzing Local sim now includes a prometheus server, a Ganache instance and a simulation dashboard server (in Tmux mode) 2020-06-22 17:30:04 +03:00
helpers implement aggregated attestation receiving/validating (#1272) 2020-07-02 16:15:27 +00:00
mocking Prefer converting int` to uint64 and switch foo.len.uint64 to .len64 (#1375) 2020-07-26 20:55:48 +02:00
official v0.12.2 beacon chain protocol update (#1378) 2020-07-27 12:59:57 +02:00
simulation Non-interactive generation of keystores in the local sim 2020-07-28 07:36:25 +03:00
spec_block_processing update 111 v0.12.1 beacon chain spec refs to v0.12.2 (#1380) 2020-07-27 18:49:46 +02:00
spec_epoch_processing spec cleanups (#1379) 2020-07-27 16:04:44 +00:00
all_tests.nim Address review comments; Add a test 2020-07-12 21:01:31 +03:00
all_tests.nim.cfg Use only secp256k1 as identity in libp2p. (#1343) 2020-07-21 18:07:14 +02:00
test_attestation_pool.nim Fork choice fixes 5 (#1381) 2020-07-28 13:54:32 +00:00
test_beacon_chain_db.nim cache block hash (#1329) 2020-07-16 15:16:51 +02:00
test_beacon_node.nim Generate markdown test reports 2020-03-13 14:38:59 +00:00
test_beaconstate.nim Prefer converting int` to uint64 and switch foo.len.uint64 to .len64 (#1375) 2020-07-26 20:55:48 +02:00
test_bitseqs.nim reorder ssz (#1099) 2020-06-03 15:52:02 +02:00
test_block_pool.nim Fork choice fixes 5 (#1381) 2020-07-28 13:54:32 +00:00
test_datatypes.nim Address review comments; Add a test 2020-07-12 21:01:31 +03:00
test_helpers.nim Generate markdown test reports 2020-03-13 14:38:59 +00:00
test_honest_validator.nim remove v0.11.3 support; add block_sim to CI (#1253) 2020-06-29 18:08:58 +00:00
test_interop.nim Working test suite with run-time presets 2020-07-08 02:02:14 +03:00
test_keystore.nim Crypto rng (#1284) 2020-07-07 17:51:02 +02:00
test_mainchain_monitor.nim bump submodules 2020-07-14 03:01:23 +02:00
test_mocking.nim refactor some Merkle proof generation code outside tests; remove unused variables/functions 2020-04-15 09:59:49 +00:00
test_peer_connection.nim Address some TODO items; Handle start-up before genesis more properly 2020-06-11 17:40:08 +03:00
test_peer_pool.nim Fix PeerPool issue with peers overflow maxPeers setting. (#1285) 2020-07-07 11:49:08 +02:00
test_ssz.nim Prefer converting int` to uint64 and switch foo.len.uint64 to .len64 (#1375) 2020-07-26 20:55:48 +02:00
test_state_transition.nim Prefer converting int` to uint64 and switch foo.len.uint64 to .len64 (#1375) 2020-07-26 20:55:48 +02:00
test_sync_manager.nim Fix #1153. (#1160) 2020-06-11 16:20:53 +02:00
test_sync_protocol.nim Generate markdown test reports 2020-03-13 14:38:59 +00:00
test_zero_signature.nim Generate markdown test reports 2020-03-13 14:38:59 +00:00
testblockutil.nim v0.12.2 beacon chain protocol update (#1378) 2020-07-27 12:59:57 +02:00
testutil.nim Restore compilation with custom presets (#1309) 2020-07-13 16:44:58 +02:00