From 0657ca2969f4157718c2c8940795a2dec14486fe Mon Sep 17 00:00:00 2001 From: CalDescent Date: Thu, 9 Sep 2021 17:46:19 +0100 Subject: [PATCH] atStatesMaxLifetime increased to 5 days For now, we need some headroom to allow for orphaning in the event of a problem. Orphaning currently fails if there is no ATStatesData available (which is the case for trimmed blocks). This could ultimately be solved by retaining older unique states. --- src/main/java/org/qortal/settings/Settings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/qortal/settings/Settings.java b/src/main/java/org/qortal/settings/Settings.java index 6527d7e0..98521646 100644 --- a/src/main/java/org/qortal/settings/Settings.java +++ b/src/main/java/org/qortal/settings/Settings.java @@ -94,7 +94,7 @@ public class Settings { private int blockCacheSize = 10; /** How long to keep old, full, AT state data (ms). */ - private long atStatesMaxLifetime = 24 * 60 * 60 * 1000L; // milliseconds + private long atStatesMaxLifetime = 5 * 24 * 60 * 60 * 1000L; // milliseconds /** How often to attempt AT state trimming (ms). */ private long atStatesTrimInterval = 5678L; // milliseconds /** Block height range to scan for trimmable AT states.