Clean up comments in states.go

Removed redundant comments about generating a new sorted account list.
This commit is contained in:
rjl493456442 2026-01-19 11:30:14 +08:00 committed by GitHub
parent d93f5eea35
commit 2c24387aa7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -170,9 +170,6 @@ func (s *stateSet) accountList() []common.Hash {
if list != nil {
return list
}
// No old sorted account list exists, generate a new one. It's possible that
// multiple threads waiting for the write lock may regenerate the list
// multiple times, which is acceptable.
s.listLock.Lock()
defer s.listLock.Unlock()
@ -204,9 +201,6 @@ func (s *stateSet) storageList(accountHash common.Hash) []common.Hash {
}
s.listLock.RUnlock()
// No old sorted account list exists, generate a new one. It's possible that
// multiple threads waiting for the write lock may regenerate the list
// multiple times, which is acceptable.
s.listLock.Lock()
defer s.listLock.Unlock()