Skip to content

refactor(block): expose executor tx result type#349

Merged
klkvr merged 1 commit into
alloy-rs:mainfrom
pepyakin:pep/parbal/expose-block-executor-result
Apr 28, 2026
Merged

refactor(block): expose executor tx result type#349
klkvr merged 1 commit into
alloy-rs:mainfrom
pepyakin:pep/parbal/expose-block-executor-result

Conversation

@pepyakin
Copy link
Copy Markdown
Contributor

@pepyakin pepyakin commented Apr 28, 2026

Epose transaction execution result type on BlockExecutorFactory.

Before this, BlockExecutorFor was fixing executor EVM, transaction and
receipt types, but not BlockExecutor::Result. Because of that generic
code could not name tx execution result type from factory-created
executor.

Now BlockExecutorFor also constrains BlockExecutor::Result via
factory associated type, so downstream code can use this type
without adding extra BlockExecutor<Result = ...> bound.

This is a part of type plumbing required for parallel execution, see paradigmxyz/reth#23759

Note

This is based off the latest released version, not main.

Expose transaction execution result type on `BlockExecutorFactory`.

Before this, `BlockExecutorFor` was fixing executor EVM, transaction and
receipt types, but not `BlockExecutor::Result`. Because of that generic
code could not name tx execution result type from factory-created
executor.

Now `BlockExecutorFor` also constrains `BlockExecutor::Result` via
factory associated type, so downstream code can use this type
without adding extra `BlockExecutor<Result = ...>` bound.
@klkvr klkvr merged commit baba1b1 into alloy-rs:main Apr 28, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants