ln-service 53.17.0 → 53.17.1

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
@@ -1,6 +1,6 @@
1
1
  # Versions
2
2
 
3
- ## 53.17.0
3
+ ## 53.17.1
4
4
 
5
5
  - `signTransaction`: Add `root_hash` to support Taproot signatures with scripts
6
6
 
package/README.md CHANGED
@@ -3400,6 +3400,7 @@ const {app, server, wss} = grpcProxyServer({
3400
3400
  // Create an authenticated LND for the gRPC REST gateway
3401
3401
  const {lnd} = lndGateway({
3402
3402
  request,
3403
+ websocket,
3403
3404
  macaroon: base64EncodedMacaroonFileString,
3404
3405
  url: `http://localhost:${port}${path}`,
3405
3406
  });
package/package.json CHANGED
@@ -11,10 +11,10 @@
11
11
  "cors": "2.8.5",
12
12
  "express": "4.18.1",
13
13
  "invoices": "2.0.6",
14
- "lightning": "5.16.0",
14
+ "lightning": "5.16.1",
15
15
  "macaroon": "3.0.4",
16
16
  "morgan": "1.10.0",
17
- "ws": "8.6.0"
17
+ "ws": "8.7.0"
18
18
  },
19
19
  "description": "Interaction helper for your Lightning Network daemon",
20
20
  "devDependencies": {
@@ -25,13 +25,13 @@
25
25
  "bip32": "3.0.1",
26
26
  "bip66": "1.1.5",
27
27
  "bitcoinjs-lib": "6.0.1",
28
- "bn.js": "5.2.0",
28
+ "bn.js": "5.2.1",
29
29
  "bs58check": "2.1.2",
30
30
  "ecpair": "2.0.1",
31
31
  "ln-docker-daemons": "2.2.11",
32
32
  "p2tr": "1.3.1",
33
33
  "portfinder": "1.0.28",
34
- "psbt": "2.0.1",
34
+ "psbt": "2.4.0",
35
35
  "rimraf": "3.0.2",
36
36
  "secp256k1": "4.0.3",
37
37
  "tiny-secp256k1": "2.2.1",
@@ -70,5 +70,5 @@
70
70
  "integration-test-0.12.0": "DOCKER_LND_VERSION=v0.12.0-beta npm run test",
71
71
  "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"
72
72
  },
73
- "version": "53.17.0"
73
+ "version": "53.17.1"
74
74
  }
@@ -41,6 +41,9 @@ test(`Create address results in address creation`, async ({end, equal}) => {
41
41
  equal(address.startsWith(prefixForV1), true, 'A taproot address is made');
42
42
  } catch (err) {
43
43
  // LND 0.14.3 and below do not support TR addresses
44
+ const [code] = err;
45
+
46
+ equal(code, 501, 'Taproot addresses are unsupported');
44
47
  }
45
48
 
46
49
  await kill({});
@@ -126,7 +126,7 @@ test(`Forfeit pending channel`, async ({end, equal, strictSame}) => {
126
126
 
127
127
  const [pending] = (await getPendingChannels({lnd})).pending_channels;
128
128
 
129
- const stuckTx = extractTransaction({psbt: signTarget.psbt});
129
+ const stuckTx = extractTransaction({ecp, psbt: signTarget.psbt});
130
130
 
131
131
  const [stuckPending] = proposeToTarget.pending;
132
132
 
@@ -2,22 +2,28 @@ const {spawnLightningCluster} = require('ln-docker-daemons');
2
2
  const {test} = require('@alexbosworth/tap');
3
3
 
4
4
  const {getNetworkInfo} = require('./../../');
5
+ const {setupChannel} = require('./../macros');
6
+
7
+ const size = 2;
8
+ const tokens = 1e6;
5
9
 
6
10
  // Getting the network info should return basic network statistics
7
11
  test(`Get network info`, async ({end, equal}) => {
8
- const {kill, nodes} = await spawnLightningCluster({});
12
+ const {kill, nodes} = await spawnLightningCluster({size});
13
+
14
+ const [{generate, lnd}, target] = nodes;
9
15
 
10
- const [{lnd}] = nodes;
16
+ await setupChannel({generate, lnd, to: target});
11
17
 
12
18
  const result = await getNetworkInfo({lnd});
13
19
 
14
- equal(result.average_channel_size, 0, 'Average channel size');
15
- equal(result.channel_count, 0, 'Channel count');
16
- equal(result.max_channel_size, 0, 'Maximum channel size');
17
- equal(result.median_channel_size, 0, 'Median channel size');
18
- equal(result.min_channel_size, 0, 'Minimum channel size');
20
+ equal(result.average_channel_size, tokens, 'Average channel size');
21
+ equal(result.channel_count, 1, 'Channel count');
22
+ equal(result.max_channel_size, tokens, 'Maximum channel size');
23
+ equal(result.median_channel_size, tokens, 'Median channel size');
24
+ equal(result.min_channel_size, tokens, 'Minimum channel size');
19
25
  equal(result.not_recently_updated_policy_count, 0, 'Not updated count');
20
- equal(result.total_capacity, 0, 'Total capacity');
26
+ equal(result.total_capacity, tokens, 'Total capacity');
21
27
 
22
28
  await kill({});
23
29