Change internal API prefix to "internal"
This commit is contained in:
parent
70badaf461
commit
b9217da453
@ -302,11 +302,11 @@ class ElectrsApi implements AbstractBitcoinApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async $getBatchedOutspendsInternal(txids: string[]): Promise<IEsploraApi.Outspend[][]> {
|
async $getBatchedOutspendsInternal(txids: string[]): Promise<IEsploraApi.Outspend[][]> {
|
||||||
return this.failoverRouter.$post<IEsploraApi.Outspend[][]>('/internal-api/txs/outspends/by-txid', txids, 'json');
|
return this.failoverRouter.$post<IEsploraApi.Outspend[][]>('/internal/txs/outspends/by-txid', txids, 'json');
|
||||||
}
|
}
|
||||||
|
|
||||||
async $getOutSpendsByOutpoint(outpoints: { txid: string, vout: number }[]): Promise<IEsploraApi.Outspend[]> {
|
async $getOutSpendsByOutpoint(outpoints: { txid: string, vout: number }[]): Promise<IEsploraApi.Outspend[]> {
|
||||||
return this.failoverRouter.$post<IEsploraApi.Outspend[]>('/internal-api/txs/outspends/by-outpoint', outpoints.map(out => `${out.txid}:${out.vout}`), 'json');
|
return this.failoverRouter.$post<IEsploraApi.Outspend[]>('/internal/txs/outspends/by-outpoint', outpoints.map(out => `${out.txid}:${out.vout}`), 'json');
|
||||||
}
|
}
|
||||||
|
|
||||||
public startHealthChecks(): void {
|
public startHealthChecks(): void {
|
||||||
|
@ -94,7 +94,7 @@ class ForensicsService {
|
|||||||
logger.info(`Fetched outspends for ${allOutspends.length} txs from esplora for LN forensics`);
|
logger.info(`Fetched outspends for ${allOutspends.length} txs from esplora for LN forensics`);
|
||||||
await Common.sleep$(config.LIGHTNING.FORENSICS_RATE_LIMIT);
|
await Common.sleep$(config.LIGHTNING.FORENSICS_RATE_LIMIT);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.err(`Failed to call ${config.ESPLORA.REST_API_URL + '/internal-api/txs/outspends/by-txid'}. Reason ${e instanceof Error ? e.message : e}`);
|
logger.err(`Failed to call ${config.ESPLORA.REST_API_URL + '/internal/txs/outspends/by-txid'}. Reason ${e instanceof Error ? e.message : e}`);
|
||||||
}
|
}
|
||||||
// fetch spending transactions in bulk and load into txCache
|
// fetch spending transactions in bulk and load into txCache
|
||||||
const newSpendingTxids: { [txid: string]: boolean } = {};
|
const newSpendingTxids: { [txid: string]: boolean } = {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user