nimbus-eth2/tests
Jacek Sieka 3f8764ee61
fix replays stalling processing (#2361)
* fix replays stalling processing

Occasionally, attestations will arrive that vote for a target derived
either from the finalized block or earlier. In these cases, Nimbus would
replay the state transition of up to 32 epochs worth of blocks because
the finalized state has been pruned, delaying other processing and
leading to poor inclusion distance.

* put cheap attestation checks before forming EpochRef
* check that attestation target is not from an unviable history with
regards to finalization
* fix overly aggressive state pruning removing the state close to the
finalized checkpoint resulting in rare long replays for valid
attestations
* log long replays
* harden logging and traversal of nil BlockSlot

* simplify target check

no need to lookup target in chain dag again

* fixup

* fixup
2021-03-01 20:50:43 +01:00
..
fork_choice Fork choice - almost free pruning - fix #1534 (#1535) 2020-08-26 17:23:34 +02:00
fuzzing Rename binaries; Mimic the original repo layout in the distribution 2020-11-09 11:38:52 +02:00
helpers remove {.inline.} pragmas (#2033) 2020-11-20 11:00:22 +01:00
mocking remove unused beacon chain spec and test code 2021-02-02 14:56:38 +02:00
official bump spec refs from v1.0.0 to v1.0.1 and update copyright years (#2357) 2021-02-25 13:37:22 +00:00
simulation simplify doppelganger detection to boolean 2021-02-03 20:55:33 +02:00
slashing_protection fix slashing db interchange test compile warnings (#2311) 2021-02-11 13:54:54 +01:00
spec_block_processing bump spec refs from v1.0.0 to v1.0.1 and update copyright years (#2357) 2021-02-25 13:37:22 +00:00
spec_epoch_processing openarray -> openArray 2020-11-03 23:23:10 +02:00
all_tests.nim Slashing protection refactor - EIP 3076 (#2094) 2021-02-09 17:23:06 +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 remove several IntSet usages in lieu of seq[ValidatorIndex] (#2288) 2021-02-08 08:27:30 +01:00
test_beacon_chain_db.nim initial infrastructure for state diffs (#2087) 2021-01-18 22:34:41 +02:00
test_beacon_node.nim Rename binaries; Mimic the original repo layout in the distribution 2020-11-09 11:38:52 +02: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 fix replays stalling processing (#2361) 2021-03-01 20:50:43 +01:00
test_datatypes.nim Address review comments; Add a test 2020-07-12 21:01:31 +03:00
test_eth1_monitor.nim Rewrite all HTTP(S) web3 URLs to WebSocket URls 2020-11-12 22:29:43 +02:00
test_exit_pool.nim Block validation flow v2 + Batch (serial) sig verification (#2250) 2021-01-25 20:45:48 +02:00
test_helpers.nim Generate markdown test reports 2020-03-13 14:38:59 +00:00
test_honest_validator.nim detect already-aggregate-voted condition before attestation pool; add is_aggregator tests (#2170) 2020-12-14 20:58:32 +00:00
test_interop.nim remove v0.12.3 and medalla support (#2038) 2020-11-20 14:49:49 +01:00
test_keystore.nim Fix #1855; Add support for wallet recovery passwords 2020-10-30 23:56:04 +02:00
test_peer_connection.nim more fork-choice fixes (#1388) 2020-07-30 17:48:25 +02:00
test_peer_pool.nim Peer management (#1707) 2020-09-21 18:02:27 +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_ssz_merkleization.nim remove {.inline.} pragmas (#2033) 2020-11-20 11:00:22 +01:00
test_state_transition.nim address some TODOs (#2005) 2020-11-12 19:24:07 +00:00
test_statediff.nim initial infrastructure for state diffs (#2087) 2021-01-18 22:34:41 +02:00
test_sync_manager.nim avoid double deserialization 2020-08-21 11:46:25 +03:00
test_sync_protocol.nim Generate markdown test reports 2020-03-13 14:38:59 +00:00
test_zero_signature.nim performance fixes (#2259) 2021-01-25 13:04:18 +01:00
testblockutil.nim remove some skipBlsValidation usage/handling in tests (#2258) 2021-01-22 14:29:04 +01:00
testutil.nim fix replays stalling processing (#2361) 2021-03-01 20:50:43 +01:00