ln-service 54.2.2 → 54.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ through npm.
|
|
|
9
9
|
|
|
10
10
|
Supported LND versions:
|
|
11
11
|
|
|
12
|
-
- v0.15.2-beta
|
|
12
|
+
- v0.15.2-beta to v0.15.3-beta
|
|
13
13
|
- v0.14.4-beta
|
|
14
14
|
|
|
15
15
|
For typescript-ready methods, check out https://github.com/alexbosworth/lightning#readme
|
|
@@ -5463,7 +5463,10 @@ Subscribe to invoices
|
|
|
5463
5463
|
Requires `invoices:read` permission
|
|
5464
5464
|
|
|
5465
5465
|
{
|
|
5466
|
+
[added_after]: <Invoice Added After Index Number>
|
|
5467
|
+
[confirmed_after]: <Invoice Confirmed After Index Number>
|
|
5466
5468
|
lnd: <Authenticated LND API Object>
|
|
5469
|
+
[restart_delay_ms]: <Restart Subscription Delay Milliseconds Number>
|
|
5467
5470
|
}
|
|
5468
5471
|
|
|
5469
5472
|
@throws
|
package/package.json
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"cors": "2.8.5",
|
|
12
12
|
"express": "4.18.2",
|
|
13
13
|
"invoices": "2.2.0",
|
|
14
|
-
"lightning": "6.2.
|
|
14
|
+
"lightning": "6.2.5",
|
|
15
15
|
"macaroon": "3.0.4",
|
|
16
16
|
"morgan": "1.10.0",
|
|
17
|
-
"ws": "8.
|
|
17
|
+
"ws": "8.10.0"
|
|
18
18
|
},
|
|
19
19
|
"description": "Interaction helper for your Lightning Network daemon",
|
|
20
20
|
"devDependencies": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"bn.js": "5.2.1",
|
|
29
29
|
"bs58check": "2.1.2",
|
|
30
30
|
"ecpair": "2.1.0",
|
|
31
|
-
"ln-docker-daemons": "3.1.
|
|
31
|
+
"ln-docker-daemons": "3.1.3",
|
|
32
32
|
"p2tr": "1.3.2",
|
|
33
33
|
"portfinder": "1.0.32",
|
|
34
34
|
"psbt": "2.7.1",
|
|
@@ -56,9 +56,10 @@
|
|
|
56
56
|
"url": "https://github.com/alexbosworth/ln-service.git"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
|
+
"integration-test-0.15.3": "DOCKER_LND_VERSION=v0.15.3-beta npm run test",
|
|
59
60
|
"integration-test-0.15.2": "DOCKER_LND_VERSION=v0.15.2-beta npm run test",
|
|
60
61
|
"integration-test-0.14.4": "DOCKER_LND_VERSION=v0.14.4-beta npm run test",
|
|
61
62
|
"test": "echo $DOCKER_LND_VERSION && tap -j 2 --branches=1 --functions=1 --lines=1 --statements=1 -t 200 test/autopilotrpc-integration/*.js test/chainrpc-integration/*.js test/integration/*.js test/invoicesrpc-integration/*.js test/peersrpc-integration/*.js test/routerrpc-integration/*.js test/signerrpc-integration/*.js test/tower_clientrpc-integration/*.js test/tower_serverrpc-integration/*.js test/walletrpc-integration/*.js"
|
|
62
63
|
},
|
|
63
|
-
"version": "54.2.
|
|
64
|
+
"version": "54.2.4"
|
|
64
65
|
}
|
|
@@ -86,7 +86,7 @@ test(`Get closed channels`, async ({end, equal}) => {
|
|
|
86
86
|
|
|
87
87
|
// LND 0.11.1 and below do not use anchors
|
|
88
88
|
if (isAnchors) {
|
|
89
|
-
equal([53345, 2810].includes(spend), true, 'Final');
|
|
89
|
+
equal([53345, 28473, 2810].includes(spend), true, 'Final');
|
|
90
90
|
} else {
|
|
91
91
|
equal(spend, 9050, 'Final');
|
|
92
92
|
}
|
|
@@ -150,7 +150,7 @@ test('Subscribe to channels', async ({end, equal, fail}) => {
|
|
|
150
150
|
if (isAnchors) {
|
|
151
151
|
const final = closeEvent.final_local_balance;
|
|
152
152
|
|
|
153
|
-
equal([897190, 846655].includes(final), true, 'Close final
|
|
153
|
+
equal([897190, 846655, 863366].includes(final), true, 'Close final');
|
|
154
154
|
} else {
|
|
155
155
|
equal(closeEvent.final_local_balance, 890950, 'Close final local balance');
|
|
156
156
|
}
|
|
@@ -38,7 +38,10 @@ test(`Disconnect watchtower`, async ({end, equal, match}) => {
|
|
|
38
38
|
|
|
39
39
|
const [disconnected] = (await getConnectedWatchtowers({lnd})).towers;
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
// LND 0.15.3 and below retain the tower
|
|
42
|
+
if (!!disconnected) {
|
|
43
|
+
equal(disconnected.is_active, false, 'Tower is inactive');
|
|
44
|
+
}
|
|
42
45
|
|
|
43
46
|
[client, tower].forEach(n => n.kill());
|
|
44
47
|
|