-
Notifications
You must be signed in to change notification settings - Fork 20.2k
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
core/txpool: make transaction validation reusable across packages (pools) #27429
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
karalabe
requested review from
zsfelfoldi,
rjl493456442 and
holiman
as code owners
June 6, 2023 07:43
karalabe
force-pushed
the
4844-txpool-abstractions
branch
from
June 6, 2023 07:45
f1b9fff
to
2904e6e
Compare
karalabe
changed the title
core/txpool: abstraction prep work for secondary pools (blob pool)
core/txpool: make transaction validation reusable across packages (pools)
Jun 6, 2023
holiman
approved these changes
Jun 6, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@holiman Fixed, PTAL |
karalabe
force-pushed
the
4844-txpool-abstractions
branch
from
June 6, 2023 09:21
d779bac
to
41221da
Compare
devopsbo3
pushed a commit
to HorizenOfficial/go-ethereum
that referenced
this pull request
Nov 10, 2023
…ols) (ethereum#27429) * core/txpool: abstraction prep work for secondary pools (blob pool) * core/txpool: leave subpool concepts to a followup pr * les: fix tests using hard coded errors * core/txpool: use bitmaps instead of maps for tx type filtering
devopsbo3
added a commit
to HorizenOfficial/go-ethereum
that referenced
this pull request
Nov 10, 2023
…ages (pools) (ethereum#27429)" This reverts commit 4b555c7.
devopsbo3
added a commit
to HorizenOfficial/go-ethereum
that referenced
this pull request
Nov 10, 2023
…ages (pools) (ethereum#27429)" This reverts commit 4b555c7.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The blobpool coming in a followup PR will be a separare tx pool, but it needs some shared functionality with the main transaction pool. Specifically in the context of this PR, the blobpool will need almost the exact same transaction validations with minor tweaks.
As such, this PR does a reparatory work to make the transaction validation reusable across multiple txpool implementations. The PR also does some minor refactorings to clean up some method names.
A next PR will move tx txpool itself into a legacy "subpool" pool, so I'd like to merge in all functional changes first and have the move into a new package be mostly just code moving and import path reworking (TM).
If you're curious how these are used in the blobpool (to verify the abstraction), this PR contains all the code: #26940