ln-service 57.27.0 → 57.27.2
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
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.
|
|
12
|
+
"lightning": "10.27.4",
|
|
13
13
|
"macaroon": "3.0.4"
|
|
14
14
|
},
|
|
15
15
|
"description": "Interaction helper for your Lightning Network daemon",
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
"@alexbosworth/node-fetch": "2.6.2",
|
|
19
19
|
"async": "3.2.6",
|
|
20
20
|
"asyncjs-util": "1.2.12",
|
|
21
|
-
"bip32": "
|
|
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",
|
|
25
25
|
"bs58check": "4.0.0",
|
|
26
26
|
"ecpair": "3.0.0",
|
|
27
|
-
"ln-docker-daemons": "6.0.
|
|
27
|
+
"ln-docker-daemons": "6.0.28",
|
|
28
28
|
"p2tr": "2.0.0",
|
|
29
29
|
"portfinder": "1.0.38",
|
|
30
30
|
"psbt": "4.0.0",
|
|
31
|
-
"rimraf": "6.
|
|
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"
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"url": "https://github.com/alexbosworth/ln-service.git"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
|
+
"integration-test-0.20.0": "DOCKER_LND_VERSION=v0.20.0-beta npm run test",
|
|
54
55
|
"integration-test-0.19.3": "DOCKER_LND_VERSION=v0.19.3-beta npm run test",
|
|
55
56
|
"integration-test-0.19.2": "DOCKER_LND_VERSION=v0.19.2-beta npm run test",
|
|
56
57
|
"integration-test-0.19.1": "DOCKER_LND_VERSION=v0.19.1-beta npm run test",
|
|
@@ -80,5 +81,5 @@
|
|
|
80
81
|
"integration-test-0.14.4": "DOCKER_LND_VERSION=v0.14.4-beta npm run test",
|
|
81
82
|
"test": "echo $DOCKER_LND_VERSION && node test/runner"
|
|
82
83
|
},
|
|
83
|
-
"version": "57.27.
|
|
84
|
+
"version": "57.27.2"
|
|
84
85
|
}
|
|
@@ -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
|
-
|
|
24
|
+
await asyncRetry({interval, times}, async () => {
|
|
25
|
+
const {kill, nodes} = await spawnLightningCluster({});
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
const [{chain, generate, lnd}] = nodes;
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
35
|
+
await generate({});
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
await getHeight({lnd});
|
|
37
38
|
|
|
38
|
-
|
|
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
|
-
|
|
115
|
+
await kill({});
|
|
116
|
+
});
|
|
116
117
|
|
|
117
118
|
return;
|
|
118
119
|
});
|
package/test/runner.js
CHANGED
|
@@ -20,7 +20,7 @@ const dirs = [
|
|
|
20
20
|
'walletrpc-integration',
|
|
21
21
|
];
|
|
22
22
|
|
|
23
|
-
const asPath = file => join(file.path, file.name);
|
|
23
|
+
const asPath = file => join(file.path || file.parentPath, file.name);
|
|
24
24
|
const flatten = arr => [].concat(...arr);
|
|
25
25
|
|
|
26
26
|
const files = flatten(dirs.map(dir => {
|
|
@@ -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';
|