nimbus-eth2/tests/mocking
Jacek Sieka abe0d7b4ae singe validator key cache
Instead of keeping a validator key list per EpochRef, this PR introduces
a single shared validator key list in ChainDAG, and cleans up some other
ChainDAG and key-related issues.

The PR does not introduce the validator key list in the state transition
- this is because we batch-check all signatures before entering the spec
code, thus the spec code never hits the cache.

A future refactor should _probably_ remove the threadvar altogether.

There's a few other small fixes in here that make the flow easier to
read:

* fix `var ChainDAGRef` -> `ChainDAGRef`
* fix `var QuarantineRef` -> `QuarantineRef`
* consistent `dag` variable name
* avoid using threadvar pubkey cache in most cases
* better error messages in batch signature checking
2021-06-01 20:43:44 +03:00
..
mock_attestations.nim remove attestation/aggregate queue (#2519) 2021-04-26 22:39:44 +02:00
mock_blocks.nim remove attestation/aggregate queue (#2519) 2021-04-26 22:39:44 +02:00
mock_deposits.nim remove attestation/aggregate queue (#2519) 2021-04-26 22:39:44 +02:00
mock_genesis.nim Merge devel and resolve conflicts 2020-07-10 02:02:40 +03:00
mock_state.nim add attestation stats tool to ncli_db (#2539) 2021-05-07 13:36:21 +02:00
mock_validator_keys.nim singe validator key cache 2021-06-01 20:43:44 +03:00