We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e873140 commit 9b9c138Copy full SHA for 9b9c138
core/state/statedb.go
@@ -265,7 +265,7 @@ func (s *StateDB) Logs() []*types.Log {
265
for _, lgs := range s.logs {
266
logs = append(logs, lgs...)
267
}
268
- // 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.
269
sort.Slice(logs, func(i, j int) bool {
270
return logs[i].TxIndex < logs[j].TxIndex
271
})
0 commit comments