lighthouse/beacon_node/beacon_chain/tests
Paul Hauner 619ad106cf Restrict fork choice getters to finalized blocks (#1475)
## Issue Addressed

- Resolves #1451

## Proposed Changes

- Restricts the `contains_block` and `contains_block` so they only indicate a block is present if it descends from the finalized root. This helps to ensure that fork choice never points to a block that has been pruned from the database.
- Resolves #1451
- Before importing a block, double-check that its parent is known and a descendant of the finalized root.
- Split a big, monolithic block verification test into smaller tests. 

## Additional Notes

I suspect there would be a craftier way to do the `is_descendant_of_finalized` check, but we're a bit tight on time now and we can optimize later if it starts showing in benches.

## TODO

- [x] Tests
2020-08-14 06:36:38 +00:00
..
attestation_production.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
attestation_verification.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
block_verification.rs Restrict fork choice getters to finalized blocks (#1475) 2020-08-14 06:36:38 +00:00
op_verification.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
persistence_tests.rs Merge remote-tracking branch 'origin/master' into spec-v0.12 2020-06-17 12:34:11 +10:00
store_tests.rs Fix a bug in fork pruning (#1507) 2020-08-12 07:00:00 +00:00
tests.rs Process exits and slashings off the network (#1253) 2020-06-18 21:06:34 +10:00