From 9b9c13880daa6bd4b9828ea671efb3d9f3d8fc65 Mon Sep 17 00:00:00 2001 From: maskpp Date: Sun, 2 Nov 2025 22:36:37 +0800 Subject: [PATCH] Update core/state/statedb.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- core/state/statedb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index 2f0ddaf7ea..270b5f64ac 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -265,7 +265,7 @@ func (s *StateDB) Logs() []*types.Log { for _, lgs := range s.logs { logs = append(logs, lgs...) } - // Due to the map iteration is not stable, we need to sort the logs by TxIndex, then the LogsHash result is stable. + // 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].TxIndex < logs[j].TxIndex })