Hsiao-Wei Wang
2063c96c80
Merge branch 'dev' into prepare_state
2021-04-21 16:34:29 +08:00
protolambda
c99d72d541
update pyspec dev usage docs, improve makefile
2021-04-21 03:28:22 +02:00
Danny Ryan
1694cdbd02
add always_bls for historical batch sanity test
2021-04-20 13:40:25 -06:00
Hsiao-Wei Wang
66e1a2858f
Use `ALTAIR_FORK_EPOCH` instead of `ALTAIR_FORK_SLOT`
2021-04-21 00:24:44 +08:00
Danny Ryan
c8bbc7dc97
Merge pull request #2334 from ethereum/committee-test
...
add committee progress tests for non genesis case
2021-04-20 08:39:25 -05:00
Danny Ryan
55f2cc6e41
address @ralexstokes PR comments
2021-04-16 11:42:26 -05:00
Danny Ryan
7167c5a9d9
generate sync committee update tests with always_bls
2021-04-16 11:32:27 -05:00
Hsiao-Wei Wang
1961831348
Merge branch 'dev' into prepare_state
2021-04-16 11:36:02 +08:00
Danny Ryan
81a83898cf
add committee progress tests for non genesis case
2021-04-15 12:19:51 -05:00
Hsiao-Wei Wang
26f54d6f22
Remove `CONFIG_NAME` from the config files. And add it back to pyspec context for testing
2021-04-15 15:49:29 +08:00
Hsiao-Wei Wang
bb63af53c9
Refactor genesis.py
2021-04-15 15:40:38 +08:00
Hsiao-Wei Wang
62c828bd4b
Merge branch 'dev' into prepare_state
2021-04-13 20:50:13 +08:00
Danny Ryan
1235e58a8d
Merge pull request #2325 from ethereum/pyspec-constants
...
Refactor pyspec `context.py` by adding `typing.py` and `constants.py`
2021-04-13 06:02:25 -05:00
Alex Stokes
18fc7c0498
Merge pull request #2311 from ralexstokes/add-altair-val-tests
...
Add some basic tests for Altair validator guide
2021-04-12 15:19:44 -07:00
Hsiao-Wei Wang
cd43d64809
Move constants to `eth2spec.test.helpers.constants`
2021-04-12 22:34:00 +08:00
Hsiao-Wei Wang
a8160f1634
Try to initialize state with pure Altair spec in tests
2021-04-10 00:53:37 +08:00
Alex Stokes
66905f4fa6
update test to work for both minimal and mainnet config
2021-04-08 18:25:58 -07:00
Alex Stokes
e4e65295b6
modify assignment test when sync committee size >= validator count
2021-04-08 18:00:58 -07:00
Alex Stokes
3fd4974430
iterate over the correct number of subcommittees
2021-04-08 17:44:54 -07:00
Alex Stokes
749b49898a
file reorg
2021-04-08 17:44:54 -07:00
Alex Stokes
4678ffc794
Update tests/core/pyspec/eth2spec/test/altair/validator/test_validator.py
...
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
2021-04-08 17:44:53 -07:00
Alex Stokes
5e43ad69cf
Add some basic tests for Altair validator guide
2021-04-08 17:44:53 -07:00
Hsiao-Wei Wang
6e8b4b3ea9
Add eth2spec.merge.spec
2021-04-08 05:57:16 +08:00
Danny Ryan
20b465e788
bump VERSION.txt to 1.1.0-alpha.3
2021-04-05 18:07:59 -06:00
Aditya Asgaonkar
9e5ee0a083
Remove unnecesssary change
2021-04-03 17:43:18 -07:00
Aditya Asgaonkar
5194dd123c
TIL fictitious
2021-04-03 17:26:12 -07:00
Aditya Asgaonkar
9ec252e6f2
Fix linter
2021-04-03 17:22:33 -07:00
Aditya Asgaonkar
6e6afac86f
Remove unnecessary asserts
2021-04-03 17:17:43 -07:00
Aditya Asgaonkar
21b878364a
Fix checkpoint hierarchy consistency in tests
2021-04-03 17:09:08 -07:00
Aditya Asgaonkar
2478e1526a
Fix block hierarchy consistency in tests
2021-04-03 16:50:43 -07:00
Aditya Asgaonkar
9eb662786a
Add consistency checks in on_block tests
2021-04-01 06:33:37 -07:00
Hsiao-Wei Wang
2def461298
Merge branch 'dev' into altair_incentives
2021-03-31 00:53:58 +08:00
protolambda
d28cac0e8f
clean up test phase 1 testgen references
2021-03-29 15:38:43 +02:00
protolambda
2bc3e814b0
rename to custody game
2021-03-27 01:58:39 +01:00
protolambda
0c94be4204
clean up more phase1 test references
2021-03-27 00:14:32 +01:00
protolambda
a6c01f8212
no phase1 in tests, per-feature testing now, executable specs will be re-enabled per feature
2021-03-26 23:21:36 +01:00
protolambda
906cde0610
preserve proof of custody tests
2021-03-26 23:10:56 +01:00
protolambda
14cb996613
split phase1 tests into proof-of-custody and sharding tests, drop old shard-transition specific tests
2021-03-26 23:01:24 +01:00
Danny Ryan
d773c6ae9e
lint from pr
2021-03-26 08:28:34 -06:00
Barnabé Monnot
d1c9b8bade
Fix variable name
2021-03-26 19:03:12 +08:00
Barnabé Monnot
582965fd0b
Deprecate PROPOSER_REWARD_QUOTIENT from tests
2021-03-26 18:57:02 +08:00
Barnabé Monnot
71d03a411c
Scale up weights; use existing constants and new PROPOSER_WEIGHT
2021-03-26 18:36:49 +08:00
Barnabé Monnot
59134fb0ae
Modify incentives to preserve invariant
2021-03-26 12:18:51 +08:00
Danny Ryan
6c0a0ab3f2
patch test_filtered_block_tree test generator based on @ajsutton report
2021-03-24 12:57:14 -06:00
Danny Ryan
3a5f0e994a
Merge pull request #2253 from ethereum/master
...
backport generator fixes to dev
2021-03-22 11:11:10 -06:00
Danny Ryan
3374784bd3
Merge pull request #2261 from ethereum/altair-test-format-fix
...
Altair tests - fix mixed up formats
2021-03-22 11:10:56 -06:00
protolambda
4dd855667a
fix mixed up formats. Output slots as ints, output genesis eth1 init data as yaml dict
2021-03-22 02:50:05 +01:00
protolambda
4a82a375ae
avoid altair fork version collision, update test prep, fix genesis state creator bug
2021-03-21 22:07:28 +01:00
Danny Ryan
1707978189
fix v1.1.0-alpha.1 generators
2021-03-17 10:32:23 -06:00
Danny Ryan
e2c9a15aaf
Merge pull request #2246 from ethereum/sync_rewards
...
refactor sync committee rewards
2021-03-16 20:27:04 -06:00
Danny Ryan
7e1f7c392e
bump version.txt to 1.1.0-alpha.1
2021-03-16 20:03:19 -06:00
Hsiao-Wei Wang
2ee559eca1
Fix `SkippedTest` cases. Should remove the folder
2021-03-17 02:40:59 +08:00
Danny Ryan
b0a9fc8277
clean up and extend sync committee rewards tests
2021-03-16 11:18:26 -06:00
Hsiao-Wei Wang
d3c9eacd14
Disable MAINNET test_valid_signature_future_committee
2021-03-17 00:28:12 +08:00
Hsiao-Wei Wang
c9de95541f
Use a dummy `INCOMPLETE` file to indicate that the test generation is incomplete
2021-03-17 00:28:09 +08:00
Justin Drake
27e88a2484
(WIP) refactor sync committee rewards
2021-03-16 15:30:25 +00:00
Danny Ryan
0a97f65729
Merge pull request #2243 from ethereum/fix-altair-gens
...
fix altair test generators
2021-03-16 08:26:29 -06:00
Danny Ryan
85d323c227
Merge pull request #2242 from ethereum/sync_aggregate
...
Define SyncAggregate to bundle sync committee bits and signature
2021-03-15 15:48:20 -06:00
protolambda
1eaa3c1742
Define SyncAggregate to bundle sync committee bits and signature, update tests to better isolate the state-change, introduce helper function for future tests, and update test doc
2021-03-15 21:55:36 +01:00
Danny Ryan
06eed71856
fix altair test generators
2021-03-15 13:10:19 -06:00
Danny Ryan
4afb6533a2
suffix ALTAIR on update constants
2021-03-15 11:46:53 -06:00
Hsiao-Wei Wang
64dbcdce35
Use @with_all_phases
2021-03-16 01:10:18 +08:00
Hsiao-Wei Wang
734863a6d6
Skip mainnet genesis tests
2021-03-16 00:46:57 +08:00
Hsiao-Wei Wang
1a4bbdfd79
Disable `test_sync_committees_progress` + mainnet config
2021-03-16 00:16:27 +08:00
Hsiao-Wei Wang
d590eebd36
`SpecLightclient` -> `SpecAltair`
2021-03-16 00:00:08 +08:00
Hsiao-Wei Wang
78211a3649
Enable Altair genesis tests
2021-03-16 00:00:04 +08:00
Danny Ryan
b8bf7f0f80
Merge pull request #2236 from ethereum/justin_altair_cleanups
...
Altair cosmetic cleanups plus a couple substantive changes
2021-03-15 08:57:35 -06:00
Justin Drake
8e815dd3f7
revert rename of to
2021-03-15 11:25:59 +00:00
Justin Drake
5a16f99302
Fix line too long
2021-03-15 11:21:05 +00:00
Justin Drake
e7ebd08d69
Altair cosmetic cleanups plus a couple substantive changes
2021-03-15 11:08:41 +00:00
Hsiao-Wei Wang
1c0238075e
Fix some leftover from #2097
2021-03-13 12:42:51 +08:00
Hsiao-Wei Wang
5dcc9927c8
Merge pull request #2202 from ethereum/fork-choice-test-vectors
...
fork-choice test vectors: starting with `get_head` tests
2021-03-13 12:08:33 +08:00
Hsiao-Wei Wang
e77ba91821
Apply proto's feedback, fix+refactor test_get_head, fix test format doc
...
Note that to execute on_attestation after on_block
Output more checking field
Disable mainnet config test_filtered_block_tree
Fix after rectoring + use more run_on_block
Fix and refactor `tick_and_run_on_attestation`
2021-03-13 00:29:35 +08:00
Danny Ryan
65dcf897c2
Merge pull request #2147 from ethereum/lightclient-sync-exe
...
Make `sync-protocol.md` pass the linter and add basic tests
2021-03-12 07:52:45 -07:00
Hsiao-Wei Wang
d29926efe6
Remove the duplicate get_head unit test
2021-03-12 21:05:23 +08:00
Hsiao-Wei Wang
a1e74b2c18
Fix conflicts
2021-03-12 01:05:26 +08:00
Hsiao-Wei Wang
c34eae33d0
Merge branch 'dev' into lightclient-sync-exe
2021-03-12 00:49:29 +08:00
Hsiao-Wei Wang
216bbb0a46
Merge branch 'dev' into fork-choice-test-vectors
2021-03-12 00:34:23 +08:00
Danny Ryan
79f351cfca
Merge branch 'dev' into leak-scores
2021-03-11 09:28:58 -07:00
Hsiao-Wei Wang
96e29841a7
Merge branch 'dev' into fork-choice-test-vectors
2021-03-11 23:45:54 +08:00
Hsiao-Wei Wang
72832c8b9c
Fix test
2021-03-11 22:25:48 +08:00
Hsiao-Wei Wang
b44e576e95
LIGHTCLIENT_PATCH/HF1 -> ALTAIR
2021-03-11 21:32:00 +08:00
Hsiao-Wei Wang
69489d1541
Rename folders and file names to `altair`
2021-03-11 21:12:46 +08:00
Hsiao-Wei Wang
2de64cbda1
Add `process_light_client_update` tests
2021-03-11 21:06:58 +08:00
Danny Ryan
813608928c
Merge branch 'dev' into tests-compression
2021-03-10 16:43:02 -07:00
Danny Ryan
36b6f8c3bf
Merge branch 'dev' into lightclient-sync-exe
2021-03-10 16:25:01 -07:00
Danny Ryan
cc191a0e2c
Merge branch 'dev' into leak-scores
2021-03-10 13:18:58 -07:00
Danny Ryan
37c49ffcdc
ensure rewards are tested properly post altair fork
2021-03-10 13:11:03 -07:00
Danny Ryan
1f3e73703c
use 'other_phases' for fork tests
2021-03-10 12:52:35 -07:00
Danny Ryan
e792c27c91
@hwwhww review
...
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
2021-03-10 12:27:50 -07:00
Danny Ryan
f9b54ea03b
remove fork_test
2021-03-09 16:18:30 -07:00
Danny Ryan
956a7a2ef1
Update tests/core/pyspec/eth2spec/test/context.py
2021-03-09 16:09:08 -07:00
Danny Ryan
e2abdb74ae
port testing
2021-03-09 15:41:28 -07:00
Hsiao-Wei Wang
f025ec40c5
Fix linter error
2021-03-09 21:21:32 +08:00
Hsiao-Wei Wang
7a10c7108a
Fix decorator calls
2021-03-09 21:21:10 +08:00
Hsiao-Wei Wang
f97ea9e172
Generate basic tests. Still having problem with generating `with_custom_state` tests
2021-03-09 20:55:39 +08:00
Hsiao-Wei Wang
50fb3da072
Make test_fork.py truly pass
2021-03-09 20:54:48 +08:00
Danny Ryan
6c406753f1
working through test gens
2021-03-08 19:11:31 -07:00
Danny Ryan
d6961f636d
add base hf1 fork function tests
2021-03-08 17:21:01 -07:00
Danny Ryan
deace8768e
port @justindrake's general cleanups from #2212
2021-03-01 19:41:28 -07:00