Keep latest AT state, even if "finished", so we can produce historical trade data

This commit is contained in:
catbref 2020-10-05 15:18:41 +01:00
parent 532c697026
commit a2038274e1

View File

@ -445,7 +445,6 @@ public class HSQLDBATRepository implements ATRepository {
+ "WHERE ATStates.AT_address = ATs.AT_address " + "WHERE ATStates.AT_address = ATs.AT_address "
+ "ORDER BY AT_address DESC, height DESC LIMIT 1" + "ORDER BY AT_address DESC, height DESC LIMIT 1"
+ ") " + ") "
+ "WHERE is_finished IS false"
+ ") " + ") "
+ "WITH DATA " + "WITH DATA "
+ "ON COMMIT PRESERVE ROWS"; + "ON COMMIT PRESERVE ROWS";