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

core/txpool/legacypool: protect cache with mutex #27898

Merged
merged 2 commits into from
Aug 17, 2023

Conversation

holiman
Copy link
Contributor

@holiman holiman commented Aug 10, 2023

The pr #27324 fixed an issue somewhat incidentally. This PR fixes the root issue a bit more robustly, by using mutexes when the cache is read or modified.

Replaces #27324

Copy link
Member

@rjl493456442 rjl493456442 left a comment

Choose a reason for hiding this comment

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

nitpick, otherwise lgtm

@holiman holiman added this to the 1.13.0 milestone Aug 17, 2023
@holiman holiman merged commit 1aa5520 into ethereum:master Aug 17, 2023
1 check passed
@holiman holiman deleted the txpool_list_mutex branch October 11, 2023 07:26
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
This change fixes the a potential race by using mutexes when the m.cache is read or modified.
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
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