Hsiao-Wei Wang
35d444b9d2
Update test format and output `should_override_forkchoice_update` result
2023-10-25 02:10:55 +08:00
Hsiao-Wei Wang
01fa0fe64a
Replace `ROOTS_OF_UNITY` with runtime-computed `compute_roots_of_unity(FIELD_ELEMENTS_PER_BLOB)`
2023-10-16 17:38:09 +08:00
Hsiao-Wei Wang
0052e68019
Fix linter error
2023-09-25 17:46:43 +08:00
George Kadianakis
a2d500f684
generators/kzg_4844: Add positive G1_POINT_AT_INFINITY test vectors
2023-09-22 15:07:55 +03:00
Hsiao-Wei Wang
395bb71442
Add `verify_kzg_proof_case_incorrect_proof_point_at_infinity`
2023-09-20 00:39:47 +08:00
Hsiao-Wei Wang
256367b17c
Group the "incorrect_proof" test cases
2023-09-20 00:21:18 +08:00
Hsiao-Wei Wang
171ae02280
Apply suggestions from code review
...
Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>
2023-09-20 00:18:08 +08:00
Hsiao-Wei Wang
6041c9b9d6
Add KZGProof at `G1_POINT_AT_INFINITY` case
2023-09-19 23:55:09 +08:00
Hsiao-Wei Wang
264dfadfe0
Merge branch 'dev' into pr3499
2023-09-18 18:07:39 +08:00
Hsiao-Wei Wang
e5e50e3e40
Add EIP-7514 into Deneb
2023-09-15 10:49:06 +08:00
Hsiao-Wei Wang
fc03e8f714
Rename BLS/KZG suite name
2023-08-20 12:27:19 -06:00
Hsiao-Wei Wang
8d6a40522c
Merge pull request #3468 from wenceslas-sanchez/dev
...
🐛 Fix redundant SSZ generic tests
2023-08-04 14:29:10 +08:00
Wenceslas Sanchez
522ab42064
Update tests/generators/ssz_generic/ssz_container.py
...
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
2023-08-03 21:14:45 +02:00
WenceslasSANCHEZ
5612e7a9ee
♻️ refactor
2023-08-03 18:19:33 +02:00
WenceslasSANCHEZ
da2121060e
♻️ refactor + linter comments
2023-08-01 22:19:48 +02:00
WenceslasSANCHEZ
6231dc2e4e
🐛 split variation with and without chaos
2023-08-01 22:09:35 +02:00
WenceslasSANCHEZ
01dfc77202
🐛 remove non-random mode from variation
2023-08-01 21:47:08 +02:00
WenceslasSANCHEZ
872e404bce
⏪ ️ reset ``chaos`` to False
2023-08-01 21:46:16 +02:00
WenceslasSANCHEZ
bd34c6560c
🐛 remove redundant modes for container without offsets
2023-08-01 21:45:30 +02:00
WenceslasSANCHEZ
b412bdb34e
✨ allow `container_case_fn` to change chaos mode
2023-08-01 21:44:35 +02:00
WenceslasSANCHEZ
6e4d4896ed
🐛 set chaos to `True` to enable uint variation for non random tests
2023-07-27 21:17:45 +02:00
Hsiao-Wei Wang
2210cea734
Add deneb fc tests and update test format
2023-07-25 22:29:12 +08:00
Hsiao-Wei Wang
420f8baf67
Rework tests. Move all `process_voluntary_exit` tests to Deneb
2023-06-14 23:04:46 +08:00
Hsiao-Wei Wang
5f241bb7a4
Merge branch 'deneb-4844-clean' into pr3288-comment
2023-06-07 18:38:20 +08:00
Hsiao-Wei Wang
dde9301610
fix lint
2023-06-02 00:15:45 +08:00
Hsiao-Wei Wang
e1a55238f2
Delete eip6110_mods
2023-06-02 00:06:47 +08:00
Hsiao-Wei Wang
be33c4008a
Merge branch 'dev' into pr3288
2023-05-30 21:08:12 +08:00
Hsiao-Wei Wang
8d32e79b8d
Fix multiprocessing
2023-05-24 21:03:58 +08:00
Hsiao-Wei Wang
6b5513b43a
Merge branch 'dev' into engine-versioned-hashes
2023-05-24 11:19:56 +08:00
Hsiao-Wei Wang
d018635c96
Merge pull request #3350 from ethereum/remove-is_execution_enabled
...
Remove `is_execution_enabled` condition since Capella
2023-05-24 10:36:34 +08:00
Hsiao-Wei Wang
48618fe866
Fix tests
2023-05-24 00:08:45 +08:00
Hsiao-Wei Wang
fc45220a7d
Move old Deneb sanity tests to block_processing (operations) tests
2023-05-23 15:41:44 +08:00
Hsiao-Wei Wang
32036d84a3
Fix tests
2023-05-20 00:01:44 +08:00
Hsiao-Wei Wang
eea04704d4
Fix tests
2023-05-15 17:16:41 +08:00
Hsiao-Wei Wang
b617c62e8d
Merge pull request #3344 from jtraglia/group-invalid-g1-points
...
Add group of invalid G1 points in KZG tests
2023-05-05 01:10:28 +08:00
Justin Traglia
dfdbe15e42
Fix linter issues
2023-05-02 13:05:41 -05:00
Justin Traglia
ddf7e8013b
Add group of invalid G1 points
2023-05-02 10:57:49 -05:00
Hsiao-Wei Wang
7570445e98
Fix sync testgen
2023-05-02 23:45:21 +08:00
Hsiao-Wei Wang
e117ff4d71
Merge branch 'dev' into eip6110-tests
2023-05-02 21:24:02 +08:00
Justin Traglia
87d42919b9
Add "commitment" to test names for consistency
2023-04-18 14:00:11 -05:00
Mikhail Kalinin
0230c643b0
Fix EIP6110 import in generators
2023-04-11 21:29:30 +06:00
Mikhail Kalinin
09e5fc7ebe
Add eip6110 to generators
2023-04-11 13:42:16 +06:00
Hsiao-Wei Wang
11842c9e2a
Update test generators. Move `test_deposit_transition` to `sanity/blocks/`
2023-04-06 20:04:33 +08:00
Mikhail Kalinin
389b79408b
Add EIP6110 operations gen, and to fork upgrades list
2023-04-06 17:39:19 +06:00
Hsiao-Wei Wang
74a1c90bbc
fix lint
2023-03-16 11:34:04 +08:00
Aditya Asgaonkar
8d3097be99
remove phase 0 from f.c. test generator
2023-03-15 19:48:16 -07:00
Aditya Asgaonkar
e9551715d5
large fork choice upgrade
2023-03-13 11:52:43 -07:00
Justin Traglia
ccfe576dcc
Add KZG tests for input length inputs ( #3282 )
2023-03-07 21:56:55 +00:00
dankrad
15033d28b9
Modify compute_[blob_]kzg_proof to remove superfluous computations ( #3280 )
...
Add parameter `commitment` to `compute_blob_kzg_proof` and output `y` to `compute_kzg_proof`
2023-03-07 17:50:56 +00:00
dankrad
86fb82b221
Test generators for kzg-4844 libraries ( #3274 )
...
Arkworks integration and test generators for kzg-4844 libraries
2023-03-02 20:49:10 +00:00
Paul Harris
078e1cc871
fix references to eip4844
2023-02-08 09:22:28 +10:00
Paul Harris
0bf006cc06
Merge remote-tracking branch 'upstream/dev' into 3207
2023-02-02 16:34:34 +10:00
Hsiao-Wei Wang
9ab147860c
Update transtion testgen
2023-01-27 11:16:31 +01:00
Paul Harris
317facbd64
Replaced EIP4844 references with Deneb
...
Fixes #3207
2023-01-23 15:08:34 +01:00
Etan Kissling
53a95f0007
Merge branch 'dev' into lc-eph
2023-01-10 13:43:15 +01:00
Etan Kissling
375436094c
Merge branch 'dev' into lc-eph
2023-01-05 13:53:29 +01:00
Hsiao-Wei Wang
9d402dd2d2
minor fix
2023-01-04 18:51:51 +08:00
Hsiao-Wei Wang
dba75eece9
Enable Capella feature in eip4844 fork
...
Fix lint
2023-01-04 01:40:46 +08:00
Hsiao-Wei Wang
1cfabcbe54
Rename `HistoricalBatchSummary` -> `HistoricalSummary` and `historical_batches` -> `historical_summaries`
2023-01-02 23:07:00 +08:00
Hsiao-Wei Wang
84592f101b
Add tests for `process_historical_batches_update`
2022-12-16 01:01:00 +08:00
Etan Kissling
02abdc311f
Merge branch 'dev' into lc-eph
2022-12-13 15:33:28 +01:00
Hsiao-Wei Wang
da3f5af919
Test case naming clean up ( #3143 )
...
* Add @description decorator
* Unify test case naming style
* more clean ups
* Altair tests cleanup
* Clean up Altair and Bellatrix `process_deposit` tests
* Clean up Bellatrix tests
* Clean up Capella tests
* PR feedback from @ralexstokes
* Add comments on the deposit fork version tests
* Remove `test_incorrect_sig_other_version` since it is duplicate to `test_ineffective_deposit_with_bad_fork_version`
* Add `test_ineffective_deposit_with_current_fork_version`
2022-12-13 15:13:44 +08:00
Etan Kissling
2e97af2627
Add `ExecutionPayloadHeader` to LC data
...
While the light client sync protocol currently provides access to the
latest `BeaconBlockHeader`, obtaining the matching execution data needs
workarounds such as downloading the full block.
Having ready access to the EL state root simplifies use cases that need
a way to cross-check `eth_getProof` responses against LC data.
Access to `block_hash` unlocks scenarios where a CL light client drives
an EL without `engine_newPayload`. As of Altair, only the CL beacon
block root is available, but the EL block hash is needed for engine API.
Other fields in the `ExecutionPayloadHeader` such as `logs_bloom` may
allow light client applications to monitor blocks for local interest,
e.g. for transfers affecting a certain wallet. This enables to download
only the few relevant blocks instead of every single one.
A new `LightClientStore` is proposed into the Capella spec that may be
used to sync LC data that includes execution data. Existing pre-Capella
LC data will remain as is, but can be locally upgraded before feeding it
into the new `LightClientStore` so that light clients do not need to run
a potentially expensive fork transition at a specific time. This enables
the `LightClientStore` to be upgraded at a use case dependent timing at
any time before Capella hits. Smart contract and embedded deployments
benefit from reduced code size and do not need synchronization with the
beacon chain clock to perform the Capella fork.
2022-12-12 00:48:40 +01:00
Hsiao-Wei Wang
b71ad2f8be
Add EIP4844 sync tests
2022-11-19 01:55:01 +08:00
Hsiao-Wei Wang
a1d259addf
Merge pull request #3111 from ethereum/testgen-fix
...
Fix --preset-list argument and enhance error output
2022-11-18 17:18:39 +08:00
Hsiao-Wei Wang
8824259131
Fix --preset-list argument and enhance error output
2022-11-18 05:08:37 +08:00
Hsiao-Wei Wang
d12c2a3b73
Add EIP4844 random tests
2022-11-18 04:55:59 +08:00
Hsiao-Wei Wang
5c5639f8f2
fix lint
2022-11-18 03:20:25 +08:00
Hsiao-Wei Wang
2a40b513cb
Add EIP4844 testgen
2022-11-18 03:20:22 +08:00
Hsiao-Wei Wang
3fc1ebce06
Move some Capella operation tests to sanity/blocks tests
2022-11-07 08:39:10 -05:00
Hsiao-Wei Wang
6c7922df67
Fix bls test case file name
2022-10-26 11:03:16 -05:00
Hsiao-Wei Wang
940fc20758
Apply suggestions from code review
...
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
2022-10-17 23:21:15 +08:00
Hsiao-Wei Wang
b90436c988
Fix capella random & fork
2022-10-14 23:42:42 -05:00
Hsiao-Wei Wang
03ced9c263
Add Capella tests
2022-10-14 23:40:45 -05:00
Hsiao-Wei Wang
44424c4080
Bump dep packages version and fix lint issues
2022-09-28 12:38:21 +08:00
Hsiao-Wei Wang
f8d92c3bd8
Add basic test case
2022-08-24 23:20:31 +08:00
Hsiao-Wei Wang
5db5b87e5e
Add bellatrix deposit and voluntary_exit tests
2022-08-19 01:52:34 +08:00
Hsiao-Wei Wang
d133dae471
Fix codespell errors ( #2975 )
2022-08-18 22:08:44 +08:00
Hsiao-Wei Wang
d95c45523f
Fix path: the bellatrix-new tests have been moved to altair file
2022-08-16 14:29:56 +08:00
Hsiao-Wei Wang
176a5d227a
Move `merkle/single_proof` tests to `light_client/single_merkle_proof`
2022-07-22 21:34:09 +08:00
Etan Kissling
30d635259b
Move test files to `light_client` subdir
2022-07-15 21:36:26 +02:00
Etan Kissling
86fe93ca96
Add functions for deriving light client data
...
Adds `create_light_client_bootstrap` and `create_light_client_update`
functions as a reference implementation for serving light client data.
This also enables a new test harness to verify that light client data
gets applied to a `LightClientStore` as expected.
2022-07-14 09:36:09 +02:00
Etan Kissling
c4dbd241ac
Root `next_sync_committee` in `attested_header`
...
`LightClientUpdate` structures currently use different merkle proof root
depending on the presence of `finalized_header`. By always rooting it in
the same state (the `attested_header.state_root`), logic gets simpler.
Caveats:
- In periods of extended non-finality, `update.finalized_header` may now
be outdated by several sync committee periods. The old implementation
rejected such updates as the `next_sync_committee` in them was stale,
but the new implementation can properly handle this case.
- The `next_sync_committee` can no longer be considered finalized based
on `is_finality_update`. Instead, waiting until `finalized_header` is
in the `attested_header`'s sync committee period is now necessary.
- Because `update.finalized_header > store.finalized_header` no longer
holds (for updates with finality), an `is_better_update` helper is
added to improve `best_valid_update` tracking (in the past, finalized
updates with supermajority participation would always directly apply)
This PR builds on prior work from:
- @hwwhww at https://github.com/ethereum/consensus-specs/pull/2829
2022-07-01 14:49:24 -07:00
Alex Stokes
2dd9a52fe4
remove data logging from BLS test gen
2022-06-29 10:24:53 -06:00
Alex Stokes
129d9e28b4
add randomized tests for bellatrix
2022-01-27 19:41:09 -08:00
Antonio Sanso
7255faf41b
Update ssz_container.py
2022-01-13 13:40:48 +01:00
Alex Stokes
c4a60225cb
Merge branch 'dev' into patch-5
2022-01-11 16:09:40 -06:00
Alex Stokes
d74cb5c9ec
remove unnecessary conditional
2022-01-06 15:34:59 -08:00
Antonio Sanso
e56dddd6ec
Update tests/generators/ssz_generic/ssz_container.py
...
Co-authored-by: Alex Stokes <r.alex.stokes@gmail.com>
2022-01-06 19:07:48 +01:00
Antonio Sanso
69a2fb4af0
Update tests/generators/ssz_generic/ssz_container.py
...
Co-authored-by: Alex Stokes <r.alex.stokes@gmail.com>
2022-01-06 19:07:31 +01:00
Antonio Sanso
7df0d4d70e
Update tests/generators/ssz_generic/ssz_container.py
...
Co-authored-by: Alex Stokes <r.alex.stokes@gmail.com>
2022-01-06 19:07:23 +01:00
Antonio Sanso
22719f2748
Update tests/generators/ssz_generic/ssz_container.py
...
Co-authored-by: Alex Stokes <r.alex.stokes@gmail.com>
2022-01-06 19:06:50 +01:00
Antonio Sanso
6f64d46bc4
Update tests/generators/ssz_generic/ssz_container.py
...
Co-authored-by: Alex Stokes <r.alex.stokes@gmail.com>
2022-01-06 19:06:42 +01:00
Antonio Sanso
db16f590cb
fixing lint
2022-01-06 13:29:57 +01:00
Antonio Sanso
b5908cf294
fixing lint
2022-01-06 13:28:19 +01:00
Antonio Sanso
7ccd528cd1
fixing lint
2022-01-06 13:26:00 +01:00
Antonio Sanso
b220655d24
Add 3 new invalid test cases
2022-01-06 13:08:47 +01:00
Hsiao-Wei Wang
5910b90c43
Enable Bellatrix fork tests in test generator
2021-12-24 00:56:55 +08:00
Hsiao-Wei Wang
8facc0a095
Merge -> Bellatrix
2021-12-23 14:25:43 +08:00
Hsiao-Wei Wang
addc03cb7c
Enable ex-ante tests in testgen and minor fixes
2021-12-09 17:47:20 +08:00