Commit Graph

1859 Commits

Author SHA1 Message Date
Hsiao-Wei Wang f30a3a3b05
Update `test_incorrect_not_enough_consolidation_churn_available` and add assertions to test cases 2024-06-24 23:38:01 +08:00
Etan Kissling 835576a47c
Enable light client data test generation for Electra 2024-06-21 14:49:33 +02:00
Etan Kissling 2035a9fcad
Update light client specifications for Electra
Electra introduces two changes that affect light client data handling:

1. The `ExecutionPayloadHeader` is extended with new fields.
   This is handled similarly as before with the Deneb fork.

2. The `BeaconState` generalized indices change due to lack of EIP-6493.
   This is handled by making the generalized index be fork dependent via
   a helper function that computes it dynamically. Furthermore, the case
   where pre-Electra light client data is consumed by an Electra based
   `LightClientStore` requires normalizing the shorter proof of the
   pre-Electra data to fit into the Electra data structure by prepending
   a zero hash.
2024-06-21 11:33:52 +02:00
Etan Kissling 2c384da092
Fix typing issue when `10e10` is interpreted as float
On macOS Python, passing `10e10` to `rng.randint` results in an error
when generating certain tests. Forcing `int` avoids the problem.
2024-06-21 10:51:18 +02:00
Mikhail Kalinin fd75470eab Add pending_deposits queue and queue deposit requests 2024-06-20 15:48:46 +06:00
Hsiao-Wei Wang fb020456cb
Add `get_extended_sample_count` unit tests 2024-06-19 02:18:29 +08:00
b-wagn 2aeddf2f86 remove trailing whitespaces 2024-06-14 15:18:00 +02:00
b-wagn 7095e14b60 extend test for coset_fft 2024-06-14 14:59:22 +02:00
b-wagn fc62e59778 extend test for eip7594 2024-06-14 14:23:53 +02:00
Hsiao-Wei Wang ca6485012f
Merge pull request #3783 from mkalinin/electra-maxeb-preset
Switch the rest of the spec to MAX_EFFECTIVE_BALANCE_ELECTRA
2024-06-14 16:34:24 +08:00
Hsiao-Wei Wang 718aadf263
Fix tests and remove duplicate `_WITHDRAWAL_PREFIX` definition 2024-06-14 15:57:33 +08:00
Hsiao-Wei Wang 490c89a3c2
bump version to `1.5.0-alpha.3` 2024-06-13 23:42:36 +08:00
Hsiao-Wei Wang a24837b12c
Merge pull request #3778 from jtraglia/electra-block-hash
Update compute_el_header_block_hash for EIP-7685
2024-06-12 22:49:49 +08:00
kevaundray 6efab19ad0
chore: Refactor cell recovery code (#3781)
* multi:

- Remove shift_polynomial_coeff
- Remove recover_shifted_data
- Remove recover_original_data
- Move `zero_poly_eval_brp ` under sanity check comment as its only used for sanity checking

* chore: remove sanity check -- this was doing a wasteful `compute_root_of_unity` operation

* chore: add previous sanity check as a unit test

* chore: copy values python was taking a reference, so it passes in our regular codepaths but not in isolated test

* chore: add coset_fft test

* Update specs/_features/eip7594/polynomial-commitments-sampling.md

Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>

* Update specs/_features/eip7594/polynomial-commitments-sampling.md

Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>

* chore: linter

* chore: asn (switch to bls_modular_inverse)

* chore: (ben) rename func to test_construct_vanishing_polynomial

* chore: (ben) rename `extended_evaluations_coeffs` to `extended_evaluation_times_zero_coeffs`

* chore: compute `roots_of_unity_extended` in recover_data method

* chore: add more comments explaining whats happening in recover_data

* chore: compute_zero_poly_coeff in recover_data

* chore: make lint

* chore: add doc comment to coset_fft_field

* chore: (ben) add code to generate the vanishing polynomial when all cells are missing

* chore: remove handling of edge case when constructing a vanishing polynomial

* chore: rename H(x) to Q_3(x)

* chore: remove trailing whitespace

* chore: add whitespace between comments

* chore: (asn) add assert that num missing cells is not 0

* chore: (justin) address comments

* chore: merge resolution

* chore: fixup remaining IDs -> indices

* chore: use indice nomenclature in tests

---------

Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>
2024-06-11 20:26:19 +03:00
Justin Traglia d137553f96 Rename CellID to CellIndex 2024-06-11 07:41:52 -05:00
Justin Traglia 5ace424cd8
`recover_cells_and_kzg_proofs` & matrix refactor (#3788)
* Recover cells and proofs & matrix clean up

* Fix table of contents

* Update reference tests generator

* Update test format

* Remove unused imports

* Fix some minor nits

* Rename MatrixEntry's proof to kzg_proof

* Move RowIndex & ColumnIndex to das-core
2024-06-11 14:52:24 +03:00
Justin Traglia 83cb494e31 Rename receipt to request 2024-06-10 11:28:54 -05:00
Justin Traglia 0298370af2 Fix rlp_bytes methods 2024-06-10 11:28:18 -05:00
Hsiao-Wei Wang 12f0e7cc44
Merge branch 'dev' into pr3778 2024-06-10 22:40:17 +08:00
Hsiao-Wei Wang 99dfc9ab5b
Update file names 2024-06-07 23:41:05 +08:00
Preston Van Loon 5910aeed4d Rename ExecutionLayerConsolidationRequest->ConsolidationRequest 2024-06-05 15:12:56 -05:00
Preston Van Loon 2e6c59393f Rename ExecutionLayerWithdrawalRequest->WithdrawalRequest 2024-06-05 15:12:56 -05:00
Hsiao-Wei Wang 3644f360b8
Merge pull request #3757 from mkalinin/receipt-to-request
Rename DepositReceipt to DepositRequest
2024-06-05 14:41:01 +08:00
Hsiao-Wei Wang 12d95da0da
Merge branch 'dev' into pr3757 2024-06-05 00:42:37 +08:00
Hsiao-Wei Wang 4223bc0ae6
Merge branch 'dev' into pr3776 2024-06-05 00:34:22 +08:00
Hsiao-Wei Wang 0de125274c
Merge pull request #3775 from fradamt/EL-consolidations
EL-triggered consolidations
2024-06-04 23:31:12 +08:00
Mikhail Kalinin eb0cdc72e8 Update tests 2024-05-31 22:02:22 +06:00
Justin Traglia 9b15abc798 Append "_bytes" to modified RLP functions 2024-05-31 08:53:18 -05:00
Hsiao-Wei Wang 79d67ba8e2
minor refactor 2024-05-31 21:47:50 +08:00
Hsiao-Wei Wang ffebf88de5
Fix testgen and test format 2024-05-31 19:50:59 +08:00
Hsiao-Wei Wang 744ae2e687
Add EIP-6800 linter checks.
Fix the lint errors.
Remove custom type `StateDiff` and then use `List[StemStateDiff, MAX_STEMS]` directly in `ExecutionWitness`.
2024-05-28 16:24:11 +08:00
Justin Traglia 12cab5a864 Make request type a bytes type 2024-05-23 16:17:29 -05:00
Justin Traglia d46e4aa36b Split long line into two 2024-05-23 15:55:16 -05:00
Justin Traglia 1d02110a68 Update compute_el_header_block_hash for EIP-7685 2024-05-23 15:30:49 -05:00
fradamt 69ee35d4e3 handle top-ups to exiting/exited validators 2024-05-22 12:31:22 +02:00
fradamt 6a731e9115 fix lint 2024-05-22 10:03:03 +02:00
fradamt 1970b56f8f add consolidation_requests_root to get_execution_payload_header test helper 2024-05-22 09:37:16 +02:00
fradamt f0ef76ada1 minor fixes 2024-05-21 23:03:34 +02:00
fradamt 6b6936836a Revert "minor fixes, doctoc"
This reverts commit dc2a2bd85a.
2024-05-21 22:54:25 +02:00
fradamt c17f22fedc add missing decorators 2024-05-21 22:46:44 +02:00
fradamt dc2a2bd85a minor fixes, doctoc 2024-05-21 22:30:14 +02:00
fradamt 17c51488eb add tests for remaining failure cases 2024-05-21 22:29:30 +02:00
fradamt c492d6198a adjust consolidations tests for EL consolidations 2024-05-21 22:27:06 +02:00
terence tsao eb380c1e83 Remove Deneb from all phases 2024-05-20 12:25:29 -07:00
Hsiao-Wei Wang 0f5f155d1b
fix typo (#3771) 2024-05-17 14:38:58 +08:00
Andrew Davis d295813155
EIP-7594: add custody settings config (#3766)
* EIP-7594: add custody settings config

* Add `TARGET_NUMBER_OF_PEERS` to config

* add TARGET_NUMBER_OF_PEERS

Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>

* fix double TARGET_NUMBER_OF_PEERS

* fix tests

---------

Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
2024-05-15 20:34:41 +08:00
Hsiao-Wei Wang 8b264704aa
Add `test_fork_pre_activation` test case 2024-05-13 15:37:32 +03:00
Hsiao-Wei Wang 01a2c7ba07
Add `test_fork_has_compounding_withdrawal_credential` test case 2024-05-13 15:27:52 +03:00
Mikhail Kalinin d8c486bcc5 Rename DepositReceipt to DepositRequest 2024-05-07 23:34:03 +06:00
Hsiao-Wei Wang 2cef9ae076
bump version v1.5.0-alpha.2 2024-05-07 22:45:00 +08:00
Hsiao-Wei Wang 313a64e9c1
Merge pull request #3748 from ethereum/fix-get_custody_columns
Fix `get_custody_columns`
2024-05-07 22:43:46 +08:00
Hsiao-Wei Wang c9e0e6d5df
Add a short node_id test 2024-05-07 21:47:16 +08:00
Hsiao-Wei Wang 1c081a04d0
Merge pull request #3731 from ethereum/rng
Fix rng of tests
2024-05-06 17:28:27 +08:00
Hsiao-Wei Wang 9c1acbb5e5
Fix `get_custody_columns` 2024-05-06 17:25:47 +08:00
Hsiao-Wei Wang 871c772e3f
Merge pull request #3743 from fradamt/dev
Add .copy() where needed in tests
2024-05-06 15:49:57 +08:00
Hsiao-Wei Wang bbb506ec75
Merge pull request #3741 from ethereum/fix-test_process_consolidation
Add decorator to all "invalid" test cases
2024-05-06 15:48:48 +08:00
fradamt 4487fb88c7
Merge branch 'ethereum:dev' into dev 2024-05-06 09:04:35 +02:00
Hsiao-Wei Wang 331f1e9a6a
Merge pull request #3736 from ethereum/hotfix-consolidation
Remove `test_consolidation.py` since they are not valid test vectors
2024-05-04 01:08:03 +08:00
Kevaundray Wedderburn fa550212c7 lint 2024-05-03 17:10:08 +01:00
Kevaundray Wedderburn a18c05e7e2 add assert 2024-05-03 17:06:09 +01:00
fradamt b237414910 add .copy() where needed in tests 2024-05-03 09:43:12 +02:00
Hsiao-Wei Wang beea123b0f
Add decorator to all "invalid" test cases 2024-05-02 17:01:25 +08:00
Hsiao-Wei Wang e733388623
Remove since they are not valid test vectors 2024-04-30 21:55:45 +08:00
Hsiao-Wei Wang b681552cf3
Use `bls.use_fastest()` in default testgen 2024-04-27 16:23:08 +08:00
Hsiao-Wei Wang c70bcba878
Fix rng of tests 2024-04-27 14:49:49 +08:00
Hsiao-Wei Wang 3c96d41f4c
Merge pull request #3730 from ethereum/misc-fix
Misc fix for `v1.5.0-alpha.1`
2024-04-27 13:36:26 +08:00
Hsiao-Wei Wang 53357e33a5
Merge pull request #3726 from ethereum/bump-version
Bump version to v1.5.0-alpha.1
2024-04-27 12:15:34 +08:00
Hsiao-Wei Wang a4e04ebf64
Misc fix 2024-04-27 12:11:29 +08:00
Hsiao-Wei Wang ef9af0d85e
Fix consolidation `test_invalid_*_signature` tests 2024-04-26 20:51:11 +08:00
Justin Traglia b4188829b3 Rename compute_cells_and_proofs to compute_cells_and_kzg_proofs 2024-04-25 21:57:22 -05:00
Justin Traglia ac1ce3b3f0 Rename verify_cell_proof to verify_cell_kzg_proof 2024-04-25 17:31:22 -05:00
Hsiao-Wei Wang 6ecff3ed94
Bump version to v1.5.0-alpha.1 2024-04-26 00:20:49 +08:00
Hsiao-Wei Wang 7819e7f558
Fix and move `test_multiple_consolidations_*` tests to sanity block tests 2024-04-25 23:30:40 +08:00
Alex Stokes 39ec741cd2
Merge pull request #3720 from ethereum/electra-fork-tests
Add Electra fork tests
2024-04-25 08:39:51 -06:00
Hsiao-Wei Wang e973b8d77b
Add EIP-7594 to `TESTGEN_FORKS` 2024-04-25 03:13:05 +08:00
Hsiao-Wei Wang e1d71216bb
Merge pull request #3715 from ethereum/das-test-vectors
Make `get_custody_columns` return sorted values and add `get_custody_columns` tests
2024-04-25 03:01:51 +08:00
Justin Traglia f5277700e3
Add initial version of kzg_7594 test generator (#3693) 2024-04-24 11:40:27 -05:00
Hsiao-Wei Wang e793fe2698
Add Electra fork tests 2024-04-24 20:08:56 +08:00
Hsiao-Wei Wang 24899b7fba
Apply suggestions from @jtraglia 2024-04-24 19:04:40 +08:00
kevaundray bd48cefdd7
Update tests/core/pyspec/eth2spec/utils/bls.py 2024-04-23 17:10:15 +01:00
Kevaundray Wedderburn f3302a3836 - return serialized identity points
- result = None initially
2024-04-23 15:11:46 +01:00
Kevaundray Wedderburn 309979d778 add check for multi_exp 2024-04-23 14:58:32 +01:00
Kevaundray Wedderburn 274d013d5c mke multi_exp polymorphic for pyecc 2024-04-23 14:53:06 +01:00
Kevaundray Wedderburn b58012845f check if there are any points 2024-04-23 14:28:53 +01:00
Kevaundray Wedderburn 5230d8e81e fix: function description 2024-04-23 14:22:13 +01:00
Kevaundray Wedderburn d55da1bdb1 use one method for both G1 and G2 multiexp 2024-04-23 14:21:37 +01:00
Kevaundray Wedderburn 941d9a9476 trigger CI again 2024-04-23 13:55:23 +01:00
Kevaundray Wedderburn 6aa950e1dd add g2_multi_exp and lint fixes 2024-04-23 13:38:04 +01:00
Hsiao-Wei Wang 57c14e5400
Add `get_custody_columns` tests 2024-04-23 20:21:33 +08:00
Kevaundray Wedderburn 640675f628 add `g1_multi_exp` 2024-04-23 12:44:50 +01:00
Justin Traglia bcd0a09e68
Integrate new Coset/CosetEvals types (#3701)
* Add CellBytes type

* Use ByteVector, not Vector

* Fix tests

* Replace b"" with []

* Apply suggestions for bytes_to_cell

* Add/integrate new CosetEvals type

* Remove accidental new line

* Fix recover_all_cells

* Fix recover_matrix

* fix CosetEvals abstraction leak

* Introduce internal Coset type for `coset_for_cell()`

* Use CosetEvals in compute_kzg_proof_multi_impl()

* update test

* satisfy linter

* Fix two nits I noticed

---------

Co-authored-by: Kevaundray Wedderburn <kevtheappdev@gmail.com>
Co-authored-by: George Kadianakis <desnacked@riseup.net>
2024-04-22 17:03:57 +03:00
Kevaundray Wedderburn 3f2d498cee rename 2024-04-22 13:02:42 +01:00
Hsiao-Wei Wang e46c4c39fb workaround: add a new config `MAX_EXTENDED_MATRIX_SIZE` to avoid `class Container(List[c, a*b])` 2024-04-22 10:31:58 +01:00
Justin Traglia 8707a4c2c1 Fix test_recover_all_cells 2024-04-19 11:18:11 -05:00
Kevaundray Wedderburn 988412ec2c modify test 2024-04-19 12:53:47 +01:00
Kevaundray Wedderburn b06d431eb6 fix lint 2024-04-18 18:28:10 +01:00
Kevaundray Wedderburn c9e1291860 update tests 2024-04-18 18:14:32 +01:00
Hsiao-Wei Wang 313ed1a962
Fix tests 2024-04-18 17:15:43 +08:00
Alex Stokes 815485b48d
Merge pull request #3690 from fradamt/dev
Fix broken exit tests due to change in the churn computation
2024-04-17 18:09:29 -06:00
fradamt 715e754ba3 Fix off-by-one error in exit tests due to change in the churn computation 2024-04-17 23:47:34 +02:00
Alex Stokes 82133085a1
clarify pending partial withdrawals handling 2024-04-17 14:17:07 -06:00
Alex Stokes b02be79a05
Merge pull request #3680 from ethereum/validator-guide-aggregate
Use validator guide `compute_on_chain_aggregate` in testing
2024-04-17 14:07:53 -06:00
Alex Stokes 4e0a879e19
Merge pull request #3687 from ethereum/bump-version
Update VERSION.txt to 1.5.0-alpha.0
2024-04-17 13:48:06 -06:00
Hsiao-Wei Wang b2fe919512
Update VERSION.txt to 1.5.0-alpha.0 2024-04-18 00:56:44 +08:00
Hsiao-Wei Wang b290ec7d0c
fix `test_top_up_and_partial_withdrawable_validator`: set different expected value for post-electra 2024-04-17 18:44:01 +08:00
Hsiao-Wei Wang af9b5d916a
Use validator guide `compute_on_chain_aggregate` in testing 2024-04-17 14:32:54 +08:00
Hsiao-Wei Wang 947767f3a9
Merge pull request #3678 from ralexstokes/7251-in-electra-cleanups
Electra: remove duplicate deposit processing tests
2024-04-17 14:24:41 +09:00
Hsiao-Wei Wang 056e4db3cb
Merge pull request #3670 from ethereum/eip7549-tests
Add EIP-7549 tests and Electra random tests
2024-04-17 14:24:19 +09:00
Alex Stokes 2b8579a038
remove duplicate tests 2024-04-16 15:08:21 -06:00
Alex Stokes 353bbb02a6
Workarounds for EIP-7549 tests 2024-04-15 22:30:14 -06:00
Alex Stokes c0fa05de1e
Fix tests from 7251 and merge of other EIPs into Electra 2024-04-15 22:30:14 -06:00
Alex Stokes 034909ddb6
Merge in EIP-7251 tests to Electra 2024-04-15 20:10:14 -06:00
Alex Stokes ce3931653d
Add EIP-7251 to Electra fork 2024-04-15 19:37:49 -06:00
Alex Stokes 0027762619
fix deposit test 2024-04-15 15:26:02 -06:00
Alex Stokes 05a891f801
fix lint 2024-04-15 14:32:44 -06:00
Alex Stokes 4c60dade42
Merge branch 'fix-7251-tests' into pr/ralexstokes/3656-1 2024-04-15 14:00:04 -06:00
fradamt bb597fc326 fix new process_voluntary_exit tests for eip7251 2024-04-14 21:17:17 +02:00
fradamt 1d81af386c refactor the way run_deposit_processing deals with 7251 2024-04-12 15:54:55 +02:00
fradamt 7602a52ecf rearrange hysteresis tests 2024-04-12 14:53:25 +02:00
Hsiao-Wei Wang 3b52edf72d
Add EIP-7549 tests and Electra random tests 2024-04-12 21:41:56 +09:00
Hsiao-Wei Wang b87f1fc4eb
Remove duplicate tests 2024-04-12 21:40:40 +09:00
fradamt eedb5c1674 add effective_balance_hysteresis test with compounding credentials 2024-04-12 14:32:49 +02:00
fradamt b03b2c8837 fix/add tests for process_execution_layer_withdraw_request pt2 2024-04-11 18:25:04 +02:00
fradamt 7a0bf5cea2 fix/add tests for process_execution_layer_withdraw_request 2024-04-11 13:52:02 +02:00
fradamt 97507b63c0 fix mutable list bug in tests 2024-04-11 11:29:18 +02:00
Hsiao-Wei Wang 397f9eb15a
Merge branch 'dev' into pr3656 2024-04-10 21:39:44 +09:00
fradamt dd0bea032f improve pending consolidation tests, fix bug in beacon-chain 2024-04-10 14:11:38 +02:00
Alex Stokes 4835ed1040
some clean ups from merging EIP-7002 into Electra 2024-04-09 12:58:30 -06:00
fradamt 2a334d1e70 add test_invalid_validator_has_pending_withdrawal 2024-04-09 19:19:03 +02:00
Hsiao-Wei Wang 4e8e1784bc
Merge pull request #3662 from jtraglia/per-ext-blob
EIP-7594: Use FIELD_ELEMENTS_PER_EXT_BLOB in NUMBER_OF_COLUMNS
2024-04-10 01:03:11 +09:00
Justin Traglia 3dcf9ebe54 Use FIELD_ELEMENTS_PER_EXT_BLOB in NUMBER_OF_COLUMNS 2024-04-09 08:44:30 -05:00
fradamt 6a668da2d5 New consolidation tests, comments 2024-04-09 13:34:10 +02:00
Hsiao-Wei Wang 94a0b6c581
Merge branch 'dev' into pr3653 2024-04-09 12:55:56 +09:00
Hsiao-Wei Wang ab8815ba10
Merge branch 'dev' into init-electra 2024-04-09 12:26:07 +09:00
Alex Stokes 163f287d6e
Fix prior tests with new EIP-7251 logic 2024-04-08 13:19:05 -06:00
Alex Stokes 112924cc13
fix EIP-7251 tests 2024-04-08 12:50:03 -06:00
Alex Stokes d35b4091fb
bugfix: make correct attestation type across fork boundary 2024-04-05 14:38:43 -06:00
Alex Stokes a626a79850
bugfix: use right test tool to construct Electra `AttesterSlashing` from Deneb attestations 2024-04-05 14:10:25 -06:00
Alex Stokes e4068b5391
Merge EIP-7549 into Electra 2024-04-05 13:56:57 -06:00
Hsiao-Wei Wang 55c81e7fa1
Merge EIP7002 into Electra 2024-04-05 11:36:49 -06:00
Hsiao-Wei Wang d2c69fe3cf
Rename EIP6110 to Electra 2024-04-05 10:53:42 -06:00
Alex Stokes f8cbd8d2e3
Merge pull request #3649 from ethereum/eip7549-aggregate
EIP-7549: Add EIP7549 aggregation logic in testing tool
2024-04-05 10:18:30 -06:00
Alex Stokes a56bd85674
Update tests/core/pyspec/eth2spec/test/helpers/attestations.py 2024-04-05 09:43:48 -06:00
Alex Stokes 3d3ec8fbba
Update tests/core/pyspec/eth2spec/test/helpers/attestations.py 2024-04-05 09:38:32 -06:00
Mikhail Kalinin 78da6573fd
Merge pull request #3645 from ethereum/dapplion-patch-1
Remove repetitive word
2024-04-05 16:04:59 +03:00
Hsiao-Wei Wang 806ed66769
Merge branch 'dev' into init-electra 2024-04-05 07:03:29 +09:00
Hsiao-Wei Wang 5535e6a2ab
fix conflict 2024-04-04 22:55:16 +09:00
Hsiao-Wei Wang cd91c04066
Merge branch 'dev' into init-electra 2024-04-04 22:49:53 +09:00
Hsiao-Wei Wang 8728561da3
Merge branch 'dev' into peer-das 2024-04-04 22:23:02 +09:00
Hsiao-Wei Wang 265788be58
refactor 2024-04-04 18:01:08 +09:00
Hsiao-Wei Wang a12e16b739
Add EIP-7549 aggregation logic to testing tools 2024-04-04 17:01:08 +09:00
Hsiao-Wei Wang 025ebed9c8
Merge pull request #3640 from ethereum/eip7549-tests
EIP-7549: Enable EIP-7549 on CI
2024-04-03 20:57:05 +08:00
Lion - dapplion 04ef1181a8
Remove repetitive word 2024-04-03 08:31:43 +09:00
Paul Harris 4606ab43e5 [EIP-7251] rename PartialWithdrawal field 2024-04-02 15:43:28 +10:00
Hsiao-Wei Wang 44088378cc
Revert leftover 2024-04-01 10:55:39 +09:00
Hsiao-Wei Wang cf3c4eca8c
Fix conflicts with #3631 2024-04-01 10:37:49 +09:00
Hsiao-Wei Wang eec5503d4f
Fix tests and specs 2024-03-31 16:35:24 +09:00
dapplion e6aaa9d44d Fix lint 2024-03-27 01:35:36 +09:00
fradamt 4775641f05 fix broken pending deposits tests and typo 2024-03-25 15:26:50 +01:00
fradamt 8d7d7a8851 add tests
add function to context.py

test helpers

add tests
2024-03-25 12:16:58 +01:00
Mikhail Kalinin d48b5e0665 Update whistleblower reward for eip7251 2024-03-20 16:10:30 +06:00
Mikhail Kalinin 17d65ca6b4 Create eip7251 config invariants test 2024-03-20 15:05:59 +06:00
Mikhail Kalinin a127bbf0c6
Merge branch 'dev' into eip-7251 2024-03-20 14:46:43 +06:00
Mikhail Kalinin b02c3e59d3 Check MAX_PARTIAL_WITHDRAWALS_PER_PAYLOAD < MAX_WITHDRAWALS_PER_PAYLOAD 2024-03-20 14:38:07 +06:00
Mikhail Kalinin fe35d6659c Remove built spec 2024-03-20 13:37:01 +06:00
Hsiao-Wei Wang 5d80b1954a
Merge pull request #3559 from dapplion/attestation-index
EIP-7549: Move committee index outside Attestation
2024-03-14 23:54:20 +08:00
Hsiao-Wei Wang 46b118a212
Merge pull request #3619 from asn-d6/peerdas_poly_degree_overflow
PeerDAS: Check for degree overflow in multiply_polynomialcoeff()
2024-03-14 19:09:31 +08:00
Hsiao-Wei Wang 8bf7ddf1bd
bump version to v1.4.0 2024-03-13 21:24:30 +08:00
dapplion fc65a6f864 Fix CI 2024-03-13 00:23:47 +08:00
Hsiao-Wei Wang 89564aaaa6
Add unittest to check `FIELD_ELEMENTS_PER_EXT_BLOB` value 2024-03-12 21:51:58 +08:00
George Kadianakis c71fb00c8e PeerDAS: Check for degree overflow in multiply_polynomialcoeff() 2024-03-08 18:04:55 +02:00
dapplion 668e447c55 Add EIP-7251 spec
Co-authored-by: fradamt <104826920+fradamt@users.noreply.github.com>
2024-03-08 12:37:35 +08:00
Hsiao-Wei Wang dc37dcdbf2
fix broken tests 2024-03-06 23:03:55 +08:00
Hsiao-Wei Wang ec9bbfa2ea
Merge EIP7002 into Electra 2024-03-06 14:23:23 +08:00
Hsiao-Wei Wang 6ffd27bd60
Rename EIP6110 to Electra 2024-03-06 13:38:49 +08:00
dapplion accee2b8be Merge remote-tracking branch 'upstream/dev' into attestation-index 2024-03-05 17:19:49 +08:00
Hsiao-Wei Wang cebf78a83e
Apply PR feedback 2024-02-27 22:42:32 +09:00
Hsiao-Wei Wang 2297c09b7e
Remove `higher_churn_limit_to_lower__without_block` 2024-02-16 09:26:13 +08:00
Hsiao-Wei Wang b6961743be
Merge pull request #3602 from ethereum/deneb-fork-transition
Add EIP-7514 higher-churn-limit-to-lower tests
2024-02-16 02:47:39 +08:00
Hsiao-Wei Wang e3d91d8e2a
Rename `MAX_UINT_64` -> `UINT64_MAX` 2024-02-15 15:00:56 +08:00
Hsiao-Wei Wang f020649519
add higher_churn_limit_to_lower tests 2024-02-15 11:25:53 +08:00
Hsiao-Wei Wang 42bc6004e5
Add overflow case 2024-02-14 22:27:49 +08:00
Hsiao-Wei Wang 7076fb2b75
Handle `integer_squareroot` bound case 2024-02-14 17:18:05 +08:00
Hsiao-Wei Wang 07bba7a1c5
Bump version to `1.4.0-beta.7` 2024-02-13 22:23:19 +08:00
Guruprasad Kamath fe344b79d4 correct the location of py.typed 2024-02-06 17:53:07 +01:00
Hsiao-Wei Wang 91dbbb365c
Implement `compute_extended_matrix` 2024-02-02 02:26:28 +08:00
Hsiao-Wei Wang c47d5f3578
Add `recover_matrix` and remove unused `FlatExtendedMatrix` type 2024-02-02 01:45:02 +08:00
Hsiao-Wei Wang 7aab57703e
Merge branch 'dev' into peer-das 2024-01-29 17:29:20 +08:00
George Kadianakis ae3ef6f330
Merge pull request #3579 from asn-d6/peerdas_public_method_bytes
peerDAS: Public methods must accept raw bytes
2024-01-26 17:36:54 +02:00
Hsiao-Wei Wang 4477cc6952
Fix column computation 2024-01-20 14:43:35 +08:00
Hsiao-Wei Wang 65be5b0556
Make `CUSTODY_REQUIREMENT` unit be subnets; move some depended helpers to `das-core.md` 2024-01-20 00:51:28 +08:00
Hsiao-Wei Wang 665e6faff7
Add `RowIndex`, `ColumnIndex` custom types in crypto doc 2024-01-19 19:14:03 +08:00
Hsiao-Wei Wang 2cc7c8798d
Fix conflict 2024-01-19 18:09:30 +08:00
Hsiao-Wei Wang 696d443f0a
Merge branch 'dev' into peer-das 2024-01-19 17:56:10 +08:00
Hsiao-Wei Wang c9c43e8f66
Apply suggestions from code review
Co-authored-by: Lion - dapplion <35266934+dapplion@users.noreply.github.com>
2024-01-18 13:27:34 +08:00
Hsiao-Wei Wang 4fe36dec58
Add transition test case of non-empty pre-state `historical_roots` 2024-01-18 00:10:45 +08:00
George Kadianakis 2000a4f307 Improve test_verify_cell_proof_batch() 2024-01-17 17:20:36 +02:00
danny 6367d060a1
Update VERSION.txt 2024-01-16 09:08:11 -07:00
danny 9a54a32238
Merge pull request #3431 from saltiniroberto/fork-choice-changes-for-confirmaton-rule
Confirmation rule prerequisite - fork choice filter change
2024-01-16 08:49:21 -07:00
George Kadianakis a4331e7c63 Public methods must accept raw bytes 2024-01-15 18:38:18 +02:00