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

Electra: Add Preset, Constants, & Config #5606

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

ethDreamer
Copy link
Member

Issue Addressed

Proposed Changes

This PR adds the Constants, Preset & Configuration changes for Electra

@ethDreamer ethDreamer mentioned this pull request Apr 18, 2024
63 tasks
@ethDreamer ethDreamer added the electra Required for the Electra/Prague fork label Apr 18, 2024
unset_deposit_receipts_start_index: u64::MAX,
full_exit_request_amount: 0,
min_activation_balance: option_wrapper(|| {
u64::checked_pow(2, 5)?.checked_mul(u64::checked_pow(10, 9)?)
Copy link
Collaborator

@dapplion dapplion Apr 22, 2024

Choose a reason for hiding this comment

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

Why not just write 32000000000 here? What value does it add to write it in a factored formula?

Copy link
Member Author

Choose a reason for hiding this comment

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

mostly consistency with the way the other values are written.. the spec also provides them factored this way so that you can do quick calculations in your head if you want

@ethDreamer ethDreamer force-pushed the electra_presets_and_constants branch from 14ae684 to 787e818 Compare April 23, 2024 13:33
Comment on lines +183 to +184
pub unset_deposit_receipts_start_index: u64,
pub full_exit_request_amount: u64,
Copy link
Member

Choose a reason for hiding this comment

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

These two aren't configurable, so I'm not sure we should add them here. We aren't totally consistent with ChainSpec, because the signature domains and prefixes are on this struct. But it should be config + preset from the spec. We have a consensus/types/consts.rs file we could move them to.

Copy link
Member

Choose a reason for hiding this comment

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

moved to issue #5631

@ethDreamer ethDreamer force-pushed the electra_presets_and_constants branch from 787e818 to 9fe2e52 Compare April 23, 2024 13:58
@realbigsean
Copy link
Member

@mergify queue

@realbigsean
Copy link
Member

@mergify refresh

Copy link

mergify bot commented Apr 23, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 05fbbdd

Copy link

mergify bot commented Apr 23, 2024

refresh

✅ Pull request refreshed

@mergify mergify bot merged commit 05fbbdd into sigp:unstable Apr 23, 2024
27 checks passed
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
electra Required for the Electra/Prague fork
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants