lighthouse/beacon_node/store/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
..
impls Run rustfmt 2019-06-07 02:55:43 -04:00
block_at_slot.rs Fix lots of typos. 2019-07-26 15:26:06 -04:00
disk_db.rs Fix lots of typos. 2019-07-26 15:26:06 -04:00
errors.rs Rename db crate to store 2019-05-21 18:20:23 +10:00
impls.rs Store beacon state committee cache in DB 2019-06-04 13:13:58 +10:00
iter.rs Fork choice bug fixes (#449) 2019-07-29 12:08:52 +10:00
leveldb_store.rs Tidy beacon node runtime code 2019-06-08 09:46:04 -04:00
lib.rs Fix lots of typos. 2019-07-26 15:26:06 -04:00
memory_store.rs Tidy beacon node runtime code 2019-06-08 09:46:04 -04:00
store.rs Fix lots of typos. 2019-07-26 15:26:06 -04:00