mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 04:06:44 +00:00
Clean up comments in states.go
Removed redundant comments about generating a new sorted account list.
This commit is contained in:
parent
d93f5eea35
commit
2c24387aa7
1 changed files with 0 additions and 6 deletions
|
|
@ -170,9 +170,6 @@ func (s *stateSet) accountList() []common.Hash {
|
||||||
if list != nil {
|
if list != nil {
|
||||||
return list
|
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()
|
s.listLock.Lock()
|
||||||
defer s.listLock.Unlock()
|
defer s.listLock.Unlock()
|
||||||
|
|
||||||
|
|
@ -204,9 +201,6 @@ func (s *stateSet) storageList(accountHash common.Hash) []common.Hash {
|
||||||
}
|
}
|
||||||
s.listLock.RUnlock()
|
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()
|
s.listLock.Lock()
|
||||||
defer s.listLock.Unlock()
|
defer s.listLock.Unlock()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue