lnsocket

A minimal C library for connecting to the lightning network
git clone git://jb55.com/lnsocket
Log | Files | Refs | Submodules | README | LICENSE

commit 29c8d5e568af782ef011c8625a0b0c4068838693
parent d821d922b784840dea77e7c57fa09032bb6b0855
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 16 Mar 2022 19:01:41 -0700

Revert "I prefer this"

changed my mind again lol

This reverts commit 0bd5a8989512e2c78291f0ea361ab37759dde4b7.

Diffstat:
Mexamples/node.js | 3+--
Mindex.js | 2+-
Mpackage.json | 2+-
3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/examples/node.js b/examples/node.js @@ -1,8 +1,7 @@ const lnsocket_init = require('lnsocket') async function go() { - const LNSocket = await lnsocket_init() - const ln = LNSocket() + const ln = await LNSocket() ln.genkey() await ln.connect_and_init("03f3c108ccd536b8526841f0a5c58212bb9e6584a1eb493080e7c1cc34f82dad71", "24.84.152.187") diff --git a/index.js b/index.js @@ -5,7 +5,7 @@ const LNSocketReady = Module.lnsocket_init() async function load_lnsocket(opts) { const LNSocket = await LNSocketReady - return LNSocket + return new LNSocket(opts) } module.exports = load_lnsocket diff --git a/package.json b/package.json @@ -1,7 +1,7 @@ { "name": "lnsocket", "description": "Connect to the lightning network", - "version": "0.2.2", + "version": "0.2.3", "repository": { "url": "https://github.com/jb55/lnsocket" },