nimbus-eth2/tests
Jacek Sieka ee79c10a7d
update validator key cache on startup (#2760)
* update validator key cache on startup

Versions prior to 1.1.0 do not write a validator key cache at all.

Versions from 1.4.0 and upwards require an immutable validator key cache
to verify blocks - normally, block verification fills the cache but that
assumes that at least one block was verified by a version that has the
key cache.

Taken together, this breaks direct upgrades from anything <1.1.0 to
1.4.0.

The fix is simply to refresh fill the cache from an existing state on
startup.

* also log serious block validation failures at info level
2021-08-05 11:26:10 +03:00
..
fork_choice Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
fuzzing Clarify that the deposit cretion tools are intended for testnets 2021-04-08 19:58:22 +03:00
helpers remove {.inline.} pragmas (#2033) 2020-11-20 11:00:22 +01:00
mocking singe validator key cache 2021-06-01 20:43:44 +03:00
official Altair transition tests (#2624) 2021-06-04 10:38:00 +00:00
simulation Allow the custom testnet metadata to specify a path to the genesis file 2021-06-01 15:50:50 +03:00
slashing_protection Slashing db pruning [Merge only after v2 has been default for 1 noticeable release] (#2452) 2021-05-10 16:32:28 +02:00
spec_block_processing Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
spec_epoch_processing proposed structure for altair (#2323) 2021-05-28 15:25:58 +00:00
all_tests.nim Altair transition tests (#2624) 2021-06-04 10:38:00 +00: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 singe validator key cache 2021-06-01 20:43:44 +03:00
test_beacon_chain_db.nim Db1 cont (#2573) 2021-05-17 18:37:26 +02:00
test_beaconstate.nim rename initialize_beacon_state to initialize_beacon_state_from_eth1 (#2536) 2021-05-04 12:19:11 +02:00
test_bitseqs.nim fix subnet logic (#2555) 2021-05-11 22:03:40 +02:00
test_block_pool.nim update validator key cache on startup (#2760) 2021-08-05 11:26:10 +03:00
test_datatypes.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_discovery.nim Remove no longer needed raw Exception raises for queryRandom (#2633) 2021-06-08 22:23:19 +02:00
test_eth1_monitor.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_exit_pool.nim singe validator key cache 2021-06-01 20:43:44 +03:00
test_gossip_validation.nim singe validator key cache 2021-06-01 20:43:44 +03:00
test_helpers.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_honest_validator.nim Perform attestation check before broadcast (#2550) 2021-05-10 09:13:36 +02:00
test_interop.nim singe validator key cache 2021-06-01 20:43:44 +03:00
test_keystore.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_peer_pool.nim add attestation stats tool to ncli_db (#2539) 2021-05-07 13:36:21 +02:00
test_ssz.nim Db1 cont (#2573) 2021-05-17 18:37:26 +02:00
test_ssz_merkleization.nim Move SSZ, deposit_contracts & eth1_monitor [reorg files 3/5] (#2371) 2021-03-03 07:23:05 +01:00
test_ssz_roundtrip.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_statediff.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_sync_manager.nim clean up block processing (#2610) 2021-05-28 19:34:00 +03: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 Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
testblockutil.nim singe validator key cache 2021-06-01 20:43:44 +03:00
testdbutil.nim Db1 cont (#2573) 2021-05-17 18:37:26 +02:00
teststateutil.nim add attestation stats tool to ncli_db (#2539) 2021-05-07 13:36:21 +02:00
testutil.nim split state_transition() into slots/block parts and use only block where appropriate (#2630) 2021-06-03 11:42:25 +02:00