Skip to content

Commit 1f103b1

Browse files
fix: change lock to read lock in legacypool
1 parent 78f0651 commit 1f103b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/txpool/legacypool/legacypool.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,8 @@ func (pool *LegacyPool) Pending(filter txpool.PendingFilter) map[common.Address]
573573
if filter.OnlyBlobTxs {
574574
return nil
575575
}
576-
pool.mu.Lock()
577-
defer pool.mu.Unlock()
576+
pool.mu.RLock()
577+
defer pool.mu.RUnlock()
578578

579579
// Convert the new uint256.Int types to the old big.Int ones used by the legacy pool
580580
var (

0 commit comments

Comments
 (0)