Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix electra genesis spec test #6764

Merged
merged 5 commits into from
May 14, 2024
Merged

Conversation

ensi321
Copy link
Contributor

@ensi321 ensi321 commented May 13, 2024

Fix genesis spec test

   ✓ electra/genesis/initialization/pyspec_tests (7) 813ms
     ✓ electra/genesis/initialization/pyspec_tests/initialize_beacon_state_from_eth1
     ✓ electra/genesis/initialization/pyspec_tests/initialize_beacon_state_one_topup_activation
     ✓ electra/genesis/initialization/pyspec_tests/initialize_beacon_state_random_invalid_genesis
     ✓ electra/genesis/initialization/pyspec_tests/initialize_beacon_state_random_valid_genesis
     ✓ electra/genesis/initialization/pyspec_tests/initialize_beacon_state_some_small_balances 334ms
     ✓ electra/genesis/initialization/pyspec_tests/initialize_post_transition
     ✓ electra/genesis/initialization/pyspec_tests/initialize_pre_transition_empty_payload
   ✓ electra/genesis/validity/pyspec_tests (5)
     ✓ electra/genesis/validity/pyspec_tests/extra_balance
     ✓ electra/genesis/validity/pyspec_tests/full_genesis_deposits
     ✓ electra/genesis/validity/pyspec_tests/invalid_invalid_timestamp
     ✓ electra/genesis/validity/pyspec_tests/invalid_not_enough_validator_count
     ✓ electra/genesis/validity/pyspec_tests/one_more_validator

@ensi321 ensi321 requested a review from a team as a code owner May 13, 2024 18:54
@@ -127,6 +129,7 @@ export function applyTimestamp(config: ChainForkConfig, state: CachedBeaconState
* @returns active validator indices
*/
export function applyDeposits(
fork: ForkSeq,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a lot of our code has new "fork" param and it caused a lot of files changed, we can just get the config from state and determine the fork based on state.slot
the good thing is we don't have to keep computing fork in different functions if we pass fork param
I think we can store fork inside the CachedBeaconState so that we don't have to pass fork param around or keep recomputing it in different functions

Copy link
Contributor

@twoeths twoeths left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@twoeths twoeths merged commit c50d5ef into electra-fork May 14, 2024
2 of 17 checks passed
@twoeths twoeths deleted the nc/genesis-spec-test branch May 14, 2024 02:52
g11tech pushed a commit that referenced this pull request May 24, 2024
* process pending deposit from eth1

* Fix the genesis params

* fix

* Fix

* clean up

---------

Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
g11tech pushed a commit to g11tech/lodestar that referenced this pull request Jun 19, 2024
* process pending deposit from eth1

* Fix the genesis params

* fix

* Fix

* clean up

---------

Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
g11tech pushed a commit that referenced this pull request Jun 25, 2024
* process pending deposit from eth1

* Fix the genesis params

* fix

* Fix

* clean up

---------

Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
g11tech pushed a commit that referenced this pull request Jun 25, 2024
* process pending deposit from eth1

* Fix the genesis params

* fix

* Fix

* clean up

---------

Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
g11tech pushed a commit that referenced this pull request Jul 1, 2024
* process pending deposit from eth1

* Fix the genesis params

* fix

* Fix

* clean up

---------

Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
g11tech pushed a commit that referenced this pull request Jul 30, 2024
* process pending deposit from eth1

* Fix the genesis params

* fix

* Fix

* clean up

---------

Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
g11tech pushed a commit that referenced this pull request Jul 31, 2024
* process pending deposit from eth1

* Fix the genesis params

* fix

* Fix

* clean up

---------

Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
g11tech pushed a commit that referenced this pull request Aug 2, 2024
* process pending deposit from eth1

* Fix the genesis params

* fix

* Fix

* clean up

---------

Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
g11tech pushed a commit that referenced this pull request Aug 9, 2024
* process pending deposit from eth1

* Fix the genesis params

* fix

* Fix

* clean up

---------

Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
g11tech pushed a commit that referenced this pull request Aug 9, 2024
* process pending deposit from eth1

* Fix the genesis params

* fix

* Fix

* clean up

---------

Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
g11tech pushed a commit that referenced this pull request Aug 23, 2024
* process pending deposit from eth1

* Fix the genesis params

* fix

* Fix

* clean up

---------

Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
g11tech pushed a commit that referenced this pull request Aug 27, 2024
* process pending deposit from eth1

* Fix the genesis params

* fix

* Fix

* clean up

---------

Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
philknows pushed a commit that referenced this pull request Sep 3, 2024
* process pending deposit from eth1

* Fix the genesis params

* fix

* Fix

* clean up

---------

Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.22.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants