ln-service 53.9.4 → 53.10.0
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 +5 -0
- package/README.md +9 -2
- package/package.json +3 -3
- package/test/chainrpc-integration/test_subscribe_to_blocks.js +0 -1
- package/test/chainrpc-integration/test_subscribe_to_chain_address.js +0 -1
- package/test/integration/test_create_chain_address.js +9 -0
- package/test/integration/test_get_pending_force.js +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -514,12 +514,19 @@ Create a new receive address.
|
|
|
514
514
|
|
|
515
515
|
Requires `address:write` permission
|
|
516
516
|
|
|
517
|
+
LND 0.14.3 and below do not support p2tr addresses
|
|
518
|
+
|
|
517
519
|
{
|
|
518
|
-
[format]: <Receive Address Type String> // "np2wpkh" || "p2wpkh"
|
|
520
|
+
[format]: <Receive Address Type String> // "np2wpkh" || "p2tr" || "p2wpkh"
|
|
519
521
|
[is_unused]: <Get As-Yet Unused Address Bool>
|
|
520
522
|
lnd: <Authenticated LND API Object>
|
|
521
523
|
}
|
|
522
524
|
|
|
525
|
+
@returns via cbk or Promise
|
|
526
|
+
{
|
|
527
|
+
address: <Chain Address String>
|
|
528
|
+
}
|
|
529
|
+
|
|
523
530
|
Example:
|
|
524
531
|
|
|
525
532
|
```node
|
|
@@ -3530,7 +3537,7 @@ Requires `onchain:write` permission
|
|
|
3530
3537
|
|
|
3531
3538
|
Requires LND built with `walletrpc` tag
|
|
3532
3539
|
|
|
3533
|
-
This method is not supported in LND 0.14.
|
|
3540
|
+
This method is not supported in LND 0.14.3 and below
|
|
3534
3541
|
|
|
3535
3542
|
{
|
|
3536
3543
|
lnd: <Authenticated LND API Object>
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"cors": "2.8.5",
|
|
12
12
|
"express": "4.17.3",
|
|
13
13
|
"invoices": "2.0.4",
|
|
14
|
-
"lightning": "5.
|
|
14
|
+
"lightning": "5.9.0",
|
|
15
15
|
"macaroon": "3.0.4",
|
|
16
16
|
"morgan": "1.10.0",
|
|
17
17
|
"ws": "8.5.0"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"bn.js": "5.2.0",
|
|
29
29
|
"bs58check": "2.1.2",
|
|
30
30
|
"ecpair": "2.0.1",
|
|
31
|
-
"ln-docker-daemons": "2.2.
|
|
31
|
+
"ln-docker-daemons": "2.2.6",
|
|
32
32
|
"p2tr": "1.3.0",
|
|
33
33
|
"portfinder": "1.0.28",
|
|
34
34
|
"psbt": "2.0.0",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"integration-test-0.12.0": "DOCKER_LND_VERSION=v0.12.0-beta npm run test",
|
|
70
70
|
"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/routerrpc-integration/*.js test/signerrpc-integration/*.js test/tower_clientrpc-integration/*.js test/tower_serverrpc-integration/*.js test/walletrpc-integration/*.js"
|
|
71
71
|
},
|
|
72
|
-
"version": "53.
|
|
72
|
+
"version": "53.10.0"
|
|
73
73
|
}
|
|
@@ -10,7 +10,6 @@ const {delay} = require('./../macros');
|
|
|
10
10
|
const {generateBlocks} = require('./../macros');
|
|
11
11
|
const {getHeight} = require('./../../');
|
|
12
12
|
const {getChainBalance} = require('./../../');
|
|
13
|
-
const {spawnLnd} = require('./../macros');
|
|
14
13
|
const {subscribeToBlocks} = require('./../../');
|
|
15
14
|
const {waitForTermination} = require('./../macros');
|
|
16
15
|
|
|
@@ -11,7 +11,6 @@ const {getChainTransactions} = require('./../../');
|
|
|
11
11
|
const {getHeight} = require('./../../');
|
|
12
12
|
const {mineTransaction} = require('./../macros');
|
|
13
13
|
const {sendToChainAddress} = require('./../../');
|
|
14
|
-
const {spawnLnd} = require('./../macros');
|
|
15
14
|
const {subscribeToChainAddress} = require('./../../');
|
|
16
15
|
const {waitForTermination} = require('./../macros');
|
|
17
16
|
|
|
@@ -7,6 +7,7 @@ const {createChainAddress} = require('./../../');
|
|
|
7
7
|
const formats = ['np2wpkh', 'p2wpkh'];
|
|
8
8
|
const p2shAddressVersion = 196;
|
|
9
9
|
const pkHashByteLength = 20;
|
|
10
|
+
const prefixForV1 = 'bcrt1p';
|
|
10
11
|
const regtestBech32AddressHrp = 'bcrt';
|
|
11
12
|
|
|
12
13
|
// Creating addresses should result in addresses
|
|
@@ -34,6 +35,14 @@ test(`Create address results in address creation`, async ({end, equal}) => {
|
|
|
34
35
|
equal(np2wpkh.address, unusedNp2wpkh.address, 'Nested is reused');
|
|
35
36
|
equal(p2wpkh.address, unusedP2wpkh.address, 'Native is reused');
|
|
36
37
|
|
|
38
|
+
try {
|
|
39
|
+
const {address} = await createChainAddress({lnd, format: 'p2tr'});
|
|
40
|
+
|
|
41
|
+
equal(address.startsWith(prefixForV1), true, 'A taproot address is made');
|
|
42
|
+
} catch (err) {
|
|
43
|
+
// LND 0.14.3 and below do not support TR addresses
|
|
44
|
+
}
|
|
45
|
+
|
|
37
46
|
await kill({});
|
|
38
47
|
|
|
39
48
|
return end();
|
|
@@ -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.3 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 {
|