From d93f5eea35a5fa82503e86c0dcdb2aa1fd50d122 Mon Sep 17 00:00:00 2001 From: rjl493456442 Date: Mon, 19 Jan 2026 11:29:12 +0800 Subject: [PATCH] Fix comment formatting for clarity --- triedb/pathdb/states.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/triedb/pathdb/states.go b/triedb/pathdb/states.go index 59e7be8979..41d4855f7b 100644 --- a/triedb/pathdb/states.go +++ b/triedb/pathdb/states.go @@ -176,11 +176,10 @@ func (s *stateSet) accountList() []common.Hash { s.listLock.Lock() defer s.listLock.Unlock() - //double check after acquiring the write lock + // Double check after acquiring the write lock if list = s.accountListSorted; list != nil { return list } - list = slices.SortedFunc(maps.Keys(s.accountData), common.Hash.Cmp) s.accountListSorted = list return list @@ -211,11 +210,10 @@ func (s *stateSet) storageList(accountHash common.Hash) []common.Hash { s.listLock.Lock() defer s.listLock.Unlock() - //double check after acquiring the write lock + // Double check after acquiring the write lock if list := s.storageListSorted[accountHash]; list != nil { return list } - list := slices.SortedFunc(maps.Keys(s.storageData[accountHash]), common.Hash.Cmp) s.storageListSorted[accountHash] = list return list