lighthouse/beacon_node/beacon_chain/src
Paul Hauner 7458022fcf
Fork choice bug fixes (#449)
* Change reduced tree for adding weightless node

* Add more comments for reduced tree fork choice

* Small refactor on reduced tree for readability

* Move test_harness forking logic into itself

* Add new `AncestorIter` trait to store

* Add unfinished tests to fork choice

* Make `beacon_state.genesis_block_root` public

* Add failing lmd_ghost fork choice tests

* Extend fork_choice tests, create failing test

* Implement Debug for generic ReducedTree

* Add lazy_static to fork choice tests

* Add verify_integrity fn to reduced tree

* Fix bugs in reduced tree

* Ensure all reduced tree tests verify integrity

* Slightly alter reduce tree test params

* Add (failing) reduced tree test

* Fix bug in fork choice

Iter ancestors was not working well with skip slots

* Put maximum depth for common ancestor search

Ensures that we don't search back past the finalized root.

* Add basic finalization tests for reduced tree

* Change fork choice to use beacon_block_root

Previously it was using target_root, which was wrong

* Make ancestor iter return option

* Disable fork choice test when !debug_assertions

* Fix type, removed code fragment

* Tidy some borrow-checker evading

* Lower reduced tree random test iterations
2019-07-29 12:08:52 +10:00
..
beacon_chain.rs Fork choice bug fixes (#449) 2019-07-29 12:08:52 +10:00
checkpoint.rs Implement basic BeaconChain persistence. 2019-05-27 17:58:15 +10:00
errors.rs Fix bugs in fork choice, add more tests 2019-06-24 09:34:56 +10:00
fork_choice.rs Fork choice bug fixes (#449) 2019-07-29 12:08:52 +10:00
lib.rs Remove iter mod from beacon chain 2019-06-24 09:34:53 +10:00
metrics.rs Add attestations per block metric 2019-06-01 15:29:13 +10:00
persisted_beacon_chain.rs op_pool: partial persistence support 2019-07-01 10:55:55 +10:00
test_utils.rs Fork choice bug fixes (#449) 2019-07-29 12:08:52 +10:00