Commit Graph

362 Commits

Author SHA1 Message Date
Hsiao-Wei Wang
c7d975981c Refactor state tests generators 2021-02-15 22:48:34 +08:00
Hsiao-Wei Wang
600a4daddf Turn off phase1 testgen and turn on lightclient_patch testgen 2021-02-15 22:29:27 +08:00
Hsiao-Wei Wang
1b00c10ed3 Apply @michaelsproul's feedback 2021-01-27 14:47:52 +08:00
Hsiao-Wei Wang
ae218015b7 Merge branch 'dev' into re_process_final_updates_fix 2021-01-27 03:02:24 +08:00
Hsiao-Wei Wang
15e48f712b Fix Phase 1 epoch_processing and fix epoch_processing testgen 2021-01-27 03:02:12 +08:00
Hsiao-Wei Wang
1e7c33810f Merge pull request #2189 from ralexstokes/duplicate-sync-committee-patch
test refactor to use helper for duplicates in light client committees
2021-01-22 09:55:52 +08:00
Alex Stokes
0e415fe7c7 comments no longer apply 2021-01-21 15:39:04 -08:00
Alex Stokes
3847e425b1 refactor to use helper for duplicates in light client committees, rather than config changes 2021-01-21 15:39:04 -08:00
Hsiao-Wei Wang
17a04c2728 PR feedback from @ralexstokes 2021-01-21 23:03:44 +08:00
Hsiao-Wei Wang
93d19bdf40 Update and add tests 2021-01-19 22:03:01 +08:00
Hsiao-Wei Wang
c5d9aa2502 Fix test cases for minimal and mainnet configs 2021-01-19 20:00:43 +08:00
Hsiao-Wei Wang
2a6699290f Revert "Fix SyncCommittee"
This reverts commit b2658f1091.
2021-01-14 01:47:40 +08:00
Hsiao-Wei Wang
b2658f1091 Fix SyncCommittee
1. Make `get_sync_committee_indices` do not return duplicate indices
2. Pad default values to Vectors
2021-01-13 20:12:52 +08:00
Alex Stokes
e518c4d04d update test to use fresh sync committees
the way the test infra is built we end up with
two identical sync committees at epoch 0.
2021-01-12 09:31:07 -08:00
Alex Stokes
5001588285 Add additional sync committee tests 2021-01-07 12:53:16 -08:00
Alex Stokes
ac6dbd1c35 Add sync committee test for signature over incorrect block 2021-01-07 11:28:21 -08:00
Alex Stokes
61d141b4db Use more clear names for tests 2021-01-07 10:57:54 -08:00
Alex Stokes
1a3fefcc93 Refactor epoch processing test helpers 2021-01-07 10:55:51 -08:00
Alex Stokes
049075b44a Refactor sync committee helpers 2021-01-07 10:42:21 -08:00
Alex Stokes
7e82b54131 Update tests/core/pyspec/eth2spec/test/lightclient_patch/block_processing/test_process_sync_committee.py
Add clarifying comment

Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
2021-01-07 09:45:20 -08:00
Alex Stokes
cc7ae4abd0 Add test for sync committee block rewards 2021-01-06 10:25:55 -08:00
Alex Stokes
547cb0f38f Add epoch processing test for sync committee updates 2021-01-06 09:45:17 -08:00
Alex Stokes
781f344409 Add test for invalid sync committee signature 2021-01-06 09:45:17 -08:00
Alex Stokes
955a01c49b Add basic test for invalid sync committee bits 2021-01-06 09:45:17 -08:00
Alex Stokes
b94af435da Refactor helpers into separate module 2021-01-06 09:45:17 -08:00
Alex Stokes
71c5eb5c2f Update names in pyspec README
Names for pip categories have been updated
2020-12-18 11:11:44 -08:00
Danny Ryan
89c5ca6bcd 'light_client' -> 'sync_committee' 2020-12-17 06:30:36 -07:00
Danny Ryan
cc9a4cdc46 add base sanity light client tests 2020-12-16 17:14:42 -07:00
Hsiao-Wei Wang
acfe49e3f3 executable light client patch: beacon-chain.md (#2141)
* Bump remerkleable to 0.1.18

* Disable `sync-protocol.md` for now. Make linter pass

* Enable lightclient tests

* Use *new* `optional_fast_aggregate_verify`

* Fix ToC and codespell

* Do not run phase1 tests with Lightclient patch

* Fix the Eth1Data casting bug. Add a workaround.

* Fix `run_on_attestation` testing helper

* Revert

* Rename `optional_fast_aggregate_verify` to `eth2_fast_aggregate_verify`

* Apply Proto's suggestion

* Apply Danny's suggestion

* Fixing tests

* Fix after rebasing

* Rename `LIGHTCLIENT` -> `LIGHTCLIENT_PATCH`

* New doctoc

* Add lightclient patch configs

* fix gitignore light client patch generator output

* Upgrade state for light client patch

* Add `lightclient-fork.md` to deal the fork boundary and fix
`process_block_header`

* Misc cleanups

1) Add a summary note for every function that is changed.
2) Avoid changing `process_block` (instead only change `process_block_header`).
3) Rename `G2_INFINITY_POINT_SIG` to `G2_POINT_AT_INFINITY` to avoid `SIG` contraction.
4) Misc cleanups

* Update block.py

* Update beacon-chain.md

* Fix typo "minimal" -> "mainnet"

Co-authored-by: Marin Petrunić <mpetrunic@users.noreply.github.com>

* Use the new `BeaconBlockHeader` instead of phase 0 version

* Update config files

* Move `sync_committee_bits` and `sync_committee_signature` back to `BeaconBlockBody`

Co-authored-by: protolambda <proto@protolambda.com>
Co-authored-by: Justin <drakefjustin@gmail.com>
Co-authored-by: Marin Petrunić <mpetrunic@users.noreply.github.com>
2020-12-15 13:18:20 +08:00
Danny Ryan
226f1d4dfc fix multi-operation test runner helper 2020-11-06 07:05:52 -06:00
Danny Ryan
7589af8e8d remove wip notice on phase 0 specs 2020-11-04 09:30:29 -06:00
Danny Ryan
15270b7933 bump VERSION.txt to 1.0.0 2020-11-03 17:15:36 -06:00
Danny Ryan
276ca6d4d3 pr feedback
Co-authored-by: Diederik Loerakker <proto@protolambda.com>
2020-11-03 16:27:47 -06:00
Danny Ryan
a8c1d21589 add attestation test for off by one committee index 2020-11-03 15:49:34 -06:00
Danny Ryan
f7a9493ca0 multi-op tests 2020-10-20 17:00:16 -06:00
Danny Ryan
a34970f8a3 move op tests to test_blocks 2020-10-16 08:27:28 -06:00
Danny Ryan
aab58e4700 update sanity generators to generate the oepration block tests as well 2020-10-14 17:41:11 -06:00
Danny Ryan
c17a95a175 add note about how slashings and exits can interact. add test 2020-10-14 17:33:14 -06:00
Danny Ryan
a61c56a6b6 add a few rewards tests for duplicate style attestations 2020-10-13 16:15:35 -06:00
Danny Ryan
2e09c91e39 fix test generators for mainnet max slashing penalties 2020-10-06 11:34:33 -06:00
Hsiao-Wei Wang
00a19e583e Bump milagro_bls_binding to 1.5.0 2020-10-06 16:17:29 +08:00
Hsiao-Wei Wang
d264ad8af7 Merge pull request #2080 from ethereum/bls_v4
Bump IETF BLS spec version draft 03 -> draft 04
2020-10-05 22:12:52 +08:00
Hsiao-Wei Wang
4d3ac72473 Bump milagro_bls_binding to 1.4.0, handle the exception cases 2020-10-05 21:55:49 +08:00
Danny Ryan
9f36fd6954 PR feedback. thanks @hwwhww 2020-09-29 10:02:28 -06:00
Danny Ryan
0e2e494d7e fix function signature calls on deposit helpers 2020-09-28 20:25:24 -06:00
Danny Ryan
76d69263fc use better rng practice for reproducibility 2020-09-28 18:26:03 -06:00
Danny Ryan
4e2c7d20b7 add additional genesis initialization tests 2020-09-28 17:55:54 -06:00
Danny Ryan
157f7e8ef4 upgrade config to mainnet values 2020-09-28 12:56:08 -06:00
Hsiao-Wei Wang
19d6c8336a Add IETF BLS draft 04 edge cases test vectors 2020-09-25 15:01:38 +08:00
Danny Ryan
68bcc19e09 Merge pull request #1957 from ethereum/testgenphase1
Enable test generation for phase1
2020-09-18 08:44:38 -06:00