Etan Kissling
b4f44caef3
Fix EL block hash computation for Deneb
...
The parent beacon block hash was incorrectly set to zero in #3778 .
Passing the state to the computation function allows correct hash
computation.
2024-07-02 16:26:04 +02:00
Hsiao-Wei Wang
c70bcba878
Fix rng of tests
2024-04-27 14:49:49 +08:00
Hsiao-Wei Wang
a4e04ebf64
Misc fix
2024-04-27 12:11:29 +08:00
Hsiao-Wei Wang
a12e16b739
Add EIP-7549 aggregation logic to testing tools
2024-04-04 17:01:08 +09:00
Hsiao-Wei Wang
70ce4f28c0
Remove extra tick
2023-11-14 12:06:33 +03:00
Hsiao-Wei Wang
b9285b8fe7
Add `validator_is_connected`
2023-10-26 23:51:05 +08:00
Michael Sproul
9ce8e3d6e9
Update test format. Add `get_proposer_head`
2023-10-26 23:50:46 +08:00
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
24b4d46903
Add `get_proposer_head` and `should_override_forkchoice_update` tests
2023-10-25 01:30:45 +08:00
Hsiao-Wei Wang
350fa16020
Use `build_randomized_execution_payload` in random tests. Add mixed txs tests.
2023-07-18 20:44:28 +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
be33c4008a
Merge branch 'dev' into pr3288
2023-05-30 21:08:12 +08:00
Hsiao-Wei Wang
6b5513b43a
Merge branch 'dev' into engine-versioned-hashes
2023-05-24 11:19:56 +08:00
Hsiao-Wei Wang
289d8147be
Move `verify_and_notify_new_payload` to Bellatrix
2023-05-24 11:12:03 +08:00
Hsiao-Wei Wang
48618fe866
Fix tests
2023-05-24 00:08:45 +08:00
Hsiao-Wei Wang
73df1935b1
Use `verify_and_notify_new_payload` approach
2023-05-23 23:37:42 +08:00
Hsiao-Wei Wang
92324ca845
Remove `is_merge_transition_complete` check from Capella
2023-05-20 01:14:10 +08:00
Hsiao-Wei Wang
32036d84a3
Fix tests
2023-05-20 00:01:44 +08:00
Hsiao-Wei Wang
0b2f604f86
Fix tests
2023-05-17 00:24:49 +08:00
Hsiao-Wei Wang
058137327a
Use new `engine_newPayloadV3`
2023-05-16 00:28:49 +08:00
Hsiao-Wei Wang
0f5ac1186e
Remove `is_execution_enabled` condition since Capella
2023-05-10 03:01:20 +08:00
Hsiao-Wei Wang
9d14dcd8b0
Ensure that no duplidate block hashes
2023-01-04 18:09:38 +08: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
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
d51345c6b3
proper EL block hash implementation in tests
...
Replaces the "FAKE RLP HASH" in `ExecutionPayload.block_hash` of all
generated tests with the correct value.
2022-11-22 21:58:29 +01:00
Hsiao-Wei Wang
44424c4080
Bump dep packages version and fix lint issues
2022-09-28 12:38:21 +08:00
Hsiao-Wei Wang
2e73091258
Add `get_valid_flag_value` helper to determine the `valid` flag value
2022-09-08 22:42:39 +08:00
Hsiao-Wei Wang
ac717b106a
Address PR feedback from @mkalinin
2022-08-31 22:02:47 +08:00
Hsiao-Wei Wang
f8d92c3bd8
Add basic test case
2022-08-24 23:20:31 +08:00
Hsiao-Wei Wang
bafb5870c1
Update tests/core/pyspec/eth2spec/test/bellatrix/block_processing/test_process_deposit.py
...
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
2022-08-19 01:20:53 +08:00
Hsiao-Wei Wang
6c00b48dca
PR feedback from @djrtwo: add `is_before_fork_epoch` and more param combinations
2022-08-19 00:29:56 +08:00
Hsiao-Wei Wang
806a6ad414
Apply suggestions from code review
...
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
2022-08-19 00:03:58 +08:00
Hsiao-Wei Wang
b3ef9b2b3e
Add invalid fork version tests
2022-08-18 22:49:02 +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
Danny Ryan
ccc40e1982
a few more bellatrix tests ( #2962 )
...
* Do not overload index with WithdrawalIndex and ValidatorIndex
* a few more bellatrix tests
* use function from other PR
* fix tests
* Update tests/core/pyspec/eth2spec/test/bellatrix/transition/test_transition.py
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
* refactor to reuse bellatrix transitio ntests for all transitions
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
2022-08-15 07:49:53 -06:00
Danny Ryan
3d785dad7a
pr feedback from @hwwhww
2022-08-03 08:24:32 -06:00
Danny Ryan
7e360240f9
more execution payload tests and cleanup old ones
2022-08-01 11:42:38 -06:00
Etan Kissling
f125538122
Fix param order in `prepare_execution_payload`
...
Documentation on how to call `prepare_execution_payload` had the params
for `safe_block_hash` and `finalized_block` hash flipped compared to the
function definition. Also updated tests for consistency.
2022-04-25 16:49:00 +02:00
Mikhail Kalinin
95a2327800
Bellatrix: add get_safe_block_hash to validator.md
2022-03-22 22:51:45 +06:00
Mikhail Kalinin
84ab086d94
Add safe_block_hash to notify_fc_updated
2022-03-14 19:09:21 +06:00
Mikhail Kalinin
1280fe2a02
Bellatrix: random -> prev_randao
2022-02-22 17:16:33 +06:00
Alex Stokes
129d9e28b4
add randomized tests for bellatrix
2022-01-27 19:41:09 -08:00
Mikhail Kalinin
eb4497fae7
Bellatrix: Rename execute_payload to notify_new_payload
2022-01-27 15:24:53 +06:00
Danny Ryan
af4725d08a
add some non-empty extra_data tests
2022-01-03 07:51:35 -07:00
Hsiao-Wei Wang
41af639517
PR feedback from @mkalinin
2021-12-23 17:26:48 +08:00
Hsiao-Wei Wang
8facc0a095
Merge -> Bellatrix
2021-12-23 14:25:43 +08:00