Commit Graph

6 Commits

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