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.
This commit is contained in:
CalDescent 2021-09-09 17:46:19 +01:00
parent 703cdfe174
commit 0657ca2969

View File

@ -94,7 +94,7 @@ public class Settings {
private int blockCacheSize = 10; private int blockCacheSize = 10;
/** How long to keep old, full, AT state data (ms). */ /** 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). */ /** How often to attempt AT state trimming (ms). */
private long atStatesTrimInterval = 5678L; // milliseconds private long atStatesTrimInterval = 5678L; // milliseconds
/** Block height range to scan for trimmable AT states.<br> /** Block height range to scan for trimmable AT states.<br>