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 committed 2024-04-05 16:46:30 +11:00
1 parent 9dc9a5cf45
commit f5100a2a1d
1 file changed
+1 -1
+1 -1
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 {