ln-service 57.26.2 → 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
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
|
|
@@ -3231,6 +3232,10 @@ Requires `offchain:read` permission
|
|
|
3231
3232
|
|
|
3232
3233
|
`close_transaction` is not supported in LND 0.17.5 or before
|
|
3233
3234
|
|
|
3235
|
+
`opening_funding_height` is not supported in LND 0.19.3 or before
|
|
3236
|
+
|
|
3237
|
+
`opening_waiting_blocks` is not supported in LND 0.19.3 or before
|
|
3238
|
+
|
|
3234
3239
|
{
|
|
3235
3240
|
lnd: <Authenticated LND API Object>
|
|
3236
3241
|
}
|
|
@@ -3251,6 +3256,8 @@ Requires `offchain:read` permission
|
|
|
3251
3256
|
is_timelocked: <Channel Local Funds Constrained by Timelock Script Bool>
|
|
3252
3257
|
local_balance: <Channel Local Tokens Balance Number>
|
|
3253
3258
|
local_reserve: <Channel Local Reserved Tokens Number>
|
|
3259
|
+
[opening_funding_height]: <Funding Seen At Best Block Height Number>
|
|
3260
|
+
[opening_waiting_blocks]: <Open Activation Waiting Blocks Count Number>
|
|
3254
3261
|
partner_public_key: <Channel Peer Public Key String>
|
|
3255
3262
|
[pending_balance]: <Tokens Pending Recovery Number>
|
|
3256
3263
|
[pending_payments]: [{
|
|
@@ -3289,6 +3296,7 @@ Get pending payments made through channels.
|
|
|
3289
3296
|
Requires `offchain:read` permission
|
|
3290
3297
|
|
|
3291
3298
|
`created_after` is not supported on LND 0.15.5 and below
|
|
3299
|
+
|
|
3292
3300
|
`created_before` is not supported on LND 0.15.5 and below
|
|
3293
3301
|
|
|
3294
3302
|
{
|
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.
|
|
12
|
+
"lightning": "10.27.3",
|
|
13
13
|
"macaroon": "3.0.4"
|
|
14
14
|
},
|
|
15
15
|
"description": "Interaction helper for your Lightning Network daemon",
|
|
@@ -18,19 +18,19 @@
|
|
|
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.27",
|
|
28
28
|
"p2tr": "2.0.0",
|
|
29
|
-
"portfinder": "1.0.
|
|
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
|
-
"uuid": "
|
|
33
|
+
"uuid": "13.0.0",
|
|
34
34
|
"varuint-bitcoin": "2.0.0"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
@@ -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.
|
|
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
|
-
|
|
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
|
});
|
|
@@ -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';
|