new health-check based esplora failover mechanism

This commit is contained in:
Mononaut
2023-08-05 13:08:47 +09:00
parent 794a4ded9c
commit 2095f90262
9 changed files with 220 additions and 76 deletions

View File

@@ -44,6 +44,7 @@ interface IConfig {
REST_API_URL: string;
UNIX_SOCKET_PATH: string | void | null;
RETRY_UNIX_SOCKET_AFTER: number;
FALLBACK: string[];
};
LIGHTNING: {
ENABLED: boolean;
@@ -188,6 +189,7 @@ const defaults: IConfig = {
'REST_API_URL': 'http://127.0.0.1:3000',
'UNIX_SOCKET_PATH': null,
'RETRY_UNIX_SOCKET_AFTER': 30000,
'FALLBACK': [],
},
'ELECTRUM': {
'HOST': '127.0.0.1',