Commit Graph

13 Commits

Author SHA1 Message Date
Age Manning
ccaaaffde1 Merge branch 'master' into fork-choices.
This introduces the `Height` type which keeps track of block_height
types.

Further integration into beacon chain with the merge.
2019-02-13 18:04:29 +11:00
Age Manning
4370035448 Integrate ForkChoice into beacon_node. 2019-02-13 16:29:37 +11:00
Age Manning
ef1717312f Remove block_graph from beacon_chain. 2019-02-13 11:38:22 +11:00
Paul Hauner
d2a1000520 Fix clippy lints in beacon_chain 2019-02-13 10:28:38 +11:00
Age Manning
84bf5ecd74 Inact clippy suggestions on beacon_chain. 2019-02-12 22:00:38 +11:00
Age Manning
eae68865d1 Integrate fork choice into beacon_chain.
- Adds fork_choice to beacon_chain struct.
- Adds add_attestation inside process_free_attestation.
- Adds add_block inside process_block.
- Shifts core fork-choice logic into lib.rs.
2019-02-12 21:49:24 +11:00
Paul Hauner
5fefc79521 Update BeaconChain for spec v0.2.0 2019-02-12 13:00:52 +11:00
Age Manning
4723707097 Partially implement optimised lmd ghost.
- Creates fork-choice trait.
- Corrects comment spelling in beacon block.
- Implements helper functions of optimised lmd ghost.
2019-02-11 15:14:56 +11:00
Paul Hauner
85450ec254 Fix all compile errors from new Slot/Epoch types 2019-02-07 11:22:48 +11:00
Paul Hauner
9b1d8cd3c1 Update BeaconChain to use Slot newtype 2019-02-07 10:03:55 +11:00
Age Manning
0972c67d19 Pull basic LMD Ghost into fork choice crate.
- Moves the basic implementation into the fork choice crate.
- Builds the option of fork choices into beacon_struct.
2019-02-05 17:15:15 +11:00
Paul Hauner
d83bafae10 Fix compiler errors from BeaconChain refactor.
I accidentally forgot to include this in the last commit, my bad!
2019-02-05 05:26:47 +11:00
Paul Hauner
c1ed5cd2d8 Refactor beacon_chain.
Moves all the `BeaconChain` impls into the same file that the struct is
defined in.
2019-02-05 05:08:40 +11:00