diff options
Diffstat (limited to 'lib/ln.js')
| -rw-r--r-- | lib/ln.js | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -4,22 +4,7 @@ let ln; if (config.lna.clightning) { ln = (await import("clightning-client"))(config.lna.dir); } else { - let lnd = await import("../lib/lnd"); - ln = [ - "addInvoice", - "channelBalance", - "connectPeer", - "decodePayReq", - "getInfo", - "listInvoices", - "listPayments", - "sendPaymentSync", - "walletBalance" - ].reduce( - (a, b) => - (a[b] = args => new Promise(r => lnd[b](args, (e, v) => r(v)))) && a, - {} - ); + ln = (await import("./lnd.js")); } export default ln; |
