Commit Graph

23 Commits

Author SHA1 Message Date
Paul Hauner
6df5eee7f4 Update beacon_chain crate with v0.5.0 updates 2019-03-17 18:10:20 +11:00
Paul Hauner
a4e604a41e Update BeaconChain to spec v0.4.0 2019-03-07 12:25:29 +11:00
Kirk Baird
4c3b0a6575 Formatting 2019-02-25 10:38:04 +11:00
Kirk Baird
f72b45147a Merge conflicts from master 2019-02-25 10:36:54 +11:00
Kirk Baird
9f9b466f95 Modify attestion_aggregation to use frok version in domain 2019-02-23 14:39:54 +11:00
Paul Hauner
a5de6a1915 Add caching to BeaconState.
Removes CachingBeaconState
2019-02-22 18:14:16 +13:00
Kirk Baird
2c8aa17e0d Merge branch 'master' into signature-scheme-update 2019-02-18 10:54:26 +11:00
Kirk Baird
9c4a1f1d1f Update to signature-scheme 0.5.2 2019-02-18 10:50:40 +11:00
Paul Hauner
3b92b69028 Apply CachedBeaconState to some functions
- Attestation aggregation
- Getting attestation duties
2019-02-16 11:04:12 +11:00
Paul Hauner
ec4a658fe7 Add beacon state test builder, tidy errors 2019-02-15 16:12:24 +11:00
Kirk Baird
977f3edfb6 Add domain to all signature funcitons, modify validate_proof_of_possession() 2019-02-15 13:58:14 +11:00
Paul Hauner
35c914baa6 Revert "Merge pull request #200 from sigp/new-structure"
This reverts commit d7a3545be1, reversing
changes made to 1da06c156c.
2019-02-14 12:09:18 +11:00
Paul Hauner
1d5ff4359a Strip out old code
All of these files have been moved to either:

- https://github.com/sigp/lighthouse-beacon
- https://github.com/sigp/lighthouse-validator
- https://github.com/sigp/lighthouse-common

For rationale, see: https://github.com/sigp/lighthouse/issues/197
2019-02-13 14:15:53 +11:00
Paul Hauner
d2a1000520 Fix clippy lints in beacon_chain 2019-02-13 10:28:38 +11:00
Paul Hauner
5fefc79521 Update BeaconChain for spec v0.2.0 2019-02-12 13:00:52 +11:00
Paul Hauner
c1ed5cd2d8 Refactor beacon_chain.
Moves all the `BeaconChain` impls into the same file that the struct is
defined in.
2019-02-05 05:08:40 +11:00
Paul Hauner
865919e398 Improve attester errors, move info -> helpers
- Ensured one can distingush between a committee error and an invalid
validator index when using `validator_attesation_slot_and_shard`.
- Renamed the `info.rs` file to `getters.rs`, for clarity.
2019-02-01 17:56:49 +11:00
Paul Hauner
a86f7fa51b Tidy AttestationAggregator, add docstrings. 2019-02-01 15:16:24 +11:00
Paul Hauner
c1b3d1b63e Tidy up and add some logs 2019-01-31 18:32:01 +11:00
Paul Hauner
ae39a24e71 Add committee_index to aggregator
Fixes a bug where the validator index bit was set on the bitfield,
instead of the committee index
2019-01-31 14:16:28 +11:00
Paul Hauner
7d94cfb0e4 Refine state transition to allow first transition 2019-01-31 00:39:34 +11:00
Paul Hauner
be7e326c33 Add FreeAttesation type 2019-01-28 16:21:33 +11:00
Paul Hauner
5bbffcb053 Add attester to beacon chain test harness 2019-01-28 15:50:42 +11:00