From f1f5ded2b47ac6ff5332565e2fd6b6b7b1ace213 Mon Sep 17 00:00:00 2001 From: boufni95 Date: Mon, 23 Oct 2023 20:07:09 +0200 Subject: [PATCH] up --- src/services/lnd/lnd.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/services/lnd/lnd.ts b/src/services/lnd/lnd.ts index 22e64925..8805d2a9 100644 --- a/src/services/lnd/lnd.ts +++ b/src/services/lnd/lnd.ts @@ -69,7 +69,7 @@ export default class { return res.response } - async Health(): Promise { + async Health(): Promise { if (!this.ready) { throw new Error("not ready") } @@ -77,7 +77,7 @@ export default class { if (!info.syncedToChain || !info.syncedToGraph) { throw new Error("not synced") } - return info + console.log(info) } RestartStreams() { @@ -189,8 +189,7 @@ export default class { } async PayInvoice(invoice: string, amount: number, feeLimit: number): Promise { - const i = await this.Health() - console.log(i) + await this.Health() const abortController = new AbortController() const req = PayInvoiceReq(invoice, amount, feeLimit) console.log("sending payment:", req)