lighthouse/beacon_node/beacon_chain/tests
Michael Sproul 10945e0619 Revert bad blocks on missed fork (#2529)
## Issue Addressed

Closes #2526

## Proposed Changes

If the head block fails to decode on start up, do two things:

1. Revert all blocks between the head and the most recent hard fork (to `fork_slot - 1`).
2. Reset fork choice so that it contains the new head, and all blocks back to the new head's finalized checkpoint.

## Additional Info

I tweaked some of the beacon chain test harness stuff in order to make it generic enough to test with a non-zero slot clock on start-up. In the process I consolidated all the various `new_` methods into a single generic one which will hopefully serve all future uses 🤞
2021-08-30 06:41:31 +00:00
..
attestation_production.rs Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
attestation_verification.rs Revert bad blocks on missed fork (#2529) 2021-08-30 06:41:31 +00:00
block_verification.rs Revert bad blocks on missed fork (#2529) 2021-08-30 06:41:31 +00:00
op_verification.rs Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
store_tests.rs Revert bad blocks on missed fork (#2529) 2021-08-30 06:41:31 +00:00
sync_committee_verification.rs Update to spec v1.1.0-beta.1 (#2460) 2021-07-27 05:43:35 +00:00
tests.rs [Altair] Sync committee pools (#2321) 2021-07-15 00:52:02 +00:00