Make clear protection timeout configurable.

fixes #335
This commit is contained in:
softsimon
2021-02-14 20:32:00 +07:00
parent 2641ae0c8e
commit 7489d3360a
3 changed files with 6 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ interface IConfig {
API_URL_PREFIX: string;
POLL_RATE_MS: number;
CACHE_DIR: string;
CLEAR_PROTECTION_MINUTES: number;
};
ESPLORA: {
REST_API_URL: string;
@@ -61,7 +62,8 @@ const defaults: IConfig = {
'SPAWN_CLUSTER_PROCS': 0,
'API_URL_PREFIX': '/api/v1/',
'POLL_RATE_MS': 2000,
'CACHE_DIR': './cache'
'CACHE_DIR': './cache',
'CLEAR_PROTECTION_MINUTES': 20,
},
'ESPLORA': {
'REST_API_URL': 'http://127.0.0.1:3000',