Fixed recently introduced issue in name rebuilding code causing transactions to be unordered.

This is the likely cause of inconsistent name entries across different nodes, as we can't guarantee that every environment will return the same transaction order from the SQL queries.
This commit is contained in:
CalDescent 2022-03-19 18:44:16 +00:00
parent f3e1fc884c
commit 4340dac595

View File

@ -313,6 +313,10 @@ public class NamesDatabaseIntegrityCheck {
transactions.add(transactionData);
}
}
// Sort by lowest timestamp first
transactions.sort(Comparator.comparingLong(TransactionData::getTimestamp));
return transactions;
}