Commit Graph

10 Commits

Author SHA1 Message Date
Age Manning
4370035448
Integrate ForkChoice into beacon_node. 2019-02-13 16:29:37 +11:00
Age Manning
c4c1e5647e
Update original lmd-ghost begin intergration. 2019-02-13 14:49:57 +11:00
Age Manning
ef1717312f
Remove block_graph from beacon_chain. 2019-02-13 11:38:22 +11:00
Age Manning
03a5a892d0
Ensure latest attestations are considered only. 2019-02-13 10:34:56 +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
fb270a5a41
Implements add_block, shifts out constants. 2019-02-12 18:47:55 +11:00
Age Manning
405b3ff6c1
Add first implementation of optimised LMD ghost.
- Implements the optimised lmd-ghost fork choice rule.
- Removes Attestations struct.
- Removes latest_attestation_targets from beacon_chain.
2019-02-12 11:49:39 +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
Age Manning
8109fad7bf
Create the fork-choice crate.
- Adds the naive fork choice (longest chain) rule.
- Adds basic documentation for the crate.
2019-02-05 15:55:29 +11:00