Skip to content

Conversation

@rekyyang
Copy link
Contributor

No description provided.

@rekyyang rekyyang changed the title fix data race in checkDelegationLimit fix: data race in checkDelegationLimit Mar 24, 2025
@rekyyang
Copy link
Contributor Author

#31474

@rjl493456442 rjl493456442 self-assigned this Mar 24, 2025
@fjl fjl changed the title fix: data race in checkDelegationLimit core/txpool/legacypoo: data race in checkDelegationLimit Mar 24, 2025
@fjl fjl changed the title core/txpool/legacypoo: data race in checkDelegationLimit core/txpool/legacypool: data race in checkDelegationLimit Mar 24, 2025
@rjl493456442
Copy link
Member

The data race is theoretically possible but does not occur in practice.

The lookup struct can only be modified by Add and Remove. In legacypool, both functions are always invoked while holding txpool.mu. This ensures that lookup.Add or lookup.Remove cannot be called concurrently with len(pool.all.auths[from]) == 0.

rjl493456442
rjl493456442 previously approved these changes Mar 24, 2025
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.

Please fix the nitpick.

@rekyyang
Copy link
Contributor Author

fixed

@rjl493456442 rjl493456442 added this to the 1.15.7 milestone Mar 25, 2025
@rjl493456442 rjl493456442 merged commit 141968a into ethereum:master Mar 28, 2025
3 of 4 checks passed
sidhujag pushed a commit to syscoin/go-ethereum that referenced this pull request Mar 28, 2025
sivaratrisrinivas pushed a commit to sivaratrisrinivas/go-ethereum that referenced this pull request Apr 21, 2025
sduchesneau pushed a commit to streamingfast/go-ethereum that referenced this pull request May 22, 2025
howjmay pushed a commit to iotaledger/go-ethereum that referenced this pull request Aug 27, 2025
gballet pushed a commit to gballet/go-ethereum that referenced this pull request Sep 11, 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.

2 participants