Skip to content

Commit c694125

Browse files
authored
Remove comment on log sorting stability
Removed comment about sorting logs by TxIndex.
1 parent 207f434 commit c694125

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

core/state/statedb.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ func (s *StateDB) Logs() []*types.Log {
265265
for _, lgs := range s.logs {
266266
logs = append(logs, lgs...)
267267
}
268-
// Because map iteration is not stable, we need to sort the logs by TxIndex, then the LogsHash result is stable.
269268
sort.Slice(logs, func(i, j int) bool {
270269
return logs[i].Index < logs[j].Index
271270
})

0 commit comments

Comments
 (0)