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: integrate builder #6611

Merged
merged 45 commits into from
Feb 29, 2024
Merged

feat: integrate builder #6611

merged 45 commits into from
Feb 29, 2024

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Feb 14, 2024

Integrates the new builder API.

Removes all extension trait stuff

the launch code is now part of the builder

I've also modified the receipt_root functions because mutually exclusive function signatures are a nightmare if we use conflicting ethereum code by default

one example is not completely ported, but I think this didn't even work previously, would like to tackle this in a followup because requires more work.

bin/reth/src/cli/mod.rs Outdated Show resolved Hide resolved
Copy link
Member

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

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

looks good overall, but lot of modules commented out - are we adding these back?

bin/reth/src/commands/node/mod.rs Outdated Show resolved Hide resolved
crates/consensus/auto-seal/tests/it/main.rs Outdated Show resolved Hide resolved
bin/reth/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

I like this, lgtm pending examples migration and others review comments

bin/reth/src/optimism.rs Show resolved Hide resolved
crates/node-optimism/src/node.rs Outdated Show resolved Hide resolved
Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

looks great, I just have nits. The UX in the examples are amazing

bin/reth/src/lib.rs Outdated Show resolved Hide resolved
Comment on lines +313 to +314
<reth_ethereum_payload_builder::EthereumPayloadBuilder as PayloadBuilder<Pool,Client>> ::build_empty_payload(client,
PayloadConfig { initialized_block_env, initialized_cfg, parent_block, extra_data, attributes: attributes.0, chain_spec }
Copy link
Member

Choose a reason for hiding this comment

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

any way to make the formatting on this better?

@Rjected
Copy link
Member

Rjected commented Feb 16, 2024

and pending compile fixes

@mattsse mattsse force-pushed the matt/integrate-node-builder branch from 3ebf539 to cd494ba Compare February 20, 2024 09:05
Copy link
Member

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

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

💥

@mattsse mattsse requested a review from shekhirin as a code owner February 27, 2024 11:33
Copy link
Member

@rkrasiuk rkrasiuk left a comment

Choose a reason for hiding this comment

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

stellar work, ship it 🫡

}

/// Creates an _ephemeral_ preconfigured node for testing purposes.
pub fn testing_node(
Copy link
Member

Choose a reason for hiding this comment

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

great

@@ -14,7 +21,34 @@ fn main() {
std::env::set_var("RUST_BACKTRACE", "1");
}

if let Err(err) = reth::cli::run() {
if let Err(err) = Cli::<RollupArgs>::parse().run(|builder, rollup_args| async move {
Copy link
Member

Choose a reason for hiding this comment

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

magnificent

@mattsse mattsse added this pull request to the merge queue Feb 29, 2024
Merged via the queue into main with commit c5955f1 Feb 29, 2024
30 checks passed
@mattsse mattsse deleted the matt/integrate-node-builder branch February 29, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement New feature or request M-changelog This change should be included in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants