Skip to content

Conversation

will-2012
Copy link

@will-2012 will-2012 commented Mar 28, 2025

LegacyPool Context()/Pending() method is read-only and does not modify txpool inner status, so rlock is enough and make more clear.

wlock is used due to list.flatten is not thread-safe in the past #27324, and this #27898 has ensured list is thread-safe.

@will-2012
Copy link
Author

will-2012 commented Mar 28, 2025

SortedMap seems to have complex concurrent semantics. It seems that it is dangerous in concurrent situations.

@will-2012 will-2012 closed this Mar 28, 2025
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.

1 participant