Commit Graph

95 Commits

Author SHA1 Message Date
Grant Wuerker
03bf0a6855 Merge branch 'master' into validator-record-update 2018-12-28 22:38:43 -06:00
Paul Hauner
8308ea4932
Fix old instances of shards being u16 2018-12-29 14:35:03 +11:00
Paul Hauner
b365bb8773
Re-add ValidatorRecord::status_is() fn
It was accidentally removed.
2018-12-29 14:34:22 +11:00
Paul Hauner
9efc7a0def
Remove unused types::common mod 2018-12-29 14:33:48 +11:00
Paul Hauner
39f2171053
Implement ssz Enc/Decode for BeaconState + more 2018-12-28 19:46:33 +11:00
Grant Wuerker
a470cb5369 testing around BeaconState and ChainSpec passing 2018-12-27 19:50:05 -06:00
Grant Wuerker
f48eb568ba Merge branch 'master' into validator-record-update 2018-12-26 20:26:33 -06:00
Grant Wuerker
65917a696a beacon_state, deposit_input, and validator_record updated again
beacon_state, deposit_input, and validator_record updated again
2018-12-26 20:06:50 -06:00
Grant Wuerker
9040fcf437 fixed conflicts 2018-12-26 12:13:47 -06:00
Grant Wuerker
34ec2887fb Merge branch 'master' into validator-record-update 2018-12-26 12:10:41 -06:00
Grant Wuerker
2b818d0c70 deleted deposit types 2018-12-26 12:10:01 -06:00
Paul Hauner
79093f6ad1
Merge branch 'master' into issue/105/genesis 2018-12-26 10:52:56 +11:00
Paul Hauner
9764cb0ef3
Remove some Default impls from types 2018-12-26 09:12:11 +11:00
Paul Hauner
3c4541156a
Add BeaconBlock genesis 2018-12-25 19:25:48 +11:00
Paul Hauner
b978db23fc
Merge new beacon block, Rust 2018 2018-12-25 19:00:41 +11:00
Paul Hauner
b95395d1e1
Rename types::random types::test_utils 2018-12-25 10:36:49 +11:00
Grant Wuerker
1b3de3a507 Merge branch 'master' into validator-record-update 2018-12-23 12:21:49 -06:00
Paul Hauner
6f039e6e6a
Add ssz enc/dec for beacon block 2018-12-23 23:41:22 +11:00
Paul Hauner
368a218af4
Add types, more ssz testing for existing types 2018-12-21 15:44:11 +11:00
Grant Wuerker
faaba18799 types updated against spec and process_deposit routine partially implemented 2018-12-20 20:22:08 -06:00
Stan Drozd
dcf9f2244a
Add 'edition = "2018"' to every Cargo.toml 2018-12-19 16:38:59 +01:00
Stan Drozd
e502872083
cargo-fix the whole workspace into Rust 2018 2018-12-19 16:07:01 +01:00
Paul Hauner
c9f82f8a1d
Implement ssz enc/decode for beaconblock
Not yet fully tested
2018-12-19 17:56:09 +11:00
Paul Hauner
0260564c15
Begin implementing new types 2018-12-18 18:09:21 +11:00
Paul Hauner
92ed2ffc22
Update Attestation to use new bls structs 2018-12-18 17:30:34 +11:00
Grant Wuerker
eef3627c92 one test passing 2018-12-16 17:00:53 -06:00
Grant Wuerker
7065454b5c deposit and validator_record type changes 2018-12-15 23:18:23 -06:00
Grant Wuerker
5fa251943b updated deposit structs and validator record accrding to spec 2018-12-14 17:32:01 -06:00
Grant Wuerker
8974d8e1df Merge branch 'master' into validator-record-update 2018-12-14 17:22:04 -06:00
Paul Hauner
fdca969868
Merge pull request #119 from ralexstokes/remove-active-validators-crate
Remove active validators crate
2018-12-13 17:46:01 +11:00
Paul Hauner
96c2012434
Add canonical_hash method to BeaconState 2018-12-13 17:32:48 +11:00
Paul Hauner
220a5bad76
Add clone method to some types 2018-12-13 17:32:17 +11:00
Alex Stokes
1ff47720f1
Clean up representation of ValidatorStatus 2018-12-12 19:05:32 -08:00
Grant Wuerker
6089b7c108 chain config TODO 2018-12-12 19:55:30 -06:00
Paul Hauner
4f0a223579
Change some ShardAndCommittee -> ShardCommittee 2018-12-13 12:28:37 +11:00
Grant Wuerker
82b3a21767 Merge branch 'master' into validator-record-update 2018-12-12 18:42:16 -06:00
Grant Wuerker
045f7b5b98 typo 2018-12-12 17:59:50 -06:00
Grant Wuerker
c7f7bfaab4 deposit and deposit_parameters types added 2018-12-12 17:57:14 -06:00
Grant Wuerker
071e099203 validator registration removed 2018-12-12 17:56:44 -06:00
Paul Hauner
56dc73fbd1
Update some shard u16 to u64
This is pretty hacky, is just serving my purpose for `BeaconChain`.
These structs will need to be fully updated to the latest spec.
2018-12-12 18:35:31 +11:00
Paul Hauner
c944c435e2
Update CrosslinkRecord to latest spec
Addresses #100
2018-12-12 18:30:20 +11:00
Paul Hauner
89bea5b5e8
Update BeaconState rename ShardCommittee
Both structs are now consistent with the spec.

Addresses #100
2018-12-12 18:25:21 +11:00
Paul Hauner
4d0641636e
Rename AttestationRecord -> Attestation 2018-12-12 12:16:11 +11:00
Alex Stokes
fa3d9bdb07
begin the transition to using ValidatorStatus as a distinct type 2018-12-11 15:17:55 -08:00
Alex Stokes
d3681e876a
add method to determine validator status 2018-12-11 15:16:25 -08:00
Grant Wuerker
1d48aa280b test passing in validator_record.rs 2018-12-09 22:22:08 -06:00
Grant Wuerker
c63ef6d032 ValidatorRecord initialization updated to reflect struct 2018-12-09 22:13:57 -06:00
Paul Hauner
0f9482f9d1
Complete attestation_validation, bar tests 2018-12-10 09:33:57 +11:00
Grant Wuerker
0627b658f1 struct updated accoding to spec 2018-12-08 21:11:10 -06:00
Paul Hauner
3533b8b892
Add untested attestation validation logic 2018-12-06 18:16:03 +11:00