Commit Graph

2632 Commits

Author SHA1 Message Date
Paul Hauner
ec4a658fe7
Add beacon state test builder, tidy errors 2019-02-15 16:12:24 +11:00
Paul Hauner
b15ee17fed
Merge pull request #225 from sigp/permutated-index
Add get_permutated_index
2019-02-15 15:32:28 +11:00
Paul Hauner
c632edcf17
Merge pull request #228 from sigp/fork-choice
Fork choice longest chain update.
2019-02-15 15:04:43 +11:00
Age Manning
e06c4796e4
Import Slot directly from types in fork-choice. 2019-02-15 14:21:33 +11:00
Age Manning
94c8784523
Remove Slow LMD Ghost from test harness. 2019-02-15 14:17:22 +11:00
Age Manning
b16ac40fd5
Add tests to SlotHeight. 2019-02-15 14:16:45 +11:00
Kirk Baird
977f3edfb6
Add domain to all signature funcitons, modify validate_proof_of_possession() 2019-02-15 13:58:14 +11:00
Age Manning
5031ee5505
Remove comments from fork choice. 2019-02-15 13:32:37 +11:00
Age Manning
2cab2952a8
Removes duplication of macros in types. 2019-02-15 13:29:09 +11:00
Paul Hauner
af1d44e8b0
Add shuffling to fuzzer, fixing a bug
We were being to strict on list length, it can be 2**24 as all index's
will need to be less than that.
2019-02-15 12:58:14 +11:00
Paul Hauner
210ec89b0b
Replace ssz_encode with int_to_bytes32
Only in the relevant places I can think of.. I might have missed some.
2019-02-15 12:21:19 +11:00
Paul Hauner
fc04286ae6
Use int_to_bytes in swap or not.
I also fixed an error I found through strict typing.
2019-02-15 12:13:57 +11:00
Paul Hauner
73484f04a1
Rename eth2_bytes to int_to_bytes 2019-02-15 11:19:25 +11:00
Paul Hauner
46673238b6
Add eth2_bytes crate
Is passing test vectors
2019-02-15 11:13:56 +11:00
Paul Hauner
8c54e55d99
Updates to permutated_index
- Add comments.
- Add more `None` conditions.
- Add more tests.
2019-02-15 00:28:24 +11:00
Age Manning
88c42bf3fb
Merge pull request #227 from sigp/slot_height
Add `SlotHeight` type.
2019-02-15 00:27:15 +11:00
Age Manning
91ba26a351
Add test dependencies for fork-choice. 2019-02-15 00:21:26 +11:00
Paul Hauner
c98a9fdf3e
Update test vectors, align to test vectors. 2019-02-14 23:55:48 +11:00
thojest
7434ff47ba added is_double_vote and is_surround_vote (lighthouse-150) 2019-02-14 13:28:42 +01:00
Paul Hauner
18e85a3cf8
Add swap_or_not_shuffle and tests.
The implementation is not matching the EF implementation at this point.
2019-02-14 18:22:55 +11:00
Age Manning
fe13d98469
Updates longest chain to match new fork-choice structure. 2019-02-14 18:09:09 +11:00
Age Manning
7b39dad232
Removes protolambda as an option of fork-choice. 2019-02-14 16:56:12 +11:00
Age Manning
7a03ee79aa
Update SlowLMDGhost to use SlotHeight. 2019-02-14 16:53:53 +11:00
Age Manning
066f0090dd
Add slot_height type. 2019-02-14 16:46:33 +11:00
Paul Hauner
c41b743d2d
Rename vec_shuffle to fisher_yates_shuffle
We're adding another shuffler so it's nice to be specific
2019-02-14 14:57:29 +11:00
Paul Hauner
1f8efffd6d
Merge pull request #201 from sigp/undo-split
Undo the great repo-split of 2019
2019-02-14 12:21:24 +11:00
Paul Hauner
35c914baa6
Revert "Merge pull request #200 from sigp/new-structure"
This reverts commit d7a3545be1, reversing
changes made to 1da06c156c.
2019-02-14 12:09:18 +11:00
Paul Hauner
d7a3545be1
Merge pull request #200 from sigp/new-structure
[WIP] Move across to new repository structure
2019-02-13 20:01:35 +11:00
Paul Hauner
c33af02a62
Merge branch 'master' into new-structure 2019-02-13 18:59:35 +11:00
Age Manning
1da06c156c
Merge pull request #195 from sigp/fork-choices
[WIP] Generalise Fork Choice Algorithms and implement optimised version.
2019-02-13 18:56:44 +11:00
Age Manning
6cf332c679
Update lmd_ghost algorithms to use get_deserialized. 2019-02-13 18:52:37 +11:00
Paul Hauner
655875acf9
Remove cargo fmt from travis.yml 2019-02-13 18:44:23 +11:00
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