From c69412548f0136f0c734a117693ea33a99f268d7 Mon Sep 17 00:00:00 2001 From: rjl493456442 Date: Tue, 4 Nov 2025 20:12:47 +0800 Subject: [PATCH] Remove comment on log sorting stability Removed comment about sorting logs by TxIndex. --- core/state/statedb.go | 1 - 1 file changed, 1 deletion(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index 035f686cb1..364bc40850 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -265,7 +265,6 @@ func (s *StateDB) Logs() []*types.Log { for _, lgs := range s.logs { logs = append(logs, lgs...) } - // Because map iteration is not stable, we need to sort the logs by TxIndex, then the LogsHash result is stable. sort.Slice(logs, func(i, j int) bool { return logs[i].Index < logs[j].Index })