Paul Hauner
1f089d423e
Ensure attestation val. check parent.slot
...
As per comments by Danny Ryan on PR#33
2018-10-12 20:41:18 +11:00
Paul Hauner
b5441535ba
Add comment regarding tightening block val.
...
Comment was suggested by Danny R.
2018-10-12 19:30:52 +11:00
Paul Hauner
68ca51c7ac
Fix "indicies" type
2018-10-12 00:55:29 +11:00
Paul Hauner
3139d0e5da
Replace hashmap with hashset
2018-10-12 00:53:56 +11:00
Paul Hauner
6ef4268d6d
Verify attestation justified_block_hash.
...
Previously there was not a check that the hash was in the chain, just
that it was known (in the database in any chain)
2018-10-12 00:41:47 +11:00
Paul Hauner
d729355c09
Add test to block_store, export BlockAtSlotError
2018-10-11 23:50:49 +11:00
Paul Hauner
8c1d72a32e
Return block hash with block_at_slot()
2018-10-10 20:51:13 +11:00
Paul Hauner
550ca79a4f
Add block_at_slot function to block store
...
This allows skipping back in the chain to find a block.
2018-10-10 18:16:30 +11:00
Paul Hauner
739abc0bbd
Merge branch 'master' into validation
2018-10-09 18:28:35 +11:00
Paul Hauner
6dacb1c654
Merge pull request #42 from sigp/remove-libp2p
...
Remove all libp2p and syncing code
2018-10-09 14:31:36 +11:00
Paul Hauner
b9669c1c55
Merge branch 'master' into remove-libp2p
2018-10-09 13:44:25 +11:00
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
cf9f8c1e85
Fix issue with last_justified_block_hash
...
Previously we were just checking it exists in the DB. This is incorrect
because the last_justified_block_hash _must_ be in the chain referenced
by the block.
I.e., it's not OK for a block to reference a justified block in another
chain.
2018-10-09 12:14:59 +11:00
Paul Hauner
f13a4fffea
Fix a type in sig. ver. comment
2018-10-09 11:09:37 +11:00
Paul Hauner
9a59908506
Rename voted_hashmap to voted_hashset
2018-10-09 11:08:09 +11:00
Paul Hauner
a998ac2a12
Add InvalidBitfieldEndBits tests
2018-10-09 11:05:40 +11:00
Paul Hauner
efc278ce7e
Merge pull request #41 from johnomarkid/master
...
Creating a doc to help onboard new devs
2018-10-09 10:23:56 +11:00
John Omar
a49143f1f2
Typo on word usage
2018-10-05 17:20:53 -07:00
John Omar
2770cb4490
create onboarding.md
...
Added some reading material for people new to Rust and/or Ethereum. My goal is to expand the onboarding docs to include specific guides on getting started on Lighthouse.
2018-10-05 17:19:16 -07:00
Paul Hauner
1e4fd4db31
Merge pull request #40 from sigp/house-cleaning
...
Remove dead code
2018-10-04 18:04:49 +10:00
Paul Hauner
e2d45eafae
Separate parent block checking and proposer checking
2018-10-04 15:43:17 +10:00
Age
fd0de57aa7
Remove dead code
2018-10-04 14:51:27 +10:00
Paul Hauner
c30a9a7565
Update comment for rejecting future block
...
As per Danny's request
2018-10-04 14:46:05 +10: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
49737fbc82
Add doc comments to attestation validation
2018-10-02 17:58:33 +10:00
Paul Hauner
50d7252cd0
Remove failing benchmarks
2018-10-02 17:45:37 +10:00
Paul Hauner
eaa694bced
Deleted some unnecessary files
2018-10-02 17:44:47 +10:00
Paul Hauner
117a207d49
Add pre-written validation code
...
This adds block and attestation validation code that was written
previously. There were many non-validation specific changes made whilst
building these functions (e.g., db, hashing, etc) -- these changes have
already been merged into master and this branch has been created just to
make it easy to review this code.
2018-10-02 17:35:03 +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