remove duplicate lock

This commit is contained in:
maskpp 2025-04-20 09:23:50 +08:00
parent 4c9e7d1b18
commit 3a8c286bbc

View file

@ -438,9 +438,6 @@ func (pool *LegacyPool) SetGasTip(tip *big.Int) {
// Nonce returns the next nonce of an account, with all transactions executable // Nonce returns the next nonce of an account, with all transactions executable
// by the pool already applied on top. // by the pool already applied on top.
func (pool *LegacyPool) Nonce(addr common.Address) uint64 { func (pool *LegacyPool) Nonce(addr common.Address) uint64 {
pool.mu.RLock()
defer pool.mu.RUnlock()
return pool.pendingNonces.get(addr) return pool.pendingNonces.get(addr)
} }