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

@@ -23,6 +23,8 @@ export interface AbstractBitcoinApi {
$getOutspend(txId: string, vout: number): Promise<IEsploraApi.Outspend>;
$getOutspends(txId: string): Promise<IEsploraApi.Outspend[]>;
$getBatchedOutspends(txId: string[]): Promise<IEsploraApi.Outspend[][]>;
startHealthChecks(): void;
}
export interface BitcoinRpcCredentials {
host: string;