Speed up $scanForClosedChannels, use internal outspends apis

This commit is contained in:
Mononaut
2023-08-18 02:47:32 +09:00
parent 995acb238d
commit 70badaf461
5 changed files with 37 additions and 22 deletions

View File

@@ -25,6 +25,7 @@ export interface AbstractBitcoinApi {
$getOutspends(txId: string): Promise<IEsploraApi.Outspend[]>;
$getBatchedOutspends(txId: string[]): Promise<IEsploraApi.Outspend[][]>;
$getBatchedOutspendsInternal(txId: string[]): Promise<IEsploraApi.Outspend[][]>;
$getOutSpendsByOutpoint(outpoints: { txid: string, vout: number }[]): Promise<IEsploraApi.Outspend[]>;
startHealthChecks(): void;
}