ln-service 56.2.0 → 56.3.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
|
@@ -5809,6 +5809,7 @@ Requires `offchain:read` permission
|
|
|
5809
5809
|
|
|
5810
5810
|
@event 'failed'
|
|
5811
5811
|
{
|
|
5812
|
+
id: <Payment Hash Hex String>
|
|
5812
5813
|
is_insufficient_balance: <Failed Due To Lack of Balance Bool>
|
|
5813
5814
|
is_invalid_payment: <Failed Due to Payment Rejected At Destination Bool>
|
|
5814
5815
|
is_pathfinding_timeout: <Failed Due to Pathfinding Timeout Bool>
|
|
@@ -5993,6 +5994,7 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
5993
5994
|
|
|
5994
5995
|
@event 'failed'
|
|
5995
5996
|
{
|
|
5997
|
+
id: <Payment Hash Hex String>
|
|
5996
5998
|
is_insufficient_balance: <Failed Due To Lack of Balance Bool>
|
|
5997
5999
|
is_invalid_payment: <Failed Due to Invalid Payment Bool>
|
|
5998
6000
|
is_pathfinding_timeout: <Failed Due to Pathfinding Timeout Bool>
|
|
@@ -6147,6 +6149,7 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6147
6149
|
|
|
6148
6150
|
@event 'failed'
|
|
6149
6151
|
{
|
|
6152
|
+
id: <Payment Hash Hex String>
|
|
6150
6153
|
is_insufficient_balance: <Failed Due To Lack of Balance Bool>
|
|
6151
6154
|
is_invalid_payment: <Failed Due to Invalid Payment Bool>
|
|
6152
6155
|
is_pathfinding_timeout: <Failed Due to Pathfinding Timeout Bool>
|
|
@@ -6480,6 +6483,7 @@ Note: Method not supported on LND 0.15.5 and below
|
|
|
6480
6483
|
|
|
6481
6484
|
@event 'failed'
|
|
6482
6485
|
{
|
|
6486
|
+
id: <Payment Hash Hex String>
|
|
6483
6487
|
is_insufficient_balance: <Failed Due To Lack of Balance Bool>
|
|
6484
6488
|
is_invalid_payment: <Failed Due to Payment Rejected At Destination Bool>
|
|
6485
6489
|
is_pathfinding_timeout: <Failed Due to Pathfinding Timeout Bool>
|
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.3",
|
|
14
|
-
"lightning": "9.
|
|
14
|
+
"lightning": "9.3.1",
|
|
15
15
|
"macaroon": "3.0.4",
|
|
16
16
|
"morgan": "1.10.0",
|
|
17
17
|
"ws": "8.13.0"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"bn.js": "5.2.1",
|
|
29
29
|
"bs58check": "3.0.1",
|
|
30
30
|
"ecpair": "2.1.0",
|
|
31
|
-
"ln-docker-daemons": "5.0.
|
|
31
|
+
"ln-docker-daemons": "5.0.3",
|
|
32
32
|
"p2tr": "1.3.3",
|
|
33
33
|
"portfinder": "1.0.32",
|
|
34
34
|
"psbt": "2.7.2",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"integration-test-0.14.4": "DOCKER_LND_VERSION=v0.14.4-beta npm run test",
|
|
68
68
|
"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"
|
|
69
69
|
},
|
|
70
|
-
"version": "56.
|
|
70
|
+
"version": "56.3.1"
|
|
71
71
|
}
|
|
@@ -30,7 +30,7 @@ const interval = 100;
|
|
|
30
30
|
const race = promises => Promise.race(promises);
|
|
31
31
|
const size = 3;
|
|
32
32
|
const timeout = 1000 * 20;
|
|
33
|
-
const times =
|
|
33
|
+
const times = 2000;
|
|
34
34
|
|
|
35
35
|
// Forfeiting a pending channel should remove the pending channel
|
|
36
36
|
test(`Forfeit pending channel`, async ({end, equal, strictSame}) => {
|
|
@@ -12,7 +12,7 @@ const count = 100;
|
|
|
12
12
|
const tokens = 1e8;
|
|
13
13
|
|
|
14
14
|
// Test requesting a chain fee increase
|
|
15
|
-
test(`Request chain fee increase`, async ({end, equal}) => {
|
|
15
|
+
test(`Request chain fee increase`, async ({end, equal, fail, strictSame}) => {
|
|
16
16
|
const [{generate, kill, lnd}] = (await spawnLightningCluster({})).nodes;
|
|
17
17
|
|
|
18
18
|
try {
|
|
@@ -20,7 +20,10 @@ test(`Request chain fee increase`, async ({end, equal}) => {
|
|
|
20
20
|
|
|
21
21
|
const {address} = await createChainAddress({lnd});
|
|
22
22
|
|
|
23
|
-
const {psbt} = await fundPsbt({lnd, outputs: [
|
|
23
|
+
const {psbt} = await fundPsbt({lnd, outputs: [
|
|
24
|
+
{address, tokens},
|
|
25
|
+
{tokens, address: '2N8hwP1WmJrFF5QWABn38y63uYLhnJYJYTF'},
|
|
26
|
+
]});
|
|
24
27
|
|
|
25
28
|
const {transaction} = await signPsbt({lnd, psbt});
|
|
26
29
|
|
|
@@ -28,6 +31,17 @@ test(`Request chain fee increase`, async ({end, equal}) => {
|
|
|
28
31
|
|
|
29
32
|
const bump = (await getUtxos({lnd})).utxos.find(n => n.tokens === tokens);
|
|
30
33
|
|
|
34
|
+
try {
|
|
35
|
+
await requestChainFeeIncrease({
|
|
36
|
+
lnd,
|
|
37
|
+
transaction_id: bump.transaction_id,
|
|
38
|
+
transaction_vout: bump.transaction_vout + 1,
|
|
39
|
+
});
|
|
40
|
+
fail('Expected chain fee increase rejected');
|
|
41
|
+
} catch (err) {
|
|
42
|
+
strictSame(err, [404, 'SpecifiedOutpointNotFoundInWalletUtxos'], '404');
|
|
43
|
+
}
|
|
44
|
+
|
|
31
45
|
await requestChainFeeIncrease({
|
|
32
46
|
lnd,
|
|
33
47
|
transaction_id: bump.transaction_id,
|