From 207f434ca221b6115e0c2b6a30647c17dab0f19c Mon Sep 17 00:00:00 2001 From: maskpp Date: Tue, 4 Nov 2025 13:44:07 +0800 Subject: [PATCH] fix comments --- 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 aeab91abf1..035f686cb1 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -267,7 +267,7 @@ func (s *StateDB) Logs() []*types.Log { } // 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 || (logs[i].TxIndex == logs[j].TxIndex && logs[i].Index < logs[j].Index) + return logs[i].Index < logs[j].Index }) return logs }