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: add ExExLauncher #8693

Merged
merged 1 commit into from
Jun 10, 2024
Merged

feat: add ExExLauncher #8693

merged 1 commit into from
Jun 10, 2024

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Jun 8, 2024

simply moves the launch exex logic into a helper type

@mattsse mattsse added A-sdk Related to reth's use as a library A-exex Execution Extensions labels Jun 8, 2024
@mattsse mattsse force-pushed the matt/move-exex-to-launch-type branch from f10ebcb to d481f90 Compare June 8, 2024 09:28
@mattsse mattsse force-pushed the matt/move-exex-to-launch-type branch from d481f90 to 649b55b Compare June 8, 2024 09:31

/// A version of [`LaunchExEx`] that returns a boxed future. Makes the trait object-safe.
pub(crate) trait BoxedLaunchExEx<Node: FullNodeComponents>: Send {
pub trait BoxedLaunchExEx<Node: FullNodeComponents>: Send {
Copy link
Member

Choose a reason for hiding this comment

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

can we make these pub(crate)? i dont see any reason to impl this as an end user. as soon as we make it pub we need to treat it somewhat as stable api

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

these must be public if we want to make the exex launcher reusable.

this is necessary if we want to write chain specific launch functions

Copy link
Member

Choose a reason for hiding this comment

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

might be a dumb q, but why would you want to re-use the exex launcher outside of this context?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

in order to write custom launch impls,
for example OPLaucnher, EthLauncher, etc... which need to be implemented externally

Copy link
Member

Choose a reason for hiding this comment

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

hmm i thought the idea was that you provide the types and can override eg engine impl + evm and that's about it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is how it works now for OP and ETH which reuse the same launcher, this will get more complex once we need to write more custom launchers, for example with different consensus, or not use the engine API at all

@mattsse mattsse added this pull request to the merge queue Jun 10, 2024
Merged via the queue into main with commit ee7a829 Jun 10, 2024
29 checks passed
@mattsse mattsse deleted the matt/move-exex-to-launch-type branch June 10, 2024 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-exex Execution Extensions A-sdk Related to reth's use as a library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants