Hsiao-Wei Wang
78a4897418
Add fork choice rule format doc
2021-03-12 00:33:04 +08:00
Danny Ryan
79f351cfca
Merge branch 'dev' into leak-scores
2021-03-11 09:28:58 -07:00
Hsiao-Wei Wang
8e303b60b9
Fix generator to ssz_snappy mode
2021-03-12 00:06:52 +08: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
4569ddea5d
add missing sanity requirements.txt for generators
2021-03-10 18:49:50 -07:00
Danny Ryan
c36106e630
put snappy in 'generator' extra dep build and use for generator builds
2021-03-10 17:18:11 -07:00
Danny Ryan
7205f70192
patch remaining generator docs to reflect snappy_ssz encoding
2021-03-10 16:48:53 -07: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
338be1f636
clean up fork gens
2021-03-09 16:27:06 -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
f71a3c6b22
Generate with mainnet config
2021-03-09 21:34:45 +08:00
Hsiao-Wei Wang
5e864af67a
Reload Altair spec
2021-03-09 21:32:37 +08: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
Danny Ryan
63e014791c
Merge branch 'dev' into dev-merge
2021-02-24 16:23:04 -07:00
Danny Ryan
fb974ed37f
bump version to 1.0.1
2021-02-23 16:40:19 -07:00
Danny Ryan
7af50cc827
add eth1 withdrawal credentials to spec
2021-02-23 16:16:35 -07:00
Hsiao-Wei Wang
63d3dae7a9
Merge pull request #2210 from mpetrunic/mpetrunic/lc-ssz-static
...
Disable phase1/enable lightclient ssz static types tests generators
2021-02-23 22:26:13 +08:00
Marin Petrunić
d28ec2fc75
fix lint
2021-02-23 14:46:53 +01:00
Hsiao-Wei Wang
993bcdf082
Use constants
2021-02-23 14:25:13 +01:00
Marin Petrunić
1d4f467516
disable phase1/enable lightclient ssz static types test
2021-02-23 13:30:26 +01:00
Marin Petrunić
e63754e629
change how generator targets are invoked
2021-02-23 13:23:32 +01:00
Marin Petrunić
9f634dc6f6
Update test generation docs
2021-02-23 09:56:38 +01:00
Danny Ryan
e35b850181
Merge pull request #2198 from ethereum/hf1-config
...
update penalty config values for hf1
2021-02-22 18:26:43 -06:00
Danny Ryan
6df3de8506
Merge pull request #2199 from ethereum/turn_off_phase1_testgen
...
[testgen] turn off phase 1, turn on HF1, and refactoring
2021-02-22 13:28:19 -06:00
Hsiao-Wei Wang
f6b8171350
Update shuffling generator requirements.txt
2021-02-22 19:45:10 +08:00
Hsiao-Wei Wang
de4cad5d35
Update docs
2021-02-22 18:40:04 +08:00
Hsiao-Wei Wang
27507fb3e2
Add `get_head` test vectors
2021-02-19 13:08:35 +08:00
Hsiao-Wei Wang
e58dcb40ac
Clean up and kick the cache
2021-02-18 17:51:01 +08:00
Hsiao-Wei Wang
9cc8567d68
Move `gen_helpers` into a module of `eth2spec` package
2021-02-18 15:17:47 +08:00
Danny Ryan
8ec082fcf9
Merge pull request #2149 from ethereum/0x01-creds
...
Eth1 withdrawal credentials (0x01)
2021-02-16 13:06:34 -06:00
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
dda7010c0c
Fix the tests that use `MIN_SLASHING_PENALTY_QUOTIENT`. (The mainnet tests failed before this fix)
2021-02-13 23:02:06 +08:00
Hsiao-Wei Wang
24a244eb9b
Fix typo: `get_slashing_multipler` -> `get_slashing_multiplier`
2021-02-13 22:48:34 +08:00
Danny Ryan
2b8b0d9e2b
update penalty config values for hf1
2021-02-11 15:55:43 -07:00
Danny Ryan
34cea67b91
ValidatorFlags -> ValidatorFlag
2021-02-04 08:45:25 -07:00
Danny Ryan
1c1ba5cba2
minor PR feedback
2021-02-02 12:35:00 -07:00
protolambda
e865670111
add missing decorators for testruns in no-bls mode
2021-02-01 21:47:00 +01:00
protolambda
3677073812
bitvector[8] -> uint8, for efficient packing in flags merkle tree
2021-02-01 21:46:27 +01:00
Danny Ryan
1ba4917119
add process_attestation tests to cover various timing and correctness scenarios
2021-02-01 08:35:58 -07:00
Danny Ryan
b029c75d88
must be correct target to get correct head
2021-02-01 07:52:06 -07:00
Danny Ryan
ad01c85ff6
minor reorder to process_epoch calls
2021-02-01 07:06:29 -07:00
Hsiao-Wei Wang
6ce4b1b0e7
Fix tests
2021-01-29 10:39:13 -07:00
Danny Ryan
46848e4202
Merge branch 'dev' into accounting-reform
2021-01-29 08:49:51 -07: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
Hsiao-Wei Wang
a340f30e61
Merge branch 'dev' into accounting-reform
2021-01-13 14:44:17 +08:00
Hsiao-Wei Wang
252c331255
Fix existing tests on #2176 (accounting reform) ( #2180 )
...
* Fixing tests
* Add `is_post_lightclient_patch` helper to determine the fork version condition
2021-01-13 14:29:18 +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
Hsiao-Wei Wang
9c75c3819d
Fix `previous_epoch_participation` and `current_epoch_participation` initialization
2021-01-06 02:09:39 +08:00
Hsiao-Wei Wang
844c879f1c
Bump `py_ecc` and `milagro_bls_binding` ( #2169 )
...
* Bump py_ecc to v5.1.0 and milagro_bls_binding to v1.6.2
* python3.8 -> python3 for py39 compatibility
* fix
* Try python:3.9
* Revert: using Python3.8 in CI now
2021-01-05 21:00:52 +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
d01a4ad823
Fix depth calculation...again(!) and add unittests
2020-12-16 15:01:22 +08:00
Hsiao-Wei Wang
bcde37c39f
Make `sync-protocol.md` pass the linter
2020-12-15 13:24:43 +08: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
6b728c1880
add eth1 withdrawal credentials to spec
2020-12-11 15:03:58 -07: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