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

Add Fulu boilerplate #6695

Open
wants to merge 4 commits into
base: unstable
Choose a base branch
from
Open

Conversation

macladson
Copy link
Member

@macladson macladson commented Dec 14, 2024

Proposed Changes

Adds Fulu fork boilerplate.

Additional Info

Certain types will likely need a new Fulu variant but have been omitted for simplicity (e.g Light client types).
This also makes no attempt to unify Fulu with PeerDAS. This will need to be a separate PR.

@macladson macladson added the work-in-progress PR is a work-in-progress label Dec 14, 2024
@@ -5322,7 +5322,8 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
BeaconState::Bellatrix(_)
| BeaconState::Capella(_)
| BeaconState::Deneb(_)
| BeaconState::Electra(_) => {
| BeaconState::Electra(_)
| BeaconState::Fulu(_) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we do fork.after_bellatrix here? the argument of using a match to force us to think about the fork is broken here, because we don't know what EIPs will exist in the fork and if we need a new handler. So now we are getting the worst of both worlds. a 1980 lines boilerplate PR and no guarantees or correctness

}
SignedBeaconBlock::Deneb(_)
| SignedBeaconBlock::Electra(_)
| SignedBeaconBlock::Fulu(_) => (signed_block, block_response.blob_items),
Copy link
Collaborator

Choose a reason for hiding this comment

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

This can also be .after_deneb()

| ForkName::Altair
| ForkName::Deneb
| ForkName::Electra
| ForkName::Fulu => Err(Error::UnsupportedForkVariant(format!(
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be a default case, we will never use v2 again

let params = json!([JsonPayloadIdRequest::from(payload_id)]);

match fork_name {
ForkName::Fulu => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we use match(fulu) or after_fulu?

@@ -1,14 +1,14 @@
# Mainnet config

# Extends the mainnet preset
PRESET_BASE: 'mainnet'
PRESET_BASE: "mainnet"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work-in-progress PR is a work-in-progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants