ln-service 54.2.4 → 54.2.6
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 +8 -0
- package/README.md +27 -27
- package/package.json +5 -3
- package/test/integration/test_create_chain_address.js +1 -1
- package/test/integration/test_get_pending_force.js +1 -1
- package/test/integration/test_open_channel.js +1 -1
- package/test/integration/test_open_channels.js +1 -1
- package/test/integration/test_trusted_funding.js +3 -1
- package/test/routerrpc-integration/test_subscribe_to_payments.js +1 -1
- package/test/signerrpc-integration/test_begin_group_signing_session.js +1 -1
- package/test/signerrpc-integration/test_sign_taproot.js +1 -1
- package/test/tower_clientrpc-integration/test_disconnect_watchtower.js +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -9,8 +9,8 @@ through npm.
|
|
|
9
9
|
|
|
10
10
|
Supported LND versions:
|
|
11
11
|
|
|
12
|
-
- v0.15.2-beta to v0.15.
|
|
13
|
-
- v0.14.4-beta
|
|
12
|
+
- v0.15.2-beta to v0.15.4-beta
|
|
13
|
+
- v0.14.4-beta to v0.14.5-beta
|
|
14
14
|
|
|
15
15
|
For typescript-ready methods, check out https://github.com/alexbosworth/lightning#readme
|
|
16
16
|
|
|
@@ -290,7 +290,7 @@ for `unlocker` methods.
|
|
|
290
290
|
|
|
291
291
|
Add a new advertised p2p socket address
|
|
292
292
|
|
|
293
|
-
Note: this method is not supported in LND versions 0.14.
|
|
293
|
+
Note: this method is not supported in LND versions 0.14.5 and below
|
|
294
294
|
|
|
295
295
|
Requires LND built with `peersrpc` build tag
|
|
296
296
|
|
|
@@ -391,7 +391,7 @@ Requires LND built with `signrpc`, `walletrpc` build tags
|
|
|
391
391
|
|
|
392
392
|
Requires `address:read`, `signer:generate` permissions
|
|
393
393
|
|
|
394
|
-
This method is not supported in LND 0.14.
|
|
394
|
+
This method is not supported in LND 0.14.5 and below
|
|
395
395
|
|
|
396
396
|
{
|
|
397
397
|
lnd: <Authenticated LND API Object>
|
|
@@ -593,7 +593,7 @@ Create a new receive address.
|
|
|
593
593
|
|
|
594
594
|
Requires `address:write` permission
|
|
595
595
|
|
|
596
|
-
LND 0.14.
|
|
596
|
+
LND 0.14.5 and below do not support p2tr addresses
|
|
597
597
|
|
|
598
598
|
{
|
|
599
599
|
[format]: <Receive Address Type String> // "np2wpkh" || "p2tr" || "p2wpkh"
|
|
@@ -1175,7 +1175,7 @@ Requires LND built with `signrpc` build tag
|
|
|
1175
1175
|
|
|
1176
1176
|
Requires `signer:generate` permission
|
|
1177
1177
|
|
|
1178
|
-
This method is not supported in LND 0.14.
|
|
1178
|
+
This method is not supported in LND 0.14.5 and below
|
|
1179
1179
|
|
|
1180
1180
|
{
|
|
1181
1181
|
id: <Session Id Hex String>
|
|
@@ -3075,7 +3075,7 @@ Call this iteratively after failed route attempts to get new routes
|
|
|
3075
3075
|
|
|
3076
3076
|
Requires `info:read` permission
|
|
3077
3077
|
|
|
3078
|
-
Preferred `confidence` is not supported on LND 0.14.
|
|
3078
|
+
Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
3079
3079
|
|
|
3080
3080
|
{
|
|
3081
3081
|
[cltv_delta]: <Final CLTV Delta Number>
|
|
@@ -3479,7 +3479,7 @@ Determine if a payment destination is actually payable by probing it
|
|
|
3479
3479
|
|
|
3480
3480
|
Requires `offchain:write` permission
|
|
3481
3481
|
|
|
3482
|
-
Preferred `confidence` is not supported on LND 0.14.
|
|
3482
|
+
Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
3483
3483
|
|
|
3484
3484
|
{
|
|
3485
3485
|
[cltv_delta]: <Final CLTV Delta Number>
|
|
@@ -3569,8 +3569,8 @@ If give_tokens is set, it is a gift and it does not alter the capacity
|
|
|
3569
3569
|
|
|
3570
3570
|
Requires `offchain:write`, `onchain:write`, `peers:write` permissions
|
|
3571
3571
|
|
|
3572
|
-
`base_fee_mtokens` is not supported on LND 0.15.
|
|
3573
|
-
`fee_rate` is not supported on LND 0.15.
|
|
3572
|
+
`base_fee_mtokens` is not supported on LND 0.15.4 and below
|
|
3573
|
+
`fee_rate` is not supported on LND 0.15.4 and below
|
|
3574
3574
|
|
|
3575
3575
|
{
|
|
3576
3576
|
[base_fee_mtokens]: <Routing Base Fee Millitokens Charged String>
|
|
@@ -3622,8 +3622,8 @@ after the funding step.
|
|
|
3622
3622
|
`--protocol.option-scid-alias` and `--protocol.zero-conf` set on both sides
|
|
3623
3623
|
as well as a channel open request listener to accept the trusted funding.
|
|
3624
3624
|
|
|
3625
|
-
`base_fee_mtokens` is not supported on LND 0.15.
|
|
3626
|
-
`fee_rate` is not supported on LND 0.15.
|
|
3625
|
+
`base_fee_mtokens` is not supported on LND 0.15.4 and below
|
|
3626
|
+
`fee_rate` is not supported on LND 0.15.4 and below
|
|
3627
3627
|
|
|
3628
3628
|
{
|
|
3629
3629
|
channels: [{
|
|
@@ -3779,7 +3779,7 @@ Requires `offchain:write` permission
|
|
|
3779
3779
|
|
|
3780
3780
|
`max_path_mtokens` is not supported in LND 0.12.0 or below
|
|
3781
3781
|
|
|
3782
|
-
Preferred `confidence` is not supported on LND 0.14.
|
|
3782
|
+
Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
3783
3783
|
|
|
3784
3784
|
{
|
|
3785
3785
|
[confidence]: <Preferred Route Confidence Number Out of One Million Number>
|
|
@@ -3869,7 +3869,7 @@ Requires `offchain:write` permission
|
|
|
3869
3869
|
|
|
3870
3870
|
`max_path_mtokens` is not supported in LND 0.12.0 or below
|
|
3871
3871
|
|
|
3872
|
-
Preferred `confidence` is not supported on LND 0.14.
|
|
3872
|
+
Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
3873
3873
|
|
|
3874
3874
|
{
|
|
3875
3875
|
[cltv_delta]: <Final CLTV Delta Number>
|
|
@@ -3959,7 +3959,7 @@ Requires `offchain:write` permission
|
|
|
3959
3959
|
|
|
3960
3960
|
`max_path_mtokens` is not supported in LND 0.12.0 or below
|
|
3961
3961
|
|
|
3962
|
-
Preferred `confidence` is not supported on LND 0.14.
|
|
3962
|
+
Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
3963
3963
|
|
|
3964
3964
|
{
|
|
3965
3965
|
[confidence]: <Preferred Route Confidence Number Out of One Million Number>
|
|
@@ -4164,7 +4164,7 @@ If `total_mtokens` are specified, a `payment` nonce is required.
|
|
|
4164
4164
|
|
|
4165
4165
|
Requires `offchain:write` permission
|
|
4166
4166
|
|
|
4167
|
-
Preferred `confidence` is not supported on LND 0.14.
|
|
4167
|
+
Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
4168
4168
|
|
|
4169
4169
|
{
|
|
4170
4170
|
[cltv_delta]: <Final CLTV Delta Number>
|
|
@@ -4350,7 +4350,7 @@ await recoverFundsFromChannels({backup, lnd});
|
|
|
4350
4350
|
|
|
4351
4351
|
Remove an existing advertised p2p socket address
|
|
4352
4352
|
|
|
4353
|
-
Note: this method is not supported in LND versions 0.14.
|
|
4353
|
+
Note: this method is not supported in LND versions 0.14.5 and below
|
|
4354
4354
|
|
|
4355
4355
|
Requires LND built with `peersrpc` build tag
|
|
4356
4356
|
|
|
@@ -4867,8 +4867,8 @@ Requires LND built with `signrpc` build tag
|
|
|
4867
4867
|
|
|
4868
4868
|
Requires `signer:generate` permission
|
|
4869
4869
|
|
|
4870
|
-
`root_hash` is not supported in LND 0.14.
|
|
4871
|
-
`spending` is not supported in LND 0.14.
|
|
4870
|
+
`root_hash` is not supported in LND 0.14.5 and below
|
|
4871
|
+
`spending` is not supported in LND 0.14.5 and below
|
|
4872
4872
|
|
|
4873
4873
|
{
|
|
4874
4874
|
inputs: [{
|
|
@@ -5042,7 +5042,7 @@ Requires LND built with `chainrpc` build tag
|
|
|
5042
5042
|
|
|
5043
5043
|
Requires `onchain:read` permission
|
|
5044
5044
|
|
|
5045
|
-
Subscribing to P2TR outputs is not supported in LND 0.14.
|
|
5045
|
+
Subscribing to P2TR outputs is not supported in LND 0.14.5 and below
|
|
5046
5046
|
|
|
5047
5047
|
{
|
|
5048
5048
|
[bech32_address]: <Bech32 P2WPKH or P2WSH Address String>
|
|
@@ -5770,7 +5770,7 @@ Requires `offchain:write` permission
|
|
|
5770
5770
|
|
|
5771
5771
|
`max_path_mtokens` is not supported in LND 0.12.0 or below
|
|
5772
5772
|
|
|
5773
|
-
Preferred `confidence` is not supported on LND 0.14.
|
|
5773
|
+
Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
5774
5774
|
|
|
5775
5775
|
{
|
|
5776
5776
|
[cltv_delta]: <Final CLTV Delta Number>
|
|
@@ -5936,7 +5936,7 @@ Requires `offchain:write` permission
|
|
|
5936
5936
|
|
|
5937
5937
|
`max_path_mtokens` is not supported in LND 0.12.0 or below
|
|
5938
5938
|
|
|
5939
|
-
Preferred `confidence` is not supported on LND 0.14.
|
|
5939
|
+
Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
5940
5940
|
|
|
5941
5941
|
{
|
|
5942
5942
|
[confidence]: <Preferred Route Confidence Number Out of One Million Number>
|
|
@@ -6272,7 +6272,7 @@ Subscribe to outgoing payments
|
|
|
6272
6272
|
|
|
6273
6273
|
Requires `offchain:read` permission
|
|
6274
6274
|
|
|
6275
|
-
Note: Method not supported on LND 0.15.
|
|
6275
|
+
Note: Method not supported on LND 0.15.4 and below
|
|
6276
6276
|
|
|
6277
6277
|
{
|
|
6278
6278
|
lnd: <Authenticated LND API Object>
|
|
@@ -6452,7 +6452,7 @@ Subscribe to a probe attempt
|
|
|
6452
6452
|
|
|
6453
6453
|
Requires `offchain:write` permission
|
|
6454
6454
|
|
|
6455
|
-
Preferred `confidence` is not supported on LND 0.14.
|
|
6455
|
+
Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
6456
6456
|
|
|
6457
6457
|
{
|
|
6458
6458
|
[cltv_delta]: <Final CLTV Delta Number>
|
|
@@ -6949,7 +6949,7 @@ await unlockWallet({lnd, password: 'walletSecretPassword'});
|
|
|
6949
6949
|
|
|
6950
6950
|
Update the node alias as advertised in the graph
|
|
6951
6951
|
|
|
6952
|
-
Note: this method is not supported in LND versions 0.14.
|
|
6952
|
+
Note: this method is not supported in LND versions 0.14.5 and below
|
|
6953
6953
|
|
|
6954
6954
|
Requires LND built with `peersrpc` build tag
|
|
6955
6955
|
|
|
@@ -7003,7 +7003,7 @@ await updateChainTransaction({id, lnd, description: 'First transaction'});
|
|
|
7003
7003
|
|
|
7004
7004
|
Update the node color as advertised in the graph
|
|
7005
7005
|
|
|
7006
|
-
Note: this method is not supported in LND versions 0.14.
|
|
7006
|
+
Note: this method is not supported in LND versions 0.14.5 and below
|
|
7007
7007
|
|
|
7008
7008
|
Requires LND built with `peersrpc` build tag
|
|
7009
7009
|
|
|
@@ -7062,7 +7062,7 @@ Requires LND built with `signrpc` build tag
|
|
|
7062
7062
|
|
|
7063
7063
|
Requires `signer:generate` permission
|
|
7064
7064
|
|
|
7065
|
-
This method is not supported in LND 0.14.
|
|
7065
|
+
This method is not supported in LND 0.14.5 and below
|
|
7066
7066
|
|
|
7067
7067
|
{
|
|
7068
7068
|
hash: <Hash to Sign Hex String>
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"cors": "2.8.5",
|
|
12
12
|
"express": "4.18.2",
|
|
13
13
|
"invoices": "2.2.0",
|
|
14
|
-
"lightning": "6.2.
|
|
14
|
+
"lightning": "6.2.7",
|
|
15
15
|
"macaroon": "3.0.4",
|
|
16
16
|
"morgan": "1.10.0",
|
|
17
17
|
"ws": "8.10.0"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"bn.js": "5.2.1",
|
|
29
29
|
"bs58check": "2.1.2",
|
|
30
30
|
"ecpair": "2.1.0",
|
|
31
|
-
"ln-docker-daemons": "3.1.
|
|
31
|
+
"ln-docker-daemons": "3.1.4",
|
|
32
32
|
"p2tr": "1.3.2",
|
|
33
33
|
"portfinder": "1.0.32",
|
|
34
34
|
"psbt": "2.7.1",
|
|
@@ -56,10 +56,12 @@
|
|
|
56
56
|
"url": "https://github.com/alexbosworth/ln-service.git"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
|
+
"integration-test-0.15.4": "DOCKER_LND_VERSION=v0.15.4-beta npm run test",
|
|
59
60
|
"integration-test-0.15.3": "DOCKER_LND_VERSION=v0.15.3-beta npm run test",
|
|
60
61
|
"integration-test-0.15.2": "DOCKER_LND_VERSION=v0.15.2-beta npm run test",
|
|
62
|
+
"integration-test-0.14.5": "DOCKER_LND_VERSION=v0.14.5-beta npm run test",
|
|
61
63
|
"integration-test-0.14.4": "DOCKER_LND_VERSION=v0.14.4-beta npm run test",
|
|
62
64
|
"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"
|
|
63
65
|
},
|
|
64
|
-
"version": "54.2.
|
|
66
|
+
"version": "54.2.6"
|
|
65
67
|
}
|
|
@@ -40,7 +40,7 @@ test(`Create address results in address creation`, async ({end, equal}) => {
|
|
|
40
40
|
|
|
41
41
|
equal(address.startsWith(prefixForV1), true, 'A taproot address is made');
|
|
42
42
|
} catch (err) {
|
|
43
|
-
// LND 0.14.
|
|
43
|
+
// LND 0.14.5 and below do not support TR addresses
|
|
44
44
|
const [code] = err;
|
|
45
45
|
|
|
46
46
|
equal(code, 501, 'Taproot addresses are unsupported');
|
|
@@ -178,7 +178,7 @@ test(`Get pending channels`, async ({end, equal}) => {
|
|
|
178
178
|
equal(forceClose.received, 0, 'No receive amount');
|
|
179
179
|
equal(forceClose.recovered_tokens, undefined, 'No recovered amount');
|
|
180
180
|
|
|
181
|
-
// LND 0.14.
|
|
181
|
+
// LND 0.14.5 and below do not support remote balance info
|
|
182
182
|
if (!!forceClose.remote_balance) {
|
|
183
183
|
equal(forceClose.remote_balance, giftTokens, 'Got gift remote balance');
|
|
184
184
|
} else {
|
|
@@ -70,7 +70,7 @@ test(`Open channel`, async ({end, equal}) => {
|
|
|
70
70
|
throw new Error('ExpectedKnownPolicyBaseFeeMtokens');
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
// LND 0.15.
|
|
73
|
+
// LND 0.15.4 and below do not support setting fees on open
|
|
74
74
|
if (policy.base_fee_mtokens === defaultBaseFee) {
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
@@ -139,7 +139,7 @@ test(`Open channels`, async ({end, equal}) => {
|
|
|
139
139
|
|
|
140
140
|
const policy = policies.find(n => !!n.cltv_delta);
|
|
141
141
|
|
|
142
|
-
// LND 0.15.
|
|
142
|
+
// LND 0.15.4 and below do not support setting fees on open
|
|
143
143
|
if (policy.base_fee_mtokens === defaultBaseFee) {
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
@@ -162,7 +162,9 @@ test(`Open unconfirmed channels`, async ({end, equal, match, strictSame}) => {
|
|
|
162
162
|
|
|
163
163
|
match(otherId, /16000000x0/, 'Got ephemeral id');
|
|
164
164
|
|
|
165
|
-
await
|
|
165
|
+
await asyncRetry({interval, times}, async () => {
|
|
166
|
+
await closeChannel({lnd, id: confirmed.id});
|
|
167
|
+
});
|
|
166
168
|
|
|
167
169
|
// Propose a private channel to the peer
|
|
168
170
|
const openPrivate = await asyncRetry({interval, times}, async () => {
|
|
@@ -43,7 +43,7 @@ test(`Subscribe to payments`, async ({end, rejects, strictSame}) => {
|
|
|
43
43
|
sub.on('error', error => {
|
|
44
44
|
const [,, {err}] = error;
|
|
45
45
|
|
|
46
|
-
// subscribeToPayments is not supported on LND 0.15.
|
|
46
|
+
// subscribeToPayments is not supported on LND 0.15.4 and below
|
|
47
47
|
if (err.details === unsupported) {
|
|
48
48
|
return isLegacy.push(error);
|
|
49
49
|
}
|
|
@@ -49,7 +49,7 @@ test(`Begin group signing session`, async ({end, equal}) => {
|
|
|
49
49
|
public_keys: [Buffer.alloc(33, 2).toString('hex')],
|
|
50
50
|
});
|
|
51
51
|
} catch (err) {
|
|
52
|
-
// On LND 0.14.
|
|
52
|
+
// On LND 0.14.5 and below, group signing is not supported
|
|
53
53
|
if (err.slice().shift() === 501) {
|
|
54
54
|
await kill({});
|
|
55
55
|
|
|
@@ -48,7 +48,7 @@ test(`Sign a taproot transaction`, async ({end, equal}) => {
|
|
|
48
48
|
public_keys: [Buffer.alloc(33, 2).toString('hex')],
|
|
49
49
|
});
|
|
50
50
|
} catch (err) {
|
|
51
|
-
// On LND 0.14.
|
|
51
|
+
// On LND 0.14.5 and below, taproot signing is not supported
|
|
52
52
|
if (err.slice().shift() === 501) {
|
|
53
53
|
await kill({});
|
|
54
54
|
|
|
@@ -38,7 +38,7 @@ test(`Disconnect watchtower`, async ({end, equal, match}) => {
|
|
|
38
38
|
|
|
39
39
|
const [disconnected] = (await getConnectedWatchtowers({lnd})).towers;
|
|
40
40
|
|
|
41
|
-
// LND 0.15.
|
|
41
|
+
// LND 0.15.4 and below retain the tower
|
|
42
42
|
if (!!disconnected) {
|
|
43
43
|
equal(disconnected.is_active, false, 'Tower is inactive');
|
|
44
44
|
}
|