ln-service 57.14.3 → 57.14.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
@@ -1,6 +1,6 @@
1
1
  # Versions
2
2
 
3
- ## 57.14.3
3
+ ## 57.14.4
4
4
 
5
5
  - `getChannel`: Add support for specifying `transaction_id` and
6
6
  `transaction_vout` instead of `id`
package/README.md CHANGED
@@ -9,7 +9,7 @@ through npm.
9
9
 
10
10
  Supported LND versions:
11
11
 
12
- - v0.18.0-beta
12
+ - v0.18.0-beta to v0.18.1-beta
13
13
  - v0.17.0-beta to v0.17.5-beta
14
14
  - v0.16.0-beta to v0.16.4-beta
15
15
  - v0.15.2-beta to v0.15.5-beta
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "dependencies": {
10
10
  "bolt07": "1.9.4",
11
11
  "invoices": "3.0.0",
12
- "lightning": "10.14.1",
12
+ "lightning": "10.14.4",
13
13
  "macaroon": "3.0.4"
14
14
  },
15
15
  "description": "Interaction helper for your Lightning Network daemon",
@@ -19,12 +19,12 @@
19
19
  "async": "3.2.5",
20
20
  "asyncjs-util": "1.2.12",
21
21
  "bip32": "4.0.0",
22
- "bip66": "1.1.5",
22
+ "bip66": "2.0.0",
23
23
  "bitcoinjs-lib": "6.1.6",
24
24
  "bn.js": "5.2.1",
25
- "bs58check": "3.0.1",
25
+ "bs58check": "4.0.0",
26
26
  "ecpair": "2.1.0",
27
- "ln-docker-daemons": "6.0.19",
27
+ "ln-docker-daemons": "6.0.20",
28
28
  "p2tr": "2.0.0",
29
29
  "portfinder": "1.0.32",
30
30
  "psbt": "3.0.0",
@@ -52,6 +52,7 @@
52
52
  "url": "https://github.com/alexbosworth/ln-service.git"
53
53
  },
54
54
  "scripts": {
55
+ "integration-test-0.18.1": "DOCKER_LND_VERSION=v0.18.1-beta npm run test",
55
56
  "integration-test-0.18.0": "DOCKER_LND_VERSION=v0.18.0-beta npm run test",
56
57
  "integration-test-0.17.5": "DOCKER_LND_VERSION=v0.17.5-beta npm run test",
57
58
  "integration-test-0.17.4": "DOCKER_LND_VERSION=v0.17.4-beta npm run test",
@@ -72,5 +73,5 @@
72
73
  "integration-test-0.14.4": "DOCKER_LND_VERSION=v0.14.4-beta npm run test",
73
74
  "test": "echo $DOCKER_LND_VERSION && node test/runner"
74
75
  },
75
- "version": "57.14.3"
76
+ "version": "57.14.4"
76
77
  }
@@ -145,6 +145,8 @@ test(`Get route through complex hops`, async () => {
145
145
  await asyncRetry({interval, times}, async () => {
146
146
  const {features} = await getNode({lnd, public_key: farthest.id});
147
147
 
148
+ await addPeer({lnd, public_key: farthest.id, socket: farthest.socket});
149
+
148
150
  if (!features.length) {
149
151
  throw new Error('ExpectedFarthestFeatures');
150
152
  }
@@ -126,13 +126,15 @@ test(`Get route through hops`, async () => {
126
126
  total_mtokens: decodedRequest.mtokens,
127
127
  });
128
128
 
129
- const lndRoute = await getRouteThroughHops({
130
- lnd,
131
- cltv_delta: decodedRequest.cltv_delta + confirmationCount,
132
- mtokens: decodedRequest.mtokens,
133
- payment: decodedRequest.payment,
134
- public_keys: [target.id, remote.id],
135
- total_mtokens: decodedRequest.mtokens,
129
+ const lndRoute = await asyncRetry({interval, times}, async () => {
130
+ return await getRouteThroughHops({
131
+ lnd,
132
+ cltv_delta: decodedRequest.cltv_delta + confirmationCount,
133
+ mtokens: decodedRequest.mtokens,
134
+ payment: decodedRequest.payment,
135
+ public_keys: [target.id, remote.id],
136
+ total_mtokens: decodedRequest.mtokens,
137
+ });
136
138
  });
137
139
 
138
140
  const discounted = BigInt(discountFee.inbound_base_discount_mtokens);
@@ -3,7 +3,7 @@ const {equal} = require('node:assert').strict;
3
3
  const test = require('node:test');
4
4
 
5
5
  const bip32 = require('bip32');
6
- const bs58check = require('bs58check');
6
+ const bs58check = require('bs58check').default;
7
7
  const ecc = require('tiny-secp256k1')
8
8
  const {spawnLightningCluster} = require('ln-docker-daemons');
9
9