fix(events): order entries by insertion order when selecting

Fixes: https://github.com/filecoin-project/lotus/issues/11823
This commit is contained in:
Rod Vagg 2024-04-05 12:58:29 +11:00
parent 9dc9a5cf45
commit f5100a2a1d

View File

@ -557,7 +557,7 @@ func (ei *EventIndex) prefillFilter(ctx context.Context, f *eventFilter, exclude
s = s + " WHERE " + strings.Join(clauses, " AND ")
}
s += " ORDER BY event.height DESC"
s += " ORDER BY event.height DESC, event_entry._rowid_ ASC"
stmt, err := ei.db.Prepare(s)
if err != nil {