ln-service 54.9.0 → 54.9.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
- ## 54.9.0
3
+ ## 54.9.1
4
4
 
5
5
  - `getChainAddresses`: Add method to get the list of chain addresses
6
6
 
package/package.json CHANGED
@@ -11,10 +11,10 @@
11
11
  "cors": "2.8.5",
12
12
  "express": "4.18.2",
13
13
  "invoices": "2.2.3",
14
- "lightning": "7.0.3",
14
+ "lightning": "7.0.7",
15
15
  "macaroon": "3.0.4",
16
16
  "morgan": "1.10.0",
17
- "ws": "8.11.0"
17
+ "ws": "8.12.1"
18
18
  },
19
19
  "description": "Interaction helper for your Lightning Network daemon",
20
20
  "devDependencies": {
@@ -28,11 +28,11 @@
28
28
  "bn.js": "5.2.1",
29
29
  "bs58check": "2.1.2",
30
30
  "ecpair": "2.1.0",
31
- "ln-docker-daemons": "4.0.3",
31
+ "ln-docker-daemons": "4.1.0",
32
32
  "p2tr": "1.3.3",
33
33
  "portfinder": "1.0.32",
34
34
  "psbt": "2.7.2",
35
- "rimraf": "3.0.2",
35
+ "rimraf": "4.1.2",
36
36
  "secp256k1": "5.0.0",
37
37
  "tiny-secp256k1": "2.2.1",
38
38
  "uuid": "9.0.0",
@@ -64,5 +64,5 @@
64
64
  "integration-test-0.14.4": "DOCKER_LND_VERSION=v0.14.4-beta npm run test",
65
65
  "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"
66
66
  },
67
- "version": "54.9.0"
67
+ "version": "54.9.1"
68
68
  }
@@ -10,7 +10,7 @@ const {pay} = require('./../../');
10
10
  const fakeChannelId = '1x1x1';
11
11
  const interval = 100;
12
12
  const size = 2;
13
- const times = 1000;
13
+ const times = 2000;
14
14
  const tokens = 100;
15
15
 
16
16
  // Get the settlement status of an HTLC
@@ -66,7 +66,17 @@ test(`Get sweep transactions`, async ({end, equal}) => {
66
66
  throw new Error('ExpectedClosedChannel');
67
67
  });
68
68
 
69
- const {transactions} = await getSweepTransactions({lnd});
69
+ const transactions = await asyncRetry({interval, times}, async () => {
70
+ const {transactions} = await getSweepTransactions({lnd});
71
+
72
+ const [transaction] = transactions;
73
+
74
+ if (!transaction || !transaction.block_id) {
75
+ throw new Error('ExpectedTransactionBlockId');
76
+ }
77
+
78
+ return transactions;
79
+ });
70
80
 
71
81
  const [transaction] = transactions;
72
82
 
@@ -60,7 +60,7 @@ module.exports = (args, cbk) => {
60
60
  return;
61
61
  });
62
62
 
63
- res.daemon.on('close', code => removeDir(dir, () => {}));
63
+ res.daemon.on('close', async code => await removeDir(dir));
64
64
 
65
65
  process.setMaxListeners(20);
66
66
 
@@ -13,7 +13,7 @@ const {waitForRoute} = require('./../macros');
13
13
 
14
14
  const channelCapacityTokens = 1e6;
15
15
  const size = 3;
16
- const mtokens = '1';
16
+ const mtokens = '1000';
17
17
  const tokens = 1e6 / 2;
18
18
 
19
19
  // Getting forwarding confidence should return confidence score