You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib/constants.ts
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,12 @@
2
2
exportconstLOCK_DEFAULT_MAX_RETRIES=32;
3
3
exportconstLOCK_DEFAULT_INITIAL_RETRY_INTERVAL_MS=30;// Increased with itself on each retry, so the actual retry interval is 20, 40, 60 etc. 32 and 20 become about 10 seconds total.
4
4
exportconstLOCK_STALE_TIMEOUT_MS=6*60*60*1000;// Automatically unlock a ledger that has been locked for more than 2*60*60*1000 = 2 hours.
5
-
exportconstLEDGER_CURRENT_VERSION: string="B015";
5
+
exportconstLEDGER_CURRENT_VERSION: string="B016";
6
6
exportconstSUPPORTED_LEDGER_VERSIONS: string[]=[
7
7
LEDGER_CURRENT_VERSION,
8
-
"B011",
9
-
"B012",
10
-
"B013",
11
8
];
9
+
exportconstLEDGER_PREFETCH_BYTES=50*1024;// Prefetch chunks of 50KB of data while reading the ledger
12
10
exportconstLEDGER_MAX_READ_FAILURES=10;
13
-
exportconstLEDGER_PREFETCH_BYTES=256;
14
11
exportconstSYNC_INTERVAL_MS=2_500;// Overridable with instance configuration
15
12
exportconstLEDGER_CACHE_MB=100;// Allow 100 MBytes of the ledger to exist in RAM. Not an exact science due to LEDGER_CACHE_MEMORY_FACTOR.
16
13
exportconstLEDGER_CACHE_MEMORY_FACTOR=3;// Assume that ledger entries take about n times as much space when unwrapped in RAM. Used for ledger cache memory limit, does not need to be exakt.
0 commit comments