Commit Graph

166 Commits

Author SHA1 Message Date
Age Manning
6f74ffc7e6 Correct minor comment. 2019-02-19 23:20:45 +11:00
Age Manning
b8411e7126 Merge branch 'master' into fork-choice-tests 2019-02-19 23:09:31 +11:00
Age Manning
fd1edaf805 Add fork choice bug fixes.
- Further bug fixes from testing.
- Simplify the testing framework.
- Add tests for longest chain and GHOST vs bitwise GHOST.
2019-02-19 23:06:35 +11:00
Paul Hauner
a1118e13ae Merge pull request #238 from mjkeating/tree_hash_add_padding2
Updated TreeHash to spec - added padding
2019-02-19 16:54:36 +11:00
Paul Hauner
089127b347 Merge pull request #226 from thojest/lighthouse-150
add is_double_vote and is_surround_vote
2019-02-19 16:02:29 +11:00
Age Manning
2394f64329 Add longest chain tests and test vectors. 2019-02-19 15:22:35 +11:00
Age Manning
bd66a02cb3 Add slow LMD Ghost working tests. 2019-02-19 15:08:55 +11:00
Age Manning
846cbdd7f7 Generalise fork choice tests. 2019-02-19 14:37:17 +11:00
Age Manning
8baae0e02e Updates optimised fork choice.
- Bug fixes in optimised fork choice.
- YAML tests functioning.
- Implement Clippy suggestions.
- Remove Copywrite notices.
2019-02-19 11:58:17 +11:00
mjkeating
cd676d5621 fixed a bug in TreeHash.rs/list_to_blob 2019-02-18 11:55:44 -08:00
mjkeating
0148abaa0b Merge branch 'master' into tree_hash_add_padding2 2019-02-18 09:04:53 -08:00
Feng94
1bdce182a9 Rename block_producer crate to block_proposer and change references inside it to block_proposer 2019-02-19 00:03:35 +11:00
thojest
f88155625c added comment to indicate highest spec version of implemented functions; added realistic test scenario for is_surround_vote (lighthouse-150) 2019-02-18 12:12:01 +01:00
thojest
ee13c6ee40 Merge branch 'master' into lighthouse-150 2019-02-18 11:49:37 +01:00
Age Manning
4eddb47fd0 Updates all fork-choices to use ChainSpec for consts. 2019-02-18 17:49:05 +11:00
Age Manning
6e6d451978 Updates optimised ghost to use chainspec for consts. 2019-02-18 17:42:07 +11:00
Age Manning
8b34bc490b Add fork-choice yaml tests. 2019-02-18 17:32:13 +11:00
mjkeating
6fa141181b Updated TreeHash to spec - added padding 2019-02-17 09:30:18 -08:00
Paul Hauner
c4bedc03a8 Fix file org. inconsistency in types 2019-02-17 20:21:13 +11:00
Paul Hauner
b2173c1a16 Merge branch 'master' into test-harness-fix 2019-02-16 15:10:48 +11:00
Paul Hauner
f83d02b394 Update previous epoch function 2019-02-16 15:09:43 +11:00
Paul Hauner
b79f0cdf68 Fix bug with reward quotient in epoch processing 2019-02-16 15:09:14 +11:00
Paul Hauner
c5158e2974 Fix bug with total_balance in epoch processing 2019-02-16 15:08:57 +11:00
Paul Hauner
b0513b1ec1 Add and update logs 2019-02-16 15:08:33 +11:00
Paul Hauner
5e6acb8f39 Break BeaconState tests into separate file 2019-02-16 11:19:47 +11:00
thojest
203f3b37f2 adapted import due to renaming of crate slot_epoch_height -> slot_epoch (lighthouse-150) 2019-02-15 12:25:59 +01:00
thojest
94cb6a2a43 Merge branch 'master' into lighthouse-150 2019-02-15 12:16:39 +01:00
Paul Hauner
7c920cfb96 Add incomplete progress on fixing test harness 2019-02-15 19:23:22 +11:00
Paul Hauner
2affd305d9 Merge branch 'master' into implement-shuffle 2019-02-15 18:21:54 +11:00
Age Manning
0800091a43 Merge pull request #232 from sigp/tidy-beacon-state
Add beacon state test builder, tidy errors
2019-02-15 18:06:42 +11:00
Paul Hauner
b05f12cf6f Merge branch 'tidy-beacon-state' into test-harness-fix 2019-02-15 17:10:11 +11:00
Paul Hauner
1c57eb47f9 Move BeaconStateTestBuilder into test mod 2019-02-15 17:07:52 +11:00
Paul Hauner
054c1f9047 Swap over to v0.2.0 shuffling algo 2019-02-15 16:55:52 +11:00
Paul Hauner
2f8c4536a0 Merge branch 'int_to_bytes' into implement-shuffle 2019-02-15 16:40:32 +11:00
Paul Hauner
4ddbb3197c Merge branch 'master' into tidy-beacon-state 2019-02-15 16:30:51 +11:00
Paul Hauner
ae5072d0f5 Merge branch 'master' into int_to_bytes 2019-02-15 16:13:40 +11:00
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
Age Manning
e06c4796e4 Import Slot directly from types in fork-choice. 2019-02-15 14:21:33 +11:00
Age Manning
b16ac40fd5 Add tests to SlotHeight. 2019-02-15 14:16:45 +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
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