Commit Graph

8 Commits

Author SHA1 Message Date
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
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
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
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