Skip to content

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

@holiman holiman force-pushed the txpool_list_mutex branch from ccb1318 to a4354d4 Compare August 11, 2023 13:48
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
@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
pdrobnjak pushed a commit to Tenderly/net-scroll-geth that referenced this pull request Apr 30, 2025
* upgrade rlp to go-ethereum v.14.6

* core/types: transaction and receipt encoding/decoding optimizations ethereum#27976

* core/types: use new atomic types in caches ethereum#29411, fix eth/handler bug

* eth/fetcher: throttle peers which deliver many invalid transactions ethereum#25573

* core: preallocate map in tx_pool ethereum#25737

* core/txpool: protect cache with mutex ethereum#27898

* upgrade memsize to v0.0.2
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