From 2c24387aa70be05eff930ab27bb4ba16146d056b Mon Sep 17 00:00:00 2001 From: rjl493456442 Date: Mon, 19 Jan 2026 11:30:14 +0800 Subject: [PATCH] Clean up comments in states.go Removed redundant comments about generating a new sorted account list. --- triedb/pathdb/states.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/triedb/pathdb/states.go b/triedb/pathdb/states.go index 41d4855f7b..c84e2dc60c 100644 --- a/triedb/pathdb/states.go +++ b/triedb/pathdb/states.go @@ -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()