mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 12:46:44 +00:00
fix comments
This commit is contained in:
parent
26fbb4046e
commit
207f434ca2
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue