Commit Graph

435 Commits

Author SHA1 Message Date
Paul Hauner
a71f05066b Merge branch 'docker-env' into v0.6.1 2019-06-13 10:37:35 -04:00
Michael Sproul
ea43515eb0 committee cache: fix a test for shard delta changes 2019-06-12 16:55:59 +10:00
Michael Sproul
64dca6fba7 committee cache: avoid spurious recomputes
Check that the committeee cache matches the absolute epoch for the relative epoch, rather than
always checking the previous epoch.
2019-06-12 15:41:20 +10:00
Paul Hauner
e550c0218f Add various fixes to clippy lints
Thou shalt appease clippy
2019-06-10 11:01:25 -04:00
Paul Hauner
a662c3a940 Fix various compile errors and warnings 2019-06-09 06:26:34 -04:00
Paul Hauner
ab12787610 Update account manager config parsing 2019-06-09 04:34:56 -04:00
Paul Hauner
d8fc5f31d8 Add Eth2Config to runtime 2019-06-08 13:17:03 -04:00
Paul Hauner
749f2fcb5f Unify EthSpecs in Mainnet and Minimal 2019-06-08 08:49:04 -04:00
Paul Hauner
caddeba81b Remove genesis_epoch from ChainSpec 2019-06-08 08:17:42 -04:00
Paul Hauner
e74d49fc8a Remove dupe info between ChainSpec and EthSpec 2019-06-08 07:57:25 -04:00
Paul Hauner
719dd72de6 Fix recently introduced sync bugs 2019-06-07 02:55:16 -04:00
Michael Sproul
c151e5861e epoch processing: fix shard delta calculation 2019-06-04 17:10:11 +10:00
Paul Hauner
67fdb4a7fb Store beacon state committee cache in DB 2019-06-04 13:13:58 +10:00
Michael Sproul
6bde64bd6a spec v0.6: update beacon_node, validator_client 2019-06-03 16:13:51 +10:00
Michael Sproul
7fbcdd54d7 op_pool: update for v0.6.x 2019-06-03 15:25:06 +10:00
Paul Hauner
e310bdd904 Merge branch 'master' into v0.6.1 2019-06-02 13:49:24 +10:00
Michael Sproul
beacf42aaf v0.6.2: update test infrastructure 2019-05-29 15:31:34 +10:00
Paul Hauner
686963bd34 Update ef_tests for new compare_fields API 2019-05-24 14:08:19 +10:00
Paul Hauner
92610b4fd3 Improve error messages for ef_tests 2019-05-23 16:55:50 +10:00
Paul Hauner
d0ab1a0576 Add basic tests for get_beacon_proposer 2019-05-23 16:55:31 +10:00
Paul Hauner
b8e25a3e4c Fix bug in beacon state randao getter 2019-05-23 16:53:18 +10:00
Paul Hauner
c214bec344 Add ability to get shuffling from BeaconState 2019-05-23 16:52:51 +10:00
Paul Hauner
b2666d700c Implemented detailed state eqs in ef_tests 2019-05-22 18:00:21 +10:00
Paul Hauner
7a99654f89 Add new CompareFields trait and derive 2019-05-22 17:22:12 +10:00
Paul Hauner
07b94b30ba Add serde deser to AttestationDataAndCustodyBit 2019-05-22 14:49:14 +10:00
Paul Hauner
1eeaaaa92b Merge branch 'ef-tests' into v0.6.1 2019-05-22 14:46:10 +10:00
Paul Hauner
fabb42a162 Update various v0.5.1 tags, delete old file 2019-05-22 13:03:51 +10:00
Paul Hauner
bb7ee642d8 Update verify_transfer to spec v0.6.1 2019-05-22 11:28:29 +10:00
Michael Sproul
545fb10005 spec v0.6.1: deposit processing (WIP) 2019-05-21 18:02:31 +10:00
Michael Sproul
0b2aa26f2d spec v0.6.1: attestation processing/verif 2019-05-21 16:43:55 +10:00
Michael Sproul
f8d4e742ad types: safe accessors for current crosslinks 2019-05-21 16:43:54 +10:00
Paul Hauner
048f342e1d Fix off-by-one error in CommitteeCache 2019-05-20 16:46:44 +10:00
Paul Hauner
21de9c1cb8 Re-work CommitteeCache to use less memory
Now it just stores a reverse mapping of the shuffling (validator index
-> position in shuffling) instead of all the `AttestationDuty`.
2019-05-20 16:21:26 +10:00
Michael Sproul
857c4ed2db spec v0.6.1: process proposer/attester slashings 2019-05-20 15:12:24 +10:00
Michael Sproul
55537078a1 block processing: v0.6.1 headers, randao, eth1 data 2019-05-20 15:12:23 +10:00
Paul Hauner
aa01808a00 Tidy, add comments to CommitteeCache 2019-05-20 15:10:56 +10:00
Paul Hauner
6660311b2b Rename EpochCache to CommitteeCache 2019-05-20 14:36:54 +10:00
Paul Hauner
cb74187cfc Re-add old cache tests 2019-05-20 14:25:38 +10:00
Paul Hauner
89df2b173e Add more epoch_cache tests 2019-05-20 14:04:02 +10:00
Paul Hauner
2fd45e093c Remove shard_count from ChainSpec 2019-05-20 14:00:47 +10:00
Paul Hauner
7ea1c4bb12 Ensure BeaconState epoch tests use distinct seed 2019-05-20 11:02:18 +10:00
Paul Hauner
d868d82124 Add more EpochCache tests 2019-05-19 19:08:10 +10:00
Paul Hauner
399ad6e2bd Add a "minimum_validator_count" to EthSpec 2019-05-19 19:07:53 +10:00
Paul Hauner
1565096008 Move committee tests to beacon state tests
They used to be in epoch_cache tests but they were really testing
BeaconState interfaces.
2019-05-19 18:15:32 +10:00
Paul Hauner
05b38cbb7b Tidy epoch processing, improve testing 2019-05-19 18:07:18 +10:00
Paul Hauner
94a39c3cb6 Implement state.get_crosslink_committees_at_slot 2019-05-19 17:21:24 +10:00
Paul Hauner
9264ec1aa9 Remove state.get_crosslink_committee fn
Replaced by state.get_crosslink_committee_for_shard
2019-05-19 17:08:09 +10:00
Paul Hauner
ea96d24420 Make #stateprocessingcompileagain 2019-05-19 16:56:39 +10:00
Paul Hauner
29a3e0c868 Move beacon state fns to be RelativeEpoch native 2019-05-19 16:03:54 +10:00
Paul Hauner
9eb8c7411f Make EpochCache store shuffling and less maps 2019-05-19 15:41:22 +10:00