This commit is contained in:
boufni95 2023-10-23 20:13:31 +02:00
parent f1f5ded2b4
commit 4435175434

View file

@ -77,7 +77,6 @@ export default class {
if (!info.syncedToChain || !info.syncedToGraph) { if (!info.syncedToChain || !info.syncedToGraph) {
throw new Error("not synced") throw new Error("not synced")
} }
console.log(info)
} }
RestartStreams() { RestartStreams() {
@ -190,6 +189,7 @@ export default class {
async PayInvoice(invoice: string, amount: number, feeLimit: number): Promise<PaidInvoice> { async PayInvoice(invoice: string, amount: number, feeLimit: number): Promise<PaidInvoice> {
await this.Health() await this.Health()
console.log(await this.lightning.channelBalance({}))
const abortController = new AbortController() const abortController = new AbortController()
const req = PayInvoiceReq(invoice, amount, feeLimit) const req = PayInvoiceReq(invoice, amount, feeLimit)
console.log("sending payment:", req) console.log("sending payment:", req)