Commit Graph

28 Commits

Author SHA1 Message Date
Michael Sproul
371e5adcf8 Update to Spec v0.10 (#817)
* Start updating types

* WIP

* Signature hacking

* Existing EF tests passing with fake_crypto

* Updates

* Delete outdated API spec

* The refactor continues

* It compiles

* WIP test fixes

* All release tests passing bar genesis state parsing

* Update and test YamlConfig

* Update to spec v0.10 compatible BLS

* Updates to BLS EF tests

* Add EF test for AggregateVerify

And delete unused hash2curve tests for uncompressed points

* Update EF tests to v0.10.1

* Use optional block root correctly in block proc

* Use genesis fork in deposit domain. All tests pass

* Cargo fmt

* Fast aggregate verify test

* Update REST API docs

* Cargo fmt

* Fix unused import

* Bump spec tags to v0.10.1

* Add `seconds_per_eth1_block` to chainspec

* Update to timestamp based eth1 voting scheme

* Return None from `get_votes_to_consider` if block cache is empty

* Handle overflows in `is_candidate_block`

* Revert to failing tests

* Fix eth1 data sets test

* Choose default vote according to spec

* Fix collect_valid_votes tests

* Fix `get_votes_to_consider` to choose all eligible blocks

* Uncomment winning_vote tests

* Add comments; remove unused code

* Reduce seconds_per_eth1_block for simulation

* Addressed review comments

* Add test for default vote case

* Fix logs

* Remove unused functions

* Meter default eth1 votes

* Fix comments

* Address review comments; remove unused dependency

* Disable/delete two outdated tests

* Bump eth1 default vote warn to error

* Delete outdated eth1 test

Co-authored-by: Pawan Dhananjay <pawandhananjay@gmail.com>
2020-02-11 10:19:36 +11:00
Michael Sproul
24e941d175 Update to spec v0.9.1 (#597)
* Update to spec v0.9.0

* Update to v0.9.1

* Bump spec tags for v0.9.1

* Formatting, fix CI failures

* Resolve accidental KeyPair merge conflict

* Document new BeaconState functions

* Fix incorrect cache drops in `advance_caches`

* Update fork choice for v0.9.1

* Clean up some FIXMEs

* Fix a few docs/logs
2019-11-21 11:47:30 +11:00
Michael Sproul
d511c939eb SSZ generic tests for big uints 2019-09-04 14:32:04 +10:00
Michael Sproul
f47eaf5730 Parallel tests and SSZ generic 2019-09-03 16:46:10 +10:00
Michael Sproul
6cf9b3c1a4 Epoch processing tests 2019-08-30 13:29:26 +10:00
Michael Sproul
81cafdc804 Shuffling and sanity tests 2019-08-29 17:41:20 +10:00
Michael Sproul
23a308e595 BLS and SSZ static tests 2019-08-28 18:46:16 +10:00
Paul Hauner
a71f05066b Merge branch 'docker-env' into v0.6.1 2019-06-13 10:37:35 -04:00
Michael Sproul
c649988189 ef_tests: skipped tests and bls_setting support 2019-06-11 18:06:15 +10:00
Paul Hauner
749f2fcb5f Unify EthSpecs in Mainnet and Minimal 2019-06-08 08:49:04 -04:00
Paul Hauner
92610b4fd3 Improve error messages for ef_tests 2019-05-23 16:55:50 +10:00
Paul Hauner
6fada99905 Refactor ef_tests for less code duplication 2019-05-22 16:15:52 +10:00
Paul Hauner
5a361b852a Tidy import structure in ef_tests 2019-05-15 11:41:25 +10:00
Paul Hauner
4cb23dd342 Rename Test trait to EfTest 2019-05-15 11:27:22 +10:00
Paul Hauner
57040efc2a Rename DocCases to Cases 2019-05-15 11:17:32 +10:00
Paul Hauner
2b8e8ce59e Replace TestDoc with Doc 2019-05-15 11:15:34 +10:00
Paul Hauner
b7a8613444 Rename TestDecode to YamlDecode 2019-05-15 11:12:49 +10:00
Paul Hauner
9f42d4d764 Extend ssz-static testing 2019-05-15 09:50:05 +10:00
Paul Hauner
523caf52d6 Allow for decode ssz_static tests 2019-05-14 15:08:42 +10:00
Paul Hauner
b280c220eb Re-organise ef_tests 2019-05-14 11:13:28 +10:00
Paul Hauner
c3b4739a11 Add untested ssz_static test impl 2019-05-14 10:01:20 +10:00
Paul Hauner
55ff1e0b40 Move ssz_generic tests into own file 2019-05-14 09:36:25 +10:00
Paul Hauner
1f6e393ff0 Tidy up ef_tests 2019-05-14 09:27:27 +10:00
Paul Hauner
e53abe3f0b Improve ef_tests errors 2019-05-13 22:20:00 +10:00
Paul Hauner
068b6fafde Merge branch 'ef-tests' of github.com:sigp/lighthouse into ef-tests 2019-05-13 22:14:47 +10:00
Paul Hauner
cf509bea9b Improve ef_tests crate 2019-05-13 22:10:23 +10:00
Paul Hauner
beb5537904 Improve ef_tests 2019-05-13 18:09:19 +10:00
Paul Hauner
31d960011f Add basic code for new testing format 2019-05-13 17:56:46 +10:00