470 Commits

Author SHA1 Message Date
Hsiao-Wei Wang
847553783b
Add test_zeroed_commitment 2023-05-15 17:11:50 +08:00
Hsiao-Wei Wang
f1765dfef3
Merge branch 'dev' into deneb-tests 2023-05-04 18:04:20 +08:00
Hsiao-Wei Wang
2a1d998594
Test non zero excess_data_gas 2023-04-28 19:01:19 +08:00
Hsiao-Wei Wang
d78c7ada03
Fix previous fork version 2023-04-06 20:08:23 +08:00
Mikhail Kalinin
389b79408b Add EIP6110 operations gen, and to fork upgrades list 2023-04-06 17:39:19 +06:00
Mikhail Kalinin
108f1eed86 Rebase EIP6110 to Deneb 2023-04-06 16:53:31 +06:00
Mikhail Kalinin
80e6b0d665 Add deposits transition tests 2023-04-05 19:46:28 +06:00
Mikhail Kalinin
4c401d6575 Port process_deposit tests 2023-04-03 18:17:03 +06:00
Hsiao-Wei Wang
9dfee5ef48
Update execution_payload helpers for new EIP-6110 field 2023-03-28 15:21:09 +08:00
Hsiao-Wei Wang
cd7783e59d
EIP-6110: Fix compute_fork_version and add light client specs 2023-03-28 15:08:03 +08:00
Hsiao-Wei Wang
8acc31adce
Fix the default testing genesis by setting deposit_receipts_start_index and fork versions 2023-03-28 14:23:23 +08:00
Hsiao-Wei Wang
d0839dfec4
Add EIP-6110 to the pytest scope 2023-03-27 21:31:03 +08:00
Hsiao-Wei Wang
debf51e87a
Fix get_sample_opaque_tx call signature 2023-03-16 10:16:03 +08:00
Hsiao-Wei Wang
de57f2ac91
Merge pull request #3284 from etan-status/lc-forkversion
Check correct fork version in LC sync protocol
2023-03-16 09:08:01 +08:00
Danny Ryan
985fcc2525
Merge pull request #3283 from ethereum/deneb-crypto-coverage
Deneb crypto helpers test coverage
2023-03-15 11:28:43 -06:00
Aditya Asgaonkar
e9551715d5 large fork choice upgrade 2023-03-13 11:52:43 -07:00
Dankrad Feist
96ad61bcec
Add tests for blob sidecar signature 2023-03-12 23:05:01 +00:00
Etan Kissling
43e714e60f
Check correct fork version in LC sync protocol
- Sync committee is determined by signature_slot
- Signature fork version is determined by max(signature_slot, 1) - 1
- Attested block fork version can be anything < signature_slot

Old logic incorrectly derived signature fork version from signature_slot
and did not subtract a slot. Extended tests to check this edge case.
2023-03-08 15:34:56 +01:00
Ben Edgington
7637158a2f Change get_latest_attesting_balances() to get_weight() 2023-02-15 11:39:33 +00:00
Hsiao-Wei Wang
7b5acbfd21
Fix Capella fork test assertions 2023-02-10 00:30:00 +08: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
366e3b64c4
hotfix: transition_to_slot_via_block only return unsigned block 2023-01-27 15:37:12 +01:00
Hsiao-Wei Wang
3e78448fd1
Address PR feedback 2023-01-27 10:44:32 +01:00
Hsiao-Wei Wang
507a7ec113
Add BLS_TO_EXECUTION_CHANGE fork transition tests 2023-01-26 10:14:53 +01:00
Hsiao-Wei Wang
e3b42ca397
Add activate and partial withdrawal tests 2023-01-25 16:15:39 +01:00
Paul Harris
317facbd64 Replaced EIP4844 references with Deneb
Fixes #3207
2023-01-23 15:08:34 +01:00
Hsiao-Wei Wang
0f2d25d919
Merge pull request #3213 from etan-status/ee-mockgwei
Use `Gwei` for `Withdrawal` amount in mock-EE
2023-01-17 23:00:35 +08:00
George Kadianakis
296ba921c9 EIP4844: Handle barycentric evaluations at roots of unity 2023-01-16 17:51:50 +02:00
Etan Kissling
52d978b12e
Use Gwei for Withdrawal amount in mock-EE
Updates the EL block hash computation for pytests to match latest spec.
Notably, use `Gwei` for `Withdrawal` amount consistently.
Also fix `excess_data_gas` not being correctly accounted for.

https://github.com/ethereum/execution-apis/pull/354
https://github.com/ethereum/EIPs/pull/6325
2023-01-15 12:13:35 +01:00
Hsiao-Wei Wang
e1df31818b
fix typo 2023-01-13 23:18:29 +08:00
djrtwo
d4eaf4bff4 add invalid test for BLSChange genesis_validators_root 2023-01-13 08:07:21 -07:00
Hsiao-Wei Wang
730a7afe49
Always use GENESIS_FORK_VERSION to sign BLSToExecutionChange message 2023-01-12 23:28:41 +08:00
Hsiao-Wei Wang
a2099dabf7
Add test_invalid_previous_fork_version 2023-01-12 03:23:17 +08:00
Hsiao-Wei Wang
0777a52f55
Merge pull request #3149 from etan-status/lc-toheader
Add `block_to_light_client_header` helper
2023-01-05 12:12:36 +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
Danny Ryan
991f81770b
Merge pull request #3157 from ethereum/balance-op
Add tests to test sync aggregate's order of balance operation
2022-12-14 08:15:09 -07:00
Hsiao-Wei Wang
e9a7a6d40e
Merge pull request #3126 from etan-status/el-rlp
proper EL block hash implementation in tests
2022-12-13 22:28:53 +08:00
Etan Kissling
ef2a8b319d
Avoid line continuation syntax 2022-12-13 12:30:14 +01:00
Etan Kissling
666a90245e
Add EIP4844 support
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
2022-12-13 11:54:44 +01:00
Hsiao-Wei Wang
19c38dbac6
Add tests to test sync aggregate's order of operation 2022-12-13 17:35:34 +08: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
Alex Stokes
37e504e784
bound the maximum number of validators considered for withdrawals per sweep 2022-12-09 10:51:25 -07:00
Etan Kissling
8bf801ecc6
Add block_to_light_client_header helper
Introduce `block_to_light_client_header` helper function to enable
future forks to override it with additional info (e.g., execution),
without having to change the general light client logic.

Likewise, update existing light client data creation flow to use
`block_to_light_client_header` and default-initialize empty fields.

Furthermore, generalize `create_update` helper to streamline test code
using `block_to_light_client_header`.

Note: In Altair spec, LC header is the same as `BeaconBlockHeader`.
however; future forks will extend it with more information.
2022-12-06 17:44:41 +01:00
Etan Kissling
79c2099c9c
Merge branch 'dev' into el-rlp 2022-12-05 17:47:20 +01:00
Etan Kissling
f8041091e4
Convert to Wei before multiply 2022-11-24 15:16:59 +01:00
Etan Kissling
0bb3470352
Formatting 2022-11-24 15:11:25 +01:00
Etan Kissling
bfc634dc8c
Amount is Wei in EL world / Gwei in CL 2022-11-24 15:10:25 +01:00
Etan Kissling
e9111a5168
Cleanup unnecessary init 2022-11-23 12:34:02 +01:00