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

chore: reduce revm scope in txpool #13274

Merged
merged 3 commits into from
Dec 11, 2024
Merged

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Dec 10, 2024

we only need this to pre-validate gas limits, but we can reduce imports

@mattsse mattsse requested a review from gakonst as a code owner December 10, 2024 15:23
@mattsse mattsse enabled auto-merge December 10, 2024 15:23
@mattsse mattsse added the A-tx-pool Related to the transaction mempool label Dec 10, 2024
@mattsse mattsse force-pushed the matt/reduce-revm-deps-on-pool branch from 7078ea9 to 37cd874 Compare December 10, 2024 15:24
@mattsse mattsse force-pushed the matt/reduce-revm-deps-on-pool branch from 7d3d499 to 9141db7 Compare December 10, 2024 17:15
@@ -807,6 +803,7 @@ pub fn ensure_intrinsic_gas<T: EthPoolTransaction>(
transaction: &T,
fork_tracker: &ForkTracker,
) -> Result<(), InvalidPoolTransactionError> {
use revm_primitives::SpecId;
Copy link
Member

Choose a reason for hiding this comment

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

how come this use statement is local to this function?

Copy link
Collaborator Author

@mattsse mattsse Dec 11, 2024

Choose a reason for hiding this comment

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

I want to limit revm imports to only this function, because this is the only place we're using it

@mattsse mattsse added this pull request to the merge queue Dec 11, 2024
@emhane emhane removed this pull request from the merge queue due to a manual request Dec 11, 2024
@mattsse mattsse added this pull request to the merge queue Dec 11, 2024
Merged via the queue into main with commit b424ad3 Dec 11, 2024
42 checks passed
@mattsse mattsse deleted the matt/reduce-revm-deps-on-pool branch December 11, 2024 07:50
lean-apple pushed a commit to lean-apple/reth that referenced this pull request Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tx-pool Related to the transaction mempool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants