Commit Graph

6150 Commits

Author SHA1 Message Date
Age Manning
cb9f24224d
Use Height struct in optimised_lmd_ghost. 2019-02-13 18:31:20 +11:00
Age Manning
b2cda28835
Fix small bug. 2019-02-13 18:25:31 +11:00
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
Paul Hauner
c228178aa9
Fix cargo fmt cmd in travis.yml 2019-02-13 17:20:13 +11:00
Age Manning
4370035448
Integrate ForkChoice into beacon_node. 2019-02-13 16:29:37 +11:00
Paul Hauner
433345e6e7
Update travis.yml to fix SSH permission denied.
For more info: https://stackoverflow.com/questions/15674064/how-to-fix-a-permission-denied-publickey-error-for-a-git-submodule-update-in-t
2019-02-13 16:20:24 +11:00
Paul Hauner
122bdb3c0b
Update travis to test all components 2019-02-13 16:16:41 +11:00
Paul Hauner
0e85b1a167
Add submodules 2019-02-13 16:09:42 +11:00
Paul Hauner
0c3b74090d
Fix typos 2019-02-13 16:08:31 +11:00
Paul Hauner
1b2fcde047
Fix typo 2019-02-13 16:06:41 +11:00
Paul Hauner
c1ec46ef85
First pass of docs update 2019-02-13 16:04:10 +11:00
Age Manning
c4c1e5647e
Update original lmd-ghost begin intergration. 2019-02-13 14:49:57 +11:00
Paul Hauner
1d5ff4359a
Strip out old code
All of these files have been moved to either:

- https://github.com/sigp/lighthouse-beacon
- https://github.com/sigp/lighthouse-validator
- https://github.com/sigp/lighthouse-common

For rationale, see: https://github.com/sigp/lighthouse/issues/197
2019-02-13 14:15:53 +11:00
Age Manning
ef1717312f
Remove block_graph from beacon_chain. 2019-02-13 11:38:22 +11:00
Age Manning
e4f6fe047d
Merge pull request #192 from sigp/v0.2.0-spec
Impl v0.2.0-spec for Codebase
2019-02-13 10:42:50 +11:00
Age Manning
03a5a892d0
Ensure latest attestations are considered only. 2019-02-13 10:34:56 +11:00
Paul Hauner
492d4749d7
Fix clippy lint 2019-02-13 10:32:56 +11:00
Paul Hauner
722a157367
Silence clippy lints from generated protos 2019-02-13 10:29:09 +11:00
Paul Hauner
683147035b
Fix clippy lints in block and epoch processing 2019-02-13 10:28:57 +11:00
Paul Hauner
d2a1000520
Fix clippy lints in beacon_chain 2019-02-13 10:28:38 +11:00
Paul Hauner
61bbbab33d
Fix clippy lints in lmd_ghost 2019-02-13 09:27:09 +11:00
Paul Hauner
4824b43808
Fix various clippy lints 2019-02-13 07:46:59 +11:00
Paul Hauner
05ed778ccc
Remove unused var from block_producer
It was made redundant when `proposer_slots` was removed.
2019-02-13 07:39:00 +11:00
Paul Hauner
5c1d0dcea5
Fix various clippy lints 2019-02-13 07:32:31 +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
fb270a5a41
Implements add_block, shifts out constants. 2019-02-12 18:47:55 +11:00
Paul Hauner
5039001eba
Rename file to resolve clippy lint
Lint was "module inception"
2019-02-12 17:20:58 +11:00
Paul Hauner
606d927a84
Update validator_client for spec v0.2.0 2019-02-12 17:00:51 +11:00
Paul Hauner
fef22c31be
Update block_producer to spec v0.2.0 2019-02-12 17:00:10 +11:00
Paul Hauner
9b14742e36
Update beacon_node bin to spec v0.2.0 2019-02-12 16:58:31 +11:00
Paul Hauner
12076bce76
Update test_harness to spec v0.2.0 2019-02-12 16:57:47 +11:00
Paul Hauner
5fefc79521
Update BeaconChain for spec v0.2.0 2019-02-12 13:00:52 +11:00
Paul Hauner
36f441c968
Replace genesis crate with on-type defs
The methods in the `gensis` crate have been moved to `genesis` methods
on `BeaconState` and `BeaconBlock`.
2019-02-12 13:00:35 +11:00
Paul Hauner
5e37e8a33a
Update validator_client for spec v0.2.0 2019-02-12 12:57:17 +11:00
Paul Hauner
cb97870c15
Add genesis() function to BeaconBlock 2019-02-12 11:57:34 +11:00
Paul Hauner
f27308e377
Tidy old comments 2019-02-12 11:57:20 +11:00
Paul Hauner
3b75e93122
Add genesis() to BeaconState 2019-02-12 11:54:02 +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
Paul Hauner
f3e556bca3
Remove validator_induction crate 2019-02-12 09:02:26 +11:00
Paul Hauner
ff2025ec5c
Update epoch processing to v0.2.0 2019-02-12 08:58:20 +11:00
Paul Hauner
c1f8c85ce9
Add un-finished, uncompiling state_processing 2019-02-11 17:25:23 +11:00
Paul Hauner
03e84a63ec
Tidy BeaconState 2019-02-11 17:24:56 +11:00
Paul Hauner
75a9e0f3de
Add verify_signature() to Attestation 2019-02-11 17:24:32 +11:00
Paul Hauner
25ae0f64c2
Tidy, fix & extend BeaconState impls. 2019-02-11 16:32:55 +11:00
Paul Hauner
d7f8c60f93
Fix un-annotated test in types crate 2019-02-11 16:31:33 +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
a13dd0d871
Update types defs, move processing out.
- Update `types` to v0.2.0 spec (not all functions upgraded too).
- Move slot/block/epoch processing out to a separate crate (not included
yet, it doesn't compile)
2019-02-11 14:02:59 +11:00
Paul Hauner
72363fd56d
Merge pull request #176 from sigp/jenkins-setup
Jenkins setup
2019-02-11 07:56:35 +11:00
Luke Anderson
f5dae6c31a
Updated permissions on /cargocache in Dockerfile, again. 2019-02-07 23:22:39 +11:00