Commit Graph

3066 Commits

Author SHA1 Message Date
Age
b8ca18f87b
correct attestation warnings, add unit test 2018-09-15 23:22:05 +10:00
Age
b6f4d1c968
add initial attestation validation structure 2018-09-15 22:53:45 +10:00
Paul Hauner
513972b75c Add more plumbing for block processing 2018-09-14 15:52:49 +10:00
Paul Hauner
16bc6ba82a Remove commented-out function 2018-09-13 13:06:41 +10:00
Paul Hauner
88f9295e10 Merge branch 'sync' 2018-09-13 13:05:19 +10:00
Paul Hauner
6116ee66e3 Add ssz Encodable trait for usize 2018-09-13 13:02:51 +10:00
Paul Hauner
cd7aa21d36 Ensure ssz 0 vals are encoded correctly 2018-09-13 13:02:36 +10:00
Paul Hauner
5db0af59d7 Fix ssz typos and unused import 2018-09-13 13:02:15 +10:00
Paul Hauner
b6cfceb470 Add new ssz fn for getting highest set bit 2018-09-13 12:44:26 +10:00
Paul Hauner
e75905421d Change length bytes to 3, add decode stuff 2018-09-12 17:57:07 +10:00
Paul Hauner
dfae0acd06 Add comments to ssz decode 2018-09-11 13:32:23 +02:00
Paul Hauner
c205208b63 Fix bug in decoding, add more tests 2018-09-11 13:26:45 +02:00
Paul Hauner
176c6f5cb6 Tidy ssz lib; add comments, remove dup func. 2018-09-11 12:39:20 +02:00
Paul Hauner
3d3b1fcdda Break ssz encode into its own file. 2018-09-11 12:25:49 +02:00
Paul Hauner
51352c4657 Break decode out into own file 2018-09-11 12:17:54 +02:00
Paul Hauner
2d29c34892 Add (untested) ssz decode macro 2018-09-11 00:13:44 +02:00
Paul Hauner
fe95a0cce2 Implement ssz length decoding 2018-09-10 13:36:42 +02:00
Paul Hauner
0566d18153 Break impls out into own file 2018-09-10 09:13:08 +02:00
Paul Hauner
ffaffbcd90 Change ssz to use extend_from_slice()
This is instead of `append` which empties the source vector. This
doens't really ssem suitable for what we're doing.
2018-09-10 08:52:21 +02:00
Paul Hauner
e12a93783d Tidy up boolean_bitfield 2018-09-10 08:51:51 +02:00
Paul Hauner
cbaee765e3 Update ssz for Block 2018-09-10 07:51:57 +02:00
Paul Hauner
976e3a717e Add ssz for AttestationRecord 2018-09-10 07:51:44 +02:00
Paul Hauner
67bbc75c86 Update ssz
- Add u16 and u8.
 - Add comments
 - Consildate functions
2018-09-10 07:50:35 +02:00
Paul Hauner
3399b02393 Expand sync works 2018-09-09 18:28:36 +02:00
Paul Hauner
c33d3689a7 Begin sync framework 2018-09-09 16:36:00 +02:00
Mehdi Zerouali
071041a03a
Merge pull request #6 from sigp/v2.1-helpers
[WIP] v2.1 helpers
2018-09-02 16:13:50 +01:00
Paul Hauner
b4ca8cbde8 Remove get_new_shuffling
I am not sure it is designed correctly
2018-08-31 02:20:10 +10:00
Paul Hauner
2277273caa Fix get_new_shuffling, add functioning test. 2018-08-29 16:57:25 +10:00
Paul Hauner
c1a0df8c17 Implement get_new_shuffling w/o tests 2018-08-28 17:51:57 +10:00
Paul Hauner
d57f86c9ad Add readme for shuffling 2018-08-28 17:51:23 +10:00
Paul Hauner
133769e6e5 Expose function directly in transition 2018-08-24 16:01:57 +10:00
Paul Hauner
6f08700ea0 Move shuffling mod into state/transition 2018-08-24 16:01:24 +10:00
Paul Hauner
1a00f5b429 Rename helpers -> attestation_parent_hashes 2018-08-24 15:48:43 +10:00
Paul Hauner
d0c020db9d Rename "get_signed_parent_hashes" 2018-08-24 15:41:00 +10:00
Paul Hauner
1a3da944e5 Add comment to get_signed_parent_hashes 2018-08-24 15:36:26 +10:00
Paul Hauner
4ec0de6f5e Use borrows for get_signed_parent_hases, add tests 2018-08-24 15:26:27 +10:00
Paul Hauner
859c48d5e5 Progress on parent hash selection. Add test. 2018-08-24 14:33:05 +10:00
Paul Hauner
8ba7601ab3 Add get_signed_parent_hashes (untested) 2018-08-23 18:32:18 +10:00
Paul Hauner
c4f9f927f3 Rename "state" to "chain_state" 2018-08-23 18:31:58 +10:00
Paul Hauner
b81ffd0781 Merge branch 'master' of github.com:sigp/lighthouse 2018-08-23 15:20:36 +10:00
Paul Hauner
fd1eea561e Move boolean_bitfield into own crate 2018-08-23 15:20:10 +10:00
Paul Hauner
9808d5c209 Clear out old state config 2018-08-23 15:12:50 +10:00
Paul Hauner
abefec8ed8 Tidy "sync" module 2018-08-23 15:11:59 +10:00
Paul Hauner
366dca710f Tidy config struct 2018-08-23 15:11:15 +10:00
Paul Hauner
121bff725e Tidy client struct 2018-08-23 15:11:02 +10:00
Paul Hauner
e80cf2ff5b
Merge pull request #5 from sigp/add-license-1
Create LICENSE
2018-08-18 09:19:30 +10:00
Paul Hauner
83c98f8915
Create LICENSE 2018-08-18 09:19:07 +10:00
Paul Hauner
9689142883 Add "Client" concept and RocksDB 2018-08-16 14:17:28 +10:00
Paul Hauner
3372583c18 Rename "src/" to "lighthouse/" 2018-08-15 13:41:16 +10:00
Paul Hauner
51be1f0ca4 Update readme 2018-08-15 13:27:07 +10:00