ln-service 56.3.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
@@ -1,6 +1,6 @@
1
1
  # Versions
2
2
 
3
- ## 56.3.0
3
+ ## 56.3.1
4
4
 
5
5
  - `subscribeToPastPayment`, `subscribeToPayViaDetails`,
6
6
  `subscribeToPayViaRequest`, `subscribeToPayments`: Add `id` for `failed`
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.3.0",
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.2",
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.3.0"
70
+ "version": "56.3.1"
71
71
  }
@@ -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: [{address, tokens}]});
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,