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 execute_single_transaction to BlockExecutionStrategy #13803

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Rjected
Copy link
Member

@Rjected Rjected commented Jan 15, 2025

Adds execute_single_transaction to the BlockExecutionStrategy trait. If we then expose this from an executor, it unblocks prewarming, which must execute individual transactions

@Rjected Rjected added C-enhancement New feature or request A-execution Related to the Execution and EVM A-sdk Related to reth's use as a library labels Jan 15, 2025
@Rjected Rjected force-pushed the dan/single-tx-again branch from d372532 to fab359d Compare January 15, 2025 17:29
@Rjected Rjected force-pushed the dan/single-tx-again branch from fab359d to b1486fc Compare January 17, 2025 05:32
@Rjected Rjected marked this pull request as ready for review January 17, 2025 05:32
Copy link
Member

@fgimenez fgimenez left a comment

Choose a reason for hiding this comment

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

lgtm, nit

Comment on lines +158 to +160
// The sum of the transaction’s gas limit, Tg, and the gas utilized in this block prior,
// must be no greater than the block’s gasLimit.
if transaction.gas_limit() > header.gas_limit {
Copy link
Member

@fgimenez fgimenez Jan 17, 2025

Choose a reason for hiding this comment

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

this comment seems out of place, we are executing a single transaction?

Comment on lines +203 to +205
// The sum of the transaction’s gas limit, Tg, and the gas utilized in this block prior,
// must be no greater than the block’s gasLimit.
if transaction.gas_limit() > header.gas_limit() &&
Copy link
Member

Choose a reason for hiding this comment

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

same as above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-execution Related to the Execution and EVM A-sdk Related to reth's use as a library C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants