From d5b6eb718c49ae1166e2f45658c6e03b5c59b65b Mon Sep 17 00:00:00 2001 From: boufni95 Date: Mon, 23 Oct 2023 19:55:34 +0200 Subject: [PATCH] up --- src/services/lnd/lnd.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/services/lnd/lnd.ts b/src/services/lnd/lnd.ts index 7ef22c5b..22e64925 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,6 +77,7 @@ export default class { if (!info.syncedToChain || !info.syncedToGraph) { throw new Error("not synced") } + return info } RestartStreams() { @@ -188,7 +189,8 @@ export default class { } async PayInvoice(invoice: string, amount: number, feeLimit: number): Promise { - await this.Health() + const i = await this.Health() + console.log(i) const abortController = new AbortController() const req = PayInvoiceReq(invoice, amount, feeLimit) console.log("sending payment:", req)