Commit Graph

4604 Commits

Author SHA1 Message Date
Paul Hauner
e91317ca27
Change SpecialRecord to use u8 instead of enum 2018-10-15 16:26:40 +11:00
Paul Hauner
cd05616efa
Merge branch 'validation' into beacon_block 2018-10-15 15:29:29 +11:00
Chris Natoli
71bcf0b85a
Merge pull request #48 from sigp/remove_gitmodules
Remove gitmodules
2018-10-15 15:25:58 +11:00
Paul Hauner
e289d8b5fd
Fix comment in attestation_validation 2018-10-15 15:08:43 +11:00
Paul Hauner
a862c82b37
Rename Block -> BeaconBlock
- Update types::block
- Update ssz_helpers::SszBlock
- Update db::stores::block_store
- Add new fields to types::Block
- Update SszBlock as per new Block fields
2018-10-15 14:57:14 +11:00
Paul Hauner
561167fa1e
Fix panic in ssz decode 2018-10-15 14:10:43 +11:00
Paul Hauner
064e87a347
Add SpecialRecord struct 2018-10-15 12:05:36 +11:00
Paul Hauner
dbff403171
Remove gitmodules.
Previously parity-ethereum was a submodule but that is no longer the
case.

I can't see any reason we'll add a gitmodule in the near future.
2018-10-15 09:58:45 +11:00
Age Manning
96b68b567b
Merge pull request #46 from sigp/github_templates
Add PR and issue templates
2018-10-14 15:15:21 +11:00
Age Manning
415c6953b0
Merge pull request #45 from sigp/contributors_guide
Add CONTRIBUTING.md
2018-10-14 15:14:54 +11:00
Paul Hauner
c327ef970b
Add PR and issue templates 2018-10-14 14:51:59 +11:00
Paul Hauner
32e8af97de
Remove image, add FAQ to contributing.md 2018-10-14 14:29:18 +11:00
Paul Hauner
14d9df3321
Add CONTRIBUTING.md 2018-10-14 14:17:26 +11:00
Paul Hauner
90010ced55
Fix big in attestation validation
There was no check that the attestation is within an appropriate
distance from its parent block.
2018-10-13 09:39:10 +11:00
Paul Hauner
e8daca4c80
Ensure that parent_block.slot < block.slot 2018-10-12 20:54:33 +11:00
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
817b52ffa7
Merge pull request #38 from sigp/shuffling
Shuffling
2018-10-10 16:51:42 +11:00
Paul Hauner
9717698f7b
Break split function into its own crate.
- Added tests
- Remove it from the delegation dir
- Added it as a crate in utils
2018-10-10 16:09:00 +11:00
Age Manning
ddc8037487
Merge branch 'master' into shuffling 2018-10-10 14:41:49 +11:00
Age Manning
6417ecd464
Correct comments for rust docs 2018-10-10 14:04:42 +11:00
Paul Hauner
5a92dd50ee
Merge pull request #43 from sigp/luke-readme-review
Luke's review of Readme.md
2018-10-10 12:56:59 +11:00
Luke Anderson
9cefeadef1 File formatting change, fixing long lines and adding minor adjustments. 2018-10-10 12:42:11 +11:00
Paul Hauner
739abc0bbd
Merge branch 'master' into validation 2018-10-09 18:28:35 +11:00
Luke Anderson
d55448946f Removed the network-libp2p directory from the directory structure part of README. 2018-10-09 18:21:09 +11:00
Luke Anderson
41e7199cbc Fixed backslashes to forward slashes and clarified PoW chain is present-Ethereum 2018-10-09 18:19:36 +11:00
Luke Anderson
8abea86702 Made a series of updates, typo fixes, and rewordings to the README. 2018-10-09 18:16:19 +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
Age Manning
14e12db374
Updates validation tests for clippy modifications 2018-10-05 14:53:21 +10:00
Age Manning
fd01ffc2a1
Removes block_hash.rs and adds minor clippy fixes 2018-10-05 14:51:16 +10: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
Age
1858b2d32b
Corrects cycle tests 2018-10-04 13:21:16 +10:00