Commit Graph

343 Commits

Author SHA1 Message Date
Paul Hauner
a65531ba95
Remove all libp2p and syncing code
This will all need to be rebuilt in the future.

This code will be available at a "legacy_libp2p" branch.
2018-10-09 13:36:54 +11:00
Paul Hauner
175c19d8bf
Update readme 2018-10-04 10:54:59 +10:00
Paul Hauner
4852b60051
Merge pull request #37 from sigp/update-readme
Re-write readme
2018-10-04 10:50:40 +10:00
Paul Hauner
1d0d6a1b0c
Implement MZ's comments 2018-10-04 10:49:28 +10:00
Paul Hauner
277503a559
Fix missed merge conflict (Doh!) 2018-10-04 10:18:21 +10:00
Paul Hauner
d9ea28263e
Merge branch 'update-readme' of github.com:sigp/lighthouse into update-readme 2018-10-04 10:13:34 +10:00
Paul Hauner
dde6353efd
Implement @peanutFactory's comments 2018-10-04 10:11:02 +10:00
mehdi
f765f4e08d Minor typo fixes 2018-10-03 20:29:39 +10:00
Paul Hauner
95213609e8
Re-write readme 2018-10-03 18:37:28 +10:00
Age Manning
589354eff9
Merge pull request #35 from sigp/update_shuffling
Update shuffling
2018-10-03 13:55:37 +10:00
Paul Hauner
6f1243368f
Merge pull request #36 from sigp/clippy-fixes
small clippy fixes
2018-10-03 13:55:23 +10:00
Age
8ae3c9adc1
small clippy fixes 2018-10-03 13:51:05 +10:00
Paul Hauner
eca4448207
Remove test vectors
These will be added in a future PR.
2018-10-03 13:45:57 +10:00
Paul Hauner
6d4a3bba11
Update shuffling comments 2018-10-03 13:43:46 +10:00
Paul Hauner
2763f7bc00
Move shuffling to its own crate, update hash fn
Previously blake2s-256 was being used, now blake2b-512[:32] is being
used.
2018-10-03 13:43:28 +10:00
Paul Hauner
6a75aa3246
Merge pull request #26 from sigp/restructure
Restructure codebase
2018-10-02 16:13:39 +09:30
Paul Hauner
0fbe4179b3
Heavily restructure repo
Separate most modules into crates
2018-10-02 16:41:10 +10:00
Paul Hauner
07bfd7e97d
Add tests for attestation_validation 2018-10-02 09:47:45 +10:00
Paul Hauner
cd3b2f5371
Add test for attestation msg generation 2018-10-02 09:47:20 +10:00
Paul Hauner
6b7677a206
Update block and attestation validation code 2018-10-02 09:46:14 +10:00
Paul Hauner
8e094b358f
Implement framework for testing attestation val. 2018-10-01 17:19:08 +09:30
Paul Hauner
8f5285875b
Refactor validation tests into integration tests 2018-10-01 16:37:34 +09:30
Paul Hauner
4d1f730c95
Restructure block validation directory 2018-09-30 16:25:28 +09:30
Paul Hauner
c3ec8a3407
Introduce AttestationValidationContext
This reduced code duplication.
2018-09-30 16:09:35 +09:30
Paul Hauner
b426c9e724
Remove "benches" feature
Now benches just live with the rest of the code in the default feature.
2018-09-30 16:09:07 +09:30
Paul Hauner
29ed29cfc3
Update benchmarks as per recent code changes 2018-09-30 15:38:22 +09:30
Paul Hauner
77b48b9822
Implement more tests for block validation 2018-09-30 14:25:42 +09:30
Paul Hauner
496adc0f0b
Fix bug in attestation val. bitfield checking
There was a logic error
2018-09-30 14:24:42 +09:30
Paul Hauner
a87fe88d97
Fix bug in boolean bitfield
The length generated when converting from a string was incorrect.
2018-09-30 14:24:03 +09:30
Paul Hauner
9642c4b7e1
Simplify block validation tests
Move more parameters into get_simple_params()
2018-09-30 12:21:30 +09:30
Paul Hauner
5dd2361d21
Progress further with block validation
- Rename errors returned from SszBlock.
- Add parent_hash concept to block validation.
- Add more comments to block validation.
2018-09-30 11:26:36 +09:30
Paul Hauner
385564d637
Rename block_store functions
- Specified that the block is "serialized".
2018-09-30 11:25:12 +09:30
Paul Hauner
0b99951bf8
Refactor block val. into "BlockValidationContext" 2018-09-29 16:07:59 +09:30
Paul Hauner
bc27be147f
Further development on block validation
- Return a fully deserialized block from validate_ssz_block
- Ensure the parent_hash field is handled
2018-09-29 15:38:54 +09:30
Paul Hauner
e0e8aa98f4
Introduce "benches" feature
So that benchmarks don't run each time tests run
2018-09-29 13:01:33 +09:30
Paul Hauner
7c88f94377
Tidy comments in block validation 2018-09-29 12:32:33 +09:30
Paul Hauner
13467abd7f
Tidy benches file 2018-09-28 17:30:49 +09:30
Paul Hauner
8020b897c6
Refactor block val. benches to use test funtions 2018-09-28 17:15:42 +09:30
Paul Hauner
19ddbdefa8
Refact block val. tests to be more modular 2018-09-28 17:15:29 +09:30
Paul Hauner
b92d88d42b
Add (untested) parallelization for att validation 2018-09-28 15:38:51 +09:30
Paul Hauner
05fe231e41
Fix bug with bitfield validation 2018-09-28 15:37:53 +09:30
Paul Hauner
debc642b50
Move attestation validation into iter.for_each 2018-09-26 23:28:47 +10:00
Paul Hauner
a8b08fb300
Add first block validation benches 2018-09-26 14:06:16 +10:00
Paul Hauner
84bb40855f
Split block validation tests into functions 2018-09-26 13:31:58 +10:00
Paul Hauner
9dcec214af
Add block validation code
This was created in another branch along with a whole bunch of other
commits building out databases and other common elements.

This full history of these works is available on master, however it
should not be necessary.
2018-09-26 13:00:25 +10:00
Paul Hauner
c8ff539686
Merge database works, directory restructuring 2018-09-26 11:58:46 +10:00
Paul Hauner
baa7b06b56
Fix clippy lints 2018-09-26 11:54:13 +10:00
Paul Hauner
966d891cb5
Remove validation fns (will be added in a PR) 2018-09-26 11:40:28 +10:00
Paul Hauner
3188d32423
Fix unused dep warning 2018-09-26 11:38:12 +10:00
Paul Hauner
362b7b2513
Remove some stray print statements 2018-09-25 23:40:01 +10:00