ln-service 57.27.0 → 57.27.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,5 +1,9 @@
1
1
  # Versions
2
2
 
3
+ ## 57.27.1
4
+
5
+ - Add support for LND 0.20.0-beta
6
+
3
7
  ## 57.27.0
4
8
 
5
9
  - `getPendingChannels`: Add support for `opening_funding_height`,
package/README.md CHANGED
@@ -9,6 +9,7 @@ through npm.
9
9
 
10
10
  Supported LND versions:
11
11
 
12
+ - v0.20.0-beta
12
13
  - v0.19.0-beta to v0.19.3-beta
13
14
  - v0.18.0-beta to v0.18.5-beta
14
15
  - v0.17.0-beta to v0.17.5-beta
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "dependencies": {
10
10
  "bolt07": "1.9.4",
11
11
  "invoices": "4.0.0",
12
- "lightning": "10.27.0",
12
+ "lightning": "10.27.3",
13
13
  "macaroon": "3.0.4"
14
14
  },
15
15
  "description": "Interaction helper for your Lightning Network daemon",
@@ -18,7 +18,7 @@
18
18
  "@alexbosworth/node-fetch": "2.6.2",
19
19
  "async": "3.2.6",
20
20
  "asyncjs-util": "1.2.12",
21
- "bip32": "4.0.0",
21
+ "bip32": "5.0.0",
22
22
  "bip66": "2.0.0",
23
23
  "bitcoinjs-lib": "6.1.7",
24
24
  "bn.js": "5.2.2",
@@ -28,7 +28,7 @@
28
28
  "p2tr": "2.0.0",
29
29
  "portfinder": "1.0.38",
30
30
  "psbt": "4.0.0",
31
- "rimraf": "6.0.1",
31
+ "rimraf": "6.1.2",
32
32
  "tiny-secp256k1": "2.2.4",
33
33
  "uuid": "13.0.0",
34
34
  "varuint-bitcoin": "2.0.0"
@@ -80,5 +80,5 @@
80
80
  "integration-test-0.14.4": "DOCKER_LND_VERSION=v0.14.4-beta npm run test",
81
81
  "test": "echo $DOCKER_LND_VERSION && node test/runner"
82
82
  },
83
- "version": "57.27.0"
83
+ "version": "57.27.1"
84
84
  }
@@ -21,28 +21,29 @@ const tokens = 1e8;
21
21
 
22
22
  // Subscribing to chain transaction confirmations should trigger events
23
23
  test(`Subscribe to chain transactions`, async () => {
24
- const {kill, nodes} = await spawnLightningCluster({});
24
+ await asyncRetry({interval, times}, async () => {
25
+ const {kill, nodes} = await spawnLightningCluster({});
25
26
 
26
- const [{chain, generate, lnd}] = nodes;
27
+ const [{chain, generate, lnd}] = nodes;
27
28
 
28
- // Wait for chainrpc to be active
29
- await asyncRetry({interval, times}, async () => {
30
- if (!!(await getChainBalance({lnd})).chain_balance) {
31
- return;
32
- }
29
+ // Wait for chainrpc to be active
30
+ await asyncRetry({interval, times}, async () => {
31
+ if (!!(await getChainBalance({lnd})).chain_balance) {
32
+ return;
33
+ }
33
34
 
34
- await generate({});
35
+ await generate({});
35
36
 
36
- await getHeight({lnd});
37
+ await getHeight({lnd});
37
38
 
38
- throw new Error('ExpectedChainBalance');
39
- });
39
+ throw new Error('ExpectedChainBalance');
40
+ });
41
+
42
+ let firstConf;
43
+ const {address} = await createChainAddress({format, lnd});
44
+ const startHeight = (await getHeight({lnd})).current_block_height;
40
45
 
41
- let firstConf;
42
- const {address} = await createChainAddress({format, lnd});
43
- const startHeight = (await getHeight({lnd})).current_block_height;
44
46
 
45
- await asyncRetry({interval, times}, async () => {
46
47
  const sub = subscribeToChainAddress({
47
48
  lnd,
48
49
  min_height: startHeight,
@@ -110,9 +111,9 @@ test(`Subscribe to chain transactions`, async () => {
110
111
  });
111
112
 
112
113
  [sub, sub2].forEach(n => n.removeAllListeners());
113
- });
114
114
 
115
- await kill({});
115
+ await kill({});
116
+ });
116
117
 
117
118
  return;
118
119
  });
@@ -10,7 +10,7 @@ const {spawnLightningCluster} = require('ln-docker-daemons');
10
10
  const {createChainAddress} = require('./../../');
11
11
  const {getMasterPublicKeys} = require('./../../');
12
12
 
13
- const asHex = n => n.toString('hex');
13
+ const asHex = n => Buffer.from(n).toString('hex');
14
14
  const BIP32Factory = bip32.default;
15
15
  const chainCodeFromMasterPublicKey = n => n.slice(13, 45);
16
16
  const firstKeyPath = 'm/0/0';