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: split reth and hera binaries #23

Merged
merged 7 commits into from
Aug 25, 2024

Conversation

merklefruit
Copy link
Collaborator

@merklefruit merklefruit commented Aug 24, 2024

Followup from #14

Many ways to do this, but for now here's what we have:

  • the reth binary runs the default reth CLI commands with an optional --hera flag. If set, we also try to parse all HeraArgsExt flags and install the ExEx on top of it. The idea is that in the future we may have more ExExes that can be added in this way.
  • hera binary is currently empty, but will contain the standalone rollup node entrypoint.
  • refactored hera-exex to its own crate, this will make it possible to also run hera as exex from the hera binary as well.

Note: there is a compilation error due to op-rs/kona#454, unrelated to this pr.

Open to feedback

@merklefruit merklefruit force-pushed the nico/feat/split-bins branch from 29f0c4c to 56b9044 Compare August 24, 2024 16:26
@merklefruit merklefruit marked this pull request as ready for review August 24, 2024 16:39
@merklefruit merklefruit force-pushed the nico/feat/split-bins branch from 56b9044 to da662e5 Compare August 24, 2024 16:59
Cargo.toml Outdated Show resolved Hide resolved
Copy link
Collaborator

@refcell refcell left a comment

Choose a reason for hiding this comment

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

Added a few thoughts about a more generic refactor.

crates/hera-exex/src/exex.rs Outdated Show resolved Hide resolved
crates/hera-exex/src/exex.rs Outdated Show resolved Hide resolved
bin/reth/Cargo.toml Outdated Show resolved Hide resolved
bin/reth/src/main.rs Outdated Show resolved Hide resolved
crates/hera-exex/src/cli.rs Outdated Show resolved Hide resolved
chore: typo

chore: rm useless clippy rules

chore: small type coercion

fix: commit tip before breaking loop

feat(hera): rebased on bin/ location change

chore: rename kona -> hera in cli
@merklefruit merklefruit force-pushed the nico/feat/split-bins branch from 243f0ec to e3f9354 Compare August 24, 2024 23:02
Copy link
Collaborator

@refcell refcell left a comment

Choose a reason for hiding this comment

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

Very nice!

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.

lgtm, nice

@merklefruit merklefruit merged commit 7f271af into ithacaxyz:main Aug 25, 2024
11 checks passed
@merklefruit merklefruit deleted the nico/feat/split-bins branch August 25, 2024 17:59
merklefruit added a commit to merklefruit/op-rs that referenced this pull request Aug 25, 2024
Followup from ithacaxyz#14

Many ways to do this, but for now here's what we have:

- the `reth` binary runs the default reth CLI commands with an optional
`--hera` flag. If set, we also try to parse all `HeraArgsExt` flags and
install the ExEx on top of it. The idea is that in the future we may
have more ExExes that can be added in this way.
- `hera` binary is currently empty, but will contain the standalone
rollup node entrypoint.
- refactored `hera-exex` to its own crate, this will make it possible to
also run hera as exex from the `hera` binary as well.

Note: there is a compilation error due to
op-rs/kona#454, unrelated to this
pr.

Open to feedback

feat(kona-exex): step 1: wait for l2 genesis block

chore: typo

chore: rm useless clippy rules

chore: small type coercion

fix: commit tip before breaking loop

feat(hera): rebased on bin/ location change

chore: rename kona -> hera in cli

feat: split reth and hera binaries

chore: cargo lock

fix: last compile err

chore: add crate lints

feat: renamed bin, renamed driver, addressed pr review

chore: fmt

feat: optionally load rollup config from file
merklefruit added a commit to merklefruit/op-rs that referenced this pull request Aug 25, 2024
Followup from ithacaxyz#14

Many ways to do this, but for now here's what we have:

- the `reth` binary runs the default reth CLI commands with an optional
`--hera` flag. If set, we also try to parse all `HeraArgsExt` flags and
install the ExEx on top of it. The idea is that in the future we may
have more ExExes that can be added in this way.
- `hera` binary is currently empty, but will contain the standalone
rollup node entrypoint.
- refactored `hera-exex` to its own crate, this will make it possible to
also run hera as exex from the `hera` binary as well.

Note: there is a compilation error due to
op-rs/kona#454, unrelated to this
pr.

Open to feedback

feat(kona-exex): step 1: wait for l2 genesis block

chore: typo

chore: rm useless clippy rules

chore: small type coercion

fix: commit tip before breaking loop

feat(hera): rebased on bin/ location change

chore: rename kona -> hera in cli

feat: split reth and hera binaries

chore: cargo lock

fix: last compile err

chore: add crate lints

feat: renamed bin, renamed driver, addressed pr review

chore: fmt

feat: optionally load rollup config from file
merklefruit added a commit to merklefruit/op-rs that referenced this pull request Aug 25, 2024
Followup from ithacaxyz#14

Many ways to do this, but for now here's what we have:

- the `reth` binary runs the default reth CLI commands with an optional
`--hera` flag. If set, we also try to parse all `HeraArgsExt` flags and
install the ExEx on top of it. The idea is that in the future we may
have more ExExes that can be added in this way.
- `hera` binary is currently empty, but will contain the standalone
rollup node entrypoint.
- refactored `hera-exex` to its own crate, this will make it possible to
also run hera as exex from the `hera` binary as well.

Note: there is a compilation error due to
op-rs/kona#454, unrelated to this
pr.

Open to feedback

feat(kona-exex): step 1: wait for l2 genesis block

chore: typo

chore: rm useless clippy rules

chore: small type coercion

fix: commit tip before breaking loop

feat(hera): rebased on bin/ location change

chore: rename kona -> hera in cli

feat: split reth and hera binaries

chore: cargo lock

fix: last compile err

chore: add crate lints

feat: renamed bin, renamed driver, addressed pr review

chore: fmt

feat: optionally load rollup config from file

chore: rebase

chore: rebase

chore: rebase
@shekhirin shekhirin added A-hera Area: OP Stack Rollup node binary C-refactor A-cli CLI and binaries labels Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli CLI and binaries A-hera Area: OP Stack Rollup node binary C-refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants