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

feat(builder): ethereum builder config #13315

Merged
merged 8 commits into from
Dec 11, 2024

Conversation

rkrasiuk
Copy link
Member

Description

Adds ethereum builder config, towards #13128

@rkrasiuk rkrasiuk added C-enhancement New feature or request A-block-building Related to block building labels Dec 11, 2024
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

one suggestions, otherwise lgtm

pub struct EthereumPayloadBuilder;
pub struct EthereumPayloadBuilder {
/// Payload builder configuration.
builder_config: EthereumBuilderConfig,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
builder_config: EthereumBuilderConfig,
config: EthereumBuilderConfig,

@@ -228,9 +230,29 @@ where
}

/// A basic ethereum payload service.
#[derive(Debug, Default, Clone)]
#[derive(Clone, Debug)]
#[non_exhaustive]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
#[non_exhaustive]

@@ -247,6 +247,7 @@ impl<C: ChainSpecParser<ChainSpec = ChainSpec>> Command<C> {

let payload_builder = reth_ethereum_payload_builder::EthereumPayloadBuilder::new(
EthEvmConfig::new(provider_factory.chain_spec()),
EthereumBuilderConfig::new(Default::default()),
Copy link
Collaborator

Choose a reason for hiding this comment

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

perhaps it would be better if EthereumBuilderConfig had Default?

Copy link
Member Author

Choose a reason for hiding this comment

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

ideally, this would be default_extradata(), but it's not available in the crate where EthereumBuilderConfig is defined, so i'd rather not have the default

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see

@rkrasiuk rkrasiuk requested a review from gakonst as a code owner December 11, 2024 20:47
@rkrasiuk rkrasiuk requested a review from klkvr as a code owner December 11, 2024 21:02
@rkrasiuk rkrasiuk enabled auto-merge December 11, 2024 21:02
@rkrasiuk rkrasiuk added this pull request to the merge queue Dec 11, 2024
Merged via the queue into main with commit c553b1e Dec 11, 2024
42 checks passed
@rkrasiuk rkrasiuk deleted the rkrasiuk/feat-ethereum-builder-config branch December 11, 2024 21:41
emhane pushed a commit to ethereum-optimism/op-reth that referenced this pull request Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-block-building Related to block building C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants