ln-service 53.7.2 → 53.7.3

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/package.json +3 -3
  3. package/test/integration/test_add_peer.js +2 -2
  4. package/test/integration/test_get_closed_channels.js +0 -2
  5. package/test/integration/test_get_invoice.js +0 -1
  6. package/test/integration/test_get_node.js +13 -1
  7. package/test/integration/test_get_peers.js +32 -21
  8. package/test/integration/test_get_wallet_info.js +6 -4
  9. package/test/integration/test_open_channels.js +2 -2
  10. package/test/integration/test_pay.js +0 -1
  11. package/test/integration/test_pay_private_invoice.js +0 -1
  12. package/test/integration/test_remove_peer.js +13 -9
  13. package/test/integration/test_send_message_to_peer.js +39 -28
  14. package/test/integration/test_subscribe_to_channels.js +0 -1
  15. package/test/integration/test_subscribe_to_invoices.js +80 -78
  16. package/test/integration/test_subscribe_to_peer_messages.js +6 -4
  17. package/test/invoicesrpc-integration/test_get_sweep_transactions.js +0 -2
  18. package/test/invoicesrpc-integration/test_subscribe_cancel_invoice.js +0 -1
  19. package/test/macros/wait_for_channel.js +1 -1
  20. package/test/routerrpc-integration/test_delete_forwarding_reputations.js +61 -27
  21. package/test/routerrpc-integration/test_get_forwarding_reputations.js +42 -14
  22. package/test/routerrpc-integration/test_get_route_through_hops.js +24 -15
  23. package/test/routerrpc-integration/test_multipath_payment.js +0 -1
  24. package/test/routerrpc-integration/test_pay_via_payment_details.js +0 -1
  25. package/test/routerrpc-integration/test_pay_via_payment_request.js +92 -80
  26. package/test/routerrpc-integration/test_probe_for_route.js +5 -5
  27. package/test/routerrpc-integration/test_subscribe_to_forward_requests.js +0 -1
  28. package/test/routerrpc-integration/test_subscribe_to_forwards.js +11 -2
  29. package/test/routerrpc-integration/test_subscribe_to_past_payments.js +0 -3
  30. package/test/tower_clientrpc-integration/test_get_connected_watchtowers.js +0 -3
  31. package/test/walletrpc-integration/test_fund_psbt.js +110 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Versions
2
2
 
3
- ## 53.7.2
3
+ ## 53.7.3
4
4
 
5
5
  - `payViaRoutes`, `subscribeToPayViaRoutes`: Add support for relay messages
6
6
 
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "cors": "2.8.5",
12
12
  "express": "4.17.2",
13
13
  "invoices": "2.0.3",
14
- "lightning": "5.6.1",
14
+ "lightning": "5.6.2",
15
15
  "macaroon": "3.0.4",
16
16
  "morgan": "1.10.0",
17
17
  "ws": "8.4.2"
@@ -64,7 +64,7 @@
64
64
  "integration-test-0.13.0": "DOCKER_LND_VERSION=v0.13.0-beta npm run test",
65
65
  "integration-test-0.12.1": "DOCKER_LND_VERSION=v0.12.1-beta npm run test",
66
66
  "integration-test-0.12.0": "DOCKER_LND_VERSION=v0.12.0-beta npm run test",
67
- "test": "echo $DOCKER_LND_VERSION && tap -j 3 --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"
67
+ "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"
68
68
  },
69
- "version": "53.7.2"
69
+ "version": "53.7.3"
70
70
  }
@@ -8,8 +8,8 @@ const {getPeers} = require('./../../');
8
8
 
9
9
  const interval = 100;
10
10
  const size = 2;
11
- const times = 100;
12
- const timeout = 1000;
11
+ const times = 2000;
12
+ const timeout = 100;
13
13
 
14
14
  // Adding peers should result in a connected peer
15
15
  test(`Add a peer`, async ({end, equal}) => {
@@ -9,9 +9,7 @@ const {createHodlInvoice} = require('./../../');
9
9
  const {delay} = require('./../macros');
10
10
  const {payViaPaymentRequest} = require('./../../');
11
11
  const {getChainTransactions} = require('./../../');
12
- const {getChannels} = require('./../../');
13
12
  const {getClosedChannels} = require('./../../');
14
- const {getHeight} = require('./../../');
15
13
  const {getPendingChannels} = require('./../../');
16
14
  const {getSweepTransactions} = require('./../../');
17
15
  const {getUtxos} = require('./../../');
@@ -2,7 +2,6 @@ const {spawnLightningCluster} = require('ln-docker-daemons');
2
2
  const {test} = require('@alexbosworth/tap');
3
3
 
4
4
  const {createInvoice} = require('./../../');
5
- const {getHeight} = require('./../../');
6
5
  const {getInvoice} = require('./../../');
7
6
  const {pay} = require('./../../');
8
7
  const {setupChannel} = require('./../macros');
@@ -1,3 +1,4 @@
1
+ const asyncRetry = require('async/retry');
1
2
  const {spawnLightningCluster} = require('ln-docker-daemons');
2
3
  const {test} = require('@alexbosworth/tap');
3
4
 
@@ -15,8 +16,10 @@ const confirmationCount = 20;
15
16
  const defaultFee = 1e3;
16
17
  const defaultAliasLength = '00000000000000000000'.length;
17
18
  const feeRate = 21;
19
+ const interval = 10;
18
20
  const mtokPerTok = BigInt(1e3);
19
21
  const size = 3;
22
+ const times = 1000;
20
23
 
21
24
  // Getting a node should return the public graph node info
22
25
  test(`Get node`, async ({end, equal, strictSame}) => {
@@ -42,7 +45,16 @@ test(`Get node`, async ({end, equal, strictSame}) => {
42
45
  transaction_vout: controlToTarget.transaction_vout,
43
46
  });
44
47
 
45
- await addPeer({lnd, public_key: remote.id, socket: remote.socket});
48
+ await asyncRetry({interval, times}, async () => {
49
+ await addPeer({
50
+ lnd,
51
+ public_key: remote.id,
52
+ retry_count: 1,
53
+ retry_delay: 1,
54
+ socket: remote.socket,
55
+ timeout: 1000,
56
+ });
57
+ });
46
58
 
47
59
  await delay(3000);
48
60
 
@@ -15,27 +15,38 @@ test('Get peers', async ({end, equal}) => {
15
15
 
16
16
  const [{lnd}, target] = nodes;
17
17
 
18
- await asyncRetry({interval, times}, async () => {
19
- await addPeer({lnd, public_key: target.id, socket: target.socket});
20
-
21
- const [peer] = (await getPeers({lnd})).peers;
22
-
23
- if (!peer || !peer.is_sync_peer) {
24
- throw new Error('ExpectedSyncPeer');
25
- }
26
-
27
- equal(peer.bytes_received !== undefined, true, 'Bytes received');
28
- equal(peer.bytes_sent !== undefined, true, 'Bytes sent');
29
- equal(peer.is_inbound, false, 'Is inbound peer');
30
- equal(peer.is_sync_peer, true, 'Is sync peer');
31
- equal(peer.ping_time, 0, 'Ping time');
32
- equal(peer.public_key, target.id, 'Public key');
33
- equal(!!peer.socket, true, 'Socket');
34
- equal(peer.tokens_received, 0, 'Tokens received');
35
- equal(peer.tokens_sent, 0, 'Tokens sent');
36
-
37
- return;
38
- });
18
+ try {
19
+ await asyncRetry({interval, times}, async () => {
20
+ await addPeer({
21
+ lnd,
22
+ public_key: target.id,
23
+ retry_count: 1,
24
+ retry_delay: 1,
25
+ socket: target.socket,
26
+ timeout: 100,
27
+ });
28
+
29
+ const [peer] = (await getPeers({lnd})).peers;
30
+
31
+ if (!peer || !peer.is_sync_peer) {
32
+ throw new Error('ExpectedSyncPeer');
33
+ }
34
+
35
+ equal(peer.bytes_received !== undefined, true, 'Bytes received');
36
+ equal(peer.bytes_sent !== undefined, true, 'Bytes sent');
37
+ equal(peer.is_inbound, false, 'Is inbound peer');
38
+ equal(peer.is_sync_peer, true, 'Is sync peer');
39
+ equal(peer.ping_time, 0, 'Ping time');
40
+ equal(peer.public_key, target.id, 'Public key');
41
+ equal(!!peer.socket, true, 'Socket');
42
+ equal(peer.tokens_received, 0, 'Tokens received');
43
+ equal(peer.tokens_sent, 0, 'Tokens sent');
44
+
45
+ return;
46
+ });
47
+ } catch (err) {
48
+ equal(err, null, 'Expected no error');
49
+ }
39
50
 
40
51
  await kill({});
41
52
 
@@ -12,16 +12,18 @@ const times = 1000;
12
12
  const walletInfoType = 'wallet';
13
13
 
14
14
  // Getting the wallet info should return info about the wallet
15
- test(`Get wallet info`, async ({end, equal, strictSame}) => {
15
+ test(`Get wallet info`, async ({end, equal, ok, strictSame}) => {
16
16
  const {kill, nodes} = await spawnLightningCluster({});
17
17
 
18
- const [{lnd}] = nodes;
18
+ const [{generate, lnd}] = nodes;
19
19
 
20
20
  try {
21
21
  const result = await asyncRetry({interval, times}, async () => {
22
+ await generate({});
23
+
22
24
  const result = await getWalletInfo({lnd});
23
25
 
24
- if (result.current_block_height === initHeight) {
26
+ if (result.current_block_height >= initHeight) {
25
27
  return result;
26
28
  }
27
29
 
@@ -32,7 +34,7 @@ test(`Get wallet info`, async ({end, equal, strictSame}) => {
32
34
  equal(!!result.alias, true, 'Expected alias');
33
35
  strictSame(result.chains, [regtestChainId], 'Got chains');
34
36
  equal(!!result.current_block_hash, true, 'Expected best block hash');
35
- equal(result.current_block_height, initHeight, 'Expected best block height');
37
+ ok(result.current_block_height >= initHeight, 'Expected block height');
36
38
  equal(!!result.latest_block_at, true, 'Last block time');
37
39
  equal(result.peers_count, 0, 'Expected wallet peers count');
38
40
  equal(result.pending_channels_count, 0, 'Expected pending channels count');
@@ -36,9 +36,9 @@ test(`Open channels`, async ({end, equal}) => {
36
36
 
37
37
  const [{generate, lnd}, target, remote] = nodes;
38
38
 
39
- await generate({count: maturity});
40
-
41
39
  try {
40
+ await generate({count: maturity});
41
+
42
42
  await asyncRetry({interval, times}, async () => {
43
43
  const lnds = [lnd, target.lnd, remote.lnd];
44
44
 
@@ -10,7 +10,6 @@ const {createInvoice} = require('./../../');
10
10
  const {decodePaymentRequest} = require('./../../');
11
11
  const {delay} = require('./../macros');
12
12
  const {getChannel} = require('./../../');
13
- const {getChannels} = require('./../../');
14
13
  const {getHeight} = require('./../../');
15
14
  const {getNetworkGraph} = require('./../../');
16
15
  const {getRouteToDestination} = require('./../../');
@@ -8,7 +8,6 @@ const {cancelHodlInvoice} = require('./../../');
8
8
  const {createInvoice} = require('./../../');
9
9
  const {decodePaymentRequest} = require('./../../');
10
10
  const {getChannel} = require('./../../');
11
- const {getChannels} = require('./../../');
12
11
  const {getInvoice} = require('./../../');
13
12
  const {getRouteToDestination} = require('./../../');
14
13
  const {openChannel} = require('./../../');
@@ -14,21 +14,25 @@ test(`Remove a peer`, async ({end, equal}) => {
14
14
 
15
15
  const [{id, lnd}, target] = nodes;
16
16
 
17
- await asyncRetry({interval: 10, times: 2000}, async () => {
18
- await addPeer({lnd, public_key: target.id, socket: target.socket});
19
- });
17
+ try {
18
+ await asyncRetry({interval: 10, times: 2000}, async () => {
19
+ await addPeer({lnd, public_key: target.id, socket: target.socket});
20
+ });
20
21
 
21
- const {peers} = await getPeers({lnd});
22
+ const {peers} = await getPeers({lnd});
22
23
 
23
- const [targetPeer] = peers;
24
+ const [targetPeer] = peers;
24
25
 
25
- equal(targetPeer.public_key, target.id, 'Peer is added');
26
+ equal(targetPeer.public_key, target.id, 'Peer is added');
26
27
 
27
- await removePeer({lnd, public_key: targetPeer.public_key});
28
+ await removePeer({lnd, public_key: targetPeer.public_key});
28
29
 
29
- const postRemovalPeers = await getPeers({lnd});
30
+ const postRemovalPeers = await getPeers({lnd});
30
31
 
31
- equal(postRemovalPeers.peers.length, [].length, 'Peer is removed');
32
+ equal(postRemovalPeers.peers.length, [].length, 'Peer is removed');
33
+ } catch (err) {
34
+ equal(err, null, 'Expected no error');
35
+ }
32
36
 
33
37
  await kill({});
34
38
 
@@ -8,7 +8,7 @@ const {subscribeToPeerMessages} = require('./../../');
8
8
 
9
9
  const interval = 10;
10
10
  const size = 2;
11
- const times = 1000;
11
+ const times = 2000;
12
12
 
13
13
  // Sending a message to a peer should result in the message received
14
14
  test(`Send peer message`, async ({end, equal, strictSame}) => {
@@ -33,39 +33,50 @@ test(`Send peer message`, async ({end, equal, strictSame}) => {
33
33
  }
34
34
  }
35
35
 
36
- await asyncRetry({interval, times}, async () => {
37
- await addPeer({lnd, public_key: target.id, socket: target.socket});
38
- });
36
+ try {
37
+ await asyncRetry({interval, times}, async () => {
38
+ await addPeer({
39
+ lnd,
40
+ public_key: target.id,
41
+ retry_count: 1,
42
+ retry_delay: 1,
43
+ socket: target.socket,
44
+ timeout: 1000,
45
+ });
46
+ });
39
47
 
40
- const sub = subscribeToPeerMessages({lnd: target.lnd});
48
+ const sub = subscribeToPeerMessages({lnd: target.lnd});
41
49
 
42
- const messages = [];
50
+ const messages = [];
43
51
 
44
- sub.on('message_received', message => messages.push(message));
52
+ sub.on('message_received', message => messages.push(message));
45
53
 
46
- await asyncRetry({interval, times}, async () => {
47
- await sendMessageToPeer({
48
- lnd,
49
- message: Buffer.from('message').toString('hex'),
50
- public_key: target.id,
51
- });
54
+ await asyncRetry({interval, times}, async () => {
55
+ await sendMessageToPeer({
56
+ lnd,
57
+ message: Buffer.from('message').toString('hex'),
58
+ public_key: target.id,
59
+ });
52
60
 
53
- if (!messages.length) {
54
- throw new Error('ExpectedMessage');
55
- }
56
- });
57
-
58
- const [message] = messages;
61
+ if (!messages.length) {
62
+ throw new Error('ExpectedMessage');
63
+ }
64
+ });
59
65
 
60
- strictSame(
61
- message,
62
- {
63
- message: Buffer.from('message').toString('hex'),
64
- public_key: id,
65
- type: 32768,
66
- },
67
- 'Message successfully sent to peer'
68
- );
66
+ const [message] = messages;
67
+
68
+ strictSame(
69
+ message,
70
+ {
71
+ message: Buffer.from('message').toString('hex'),
72
+ public_key: id,
73
+ type: 32768,
74
+ },
75
+ 'Message successfully sent to peer'
76
+ );
77
+ } catch (err) {
78
+ equal(err, null, 'Expected no error');
79
+ }
69
80
 
70
81
  await kill({});
71
82
 
@@ -5,7 +5,6 @@ const {test} = require('@alexbosworth/tap');
5
5
  const {addPeer} = require('./../../');
6
6
  const {closeChannel} = require('./../../');
7
7
  const {getChainBalance} = require('./../../');
8
- const {getHeight} = require('./../../');
9
8
  const {getWalletInfo} = require('./../../');
10
9
  const {openChannel} = require('./../../');
11
10
  const {removePeer} = require('./../../');
@@ -4,13 +4,9 @@ const {routeFromHops} = require('bolt07');
4
4
  const {spawnLightningCluster} = require('ln-docker-daemons');
5
5
  const {test} = require('@alexbosworth/tap');
6
6
 
7
- const {cancelHodlInvoice} = require('./../../');
8
7
  const {createInvoice} = require('./../../');
9
8
  const {getChannel} = require('./../../');
10
- const {getChannels} = require('./../../');
11
- const {getHeight} = require('./../../');
12
9
  const {pay} = require('./../../');
13
- const {payViaRoutes} = require('./../../');
14
10
  const {setupChannel} = require('./../macros');
15
11
  const {subscribeToInvoices} = require('./../../');
16
12
 
@@ -37,107 +33,113 @@ test('Subscribe to invoices', async ({end, equal, fail}) => {
37
33
 
38
34
  const destination = control.id;
39
35
 
40
- // Create a channel from the control to the target node
41
- const controlToTargetChannel = await setupChannel({
42
- generate,
43
- lnd,
44
- give: 1e5,
45
- to: target,
46
- });
36
+ try {
37
+ await generate({count: 100});
47
38
 
48
- // Create a channel from the target back to the control
49
- const targetToControlChannel = await setupChannel({
50
- lnd: target.lnd,
51
- generate: target.generate,
52
- give: 1e5,
53
- to: control,
54
- });
55
-
56
- // Created invoices are emitted
57
- {
58
- const sub = subscribeToInvoices({lnd, restart_delay_ms: 1});
39
+ // Create a channel from the control to the target node
40
+ const controlToTargetChannel = await setupChannel({
41
+ generate,
42
+ lnd,
43
+ give: 1e5,
44
+ to: target,
45
+ });
59
46
 
60
- const updates = [];
47
+ // Create a channel from the target back to the control
48
+ const targetToControlChannel = await setupChannel({
49
+ lnd: target.lnd,
50
+ generate: target.generate,
51
+ give: 1e5,
52
+ to: control,
53
+ });
61
54
 
62
- sub.on('invoice_updated', updated => updates.push(updated));
55
+ // Created invoices are emitted
56
+ {
57
+ const sub = subscribeToInvoices({lnd, restart_delay_ms: 1});
63
58
 
64
- const update = await asyncRetry({interval, times}, async () => {
65
- await createInvoice({lnd});
59
+ const updates = [];
66
60
 
67
- const [update] = updates;
61
+ sub.on('invoice_updated', updated => updates.push(updated));
68
62
 
69
- if (!update) {
70
- throw new Error('ExpectedInvoiceUpdate');
71
- }
63
+ const update = await asyncRetry({interval, times}, async () => {
64
+ await createInvoice({lnd});
72
65
 
73
- return update;
74
- });
66
+ const [update] = updates;
75
67
 
76
- equal(update.tokens, 0, 'Invoiced zero');
68
+ if (!update) {
69
+ throw new Error('ExpectedInvoiceUpdate');
70
+ }
77
71
 
78
- sub.removeAllListeners();
79
- }
72
+ return update;
73
+ });
80
74
 
81
- // Paid invoices are emitted
82
- {
83
- const sub = subscribeToInvoices({lnd, restart_delay_ms: 1});
75
+ equal(update.tokens, 0, 'Invoiced zero');
84
76
 
85
- const updates = [];
77
+ sub.removeAllListeners();
78
+ }
86
79
 
87
- sub.on('invoice_updated', updated => updates.push(updated));
80
+ // Paid invoices are emitted
81
+ {
82
+ const sub = subscribeToInvoices({lnd, restart_delay_ms: 1});
88
83
 
89
- const update = await asyncRetry({interval, times}, async () => {
90
- await pay({
91
- lnd: target.lnd,
92
- request: (await createInvoice({lnd, tokens})).request,
93
- });
84
+ const updates = [];
94
85
 
95
- const [update] = updates.filter(n => n.is_confirmed);
86
+ sub.on('invoice_updated', updated => updates.push(updated));
96
87
 
97
- if (!update) {
98
- throw new Error('ExpectedPaidInvoiceUpdate');
99
- }
88
+ const update = await asyncRetry({interval, times}, async () => {
89
+ await pay({
90
+ lnd: target.lnd,
91
+ request: (await createInvoice({lnd, tokens})).request,
92
+ });
100
93
 
101
- return update;
102
- });
94
+ const [update] = updates.filter(n => n.is_confirmed);
103
95
 
104
- equal(!!update.confirmed_at, true, 'Got receive date');
105
- equal(!!update.confirmed_index, true, 'Got confirm index');
106
- equal(update.payments.length, 1, 'Got received HTLC');
107
- equal(update.received, tokens, 'Got received tokens');
108
- equal(update.received_mtokens, '10000000', 'Got invoice mtokens');
96
+ if (!update) {
97
+ throw new Error('ExpectedPaidInvoiceUpdate');
98
+ }
109
99
 
110
- sub.removeAllListeners();
111
- }
100
+ return update;
101
+ });
112
102
 
113
- // Old invoices are emitted
114
- {
115
- const sub = subscribeToInvoices({
116
- lnd,
117
- added_after: 1,
118
- restart_delay_ms: 1,
119
- });
103
+ equal(!!update.confirmed_at, true, 'Got receive date');
104
+ equal(!!update.confirmed_index, true, 'Got confirm index');
105
+ equal(update.payments.length, 1, 'Got received HTLC');
106
+ equal(update.received, tokens, 'Got received tokens');
107
+ equal(update.received_mtokens, '10000000', 'Got invoice mtokens');
108
+
109
+ sub.removeAllListeners();
110
+ }
111
+
112
+ // Old invoices are emitted
113
+ {
114
+ const sub = subscribeToInvoices({
115
+ lnd,
116
+ added_after: 1,
117
+ restart_delay_ms: 1,
118
+ });
120
119
 
121
- const updates = [];
120
+ const updates = [];
122
121
 
123
- sub.on('invoice_updated', updated => updates.push(updated));
122
+ sub.on('invoice_updated', updated => updates.push(updated));
124
123
 
125
- const update = await asyncRetry({interval, times}, async () => {
126
- const [update] = updates;
124
+ const update = await asyncRetry({interval, times}, async () => {
125
+ const [update] = updates;
127
126
 
128
- if (!update) {
129
- throw new Error('ExpectedPastInvoiceUpdate');
130
- }
127
+ if (!update) {
128
+ throw new Error('ExpectedPastInvoiceUpdate');
129
+ }
131
130
 
132
- return update;
133
- });
131
+ return update;
132
+ });
134
133
 
135
- equal(update.index, 2, 'Got past update');
134
+ equal(update.index, 2, 'Got past update');
136
135
 
137
- sub.removeAllListeners();
136
+ sub.removeAllListeners();
137
+ }
138
+ } catch (err) {
139
+ equal(err, null, 'Expected no error');
140
+ } finally {
141
+ await kill({});
138
142
  }
139
143
 
140
- await kill({});
141
-
142
144
  return end();
143
145
  });
@@ -17,10 +17,12 @@ test(`Subscribe to peer messages`, async ({end, equal, strictSame}) => {
17
17
  const [{lnd}, target, remote] = nodes;
18
18
 
19
19
  try {
20
- await addPeer({
21
- lnd,
22
- public_key: target.id,
23
- socket: target.socket,
20
+ await asyncRetry({interval, times}, async () => {
21
+ await addPeer({
22
+ lnd,
23
+ public_key: target.id,
24
+ socket: target.socket,
25
+ });
24
26
  });
25
27
 
26
28
  await addPeer({
@@ -10,10 +10,8 @@ const {closeChannel} = require('./../../');
10
10
  const {createHodlInvoice} = require('./../../');
11
11
  const {delay} = require('./../macros');
12
12
  const {getChainTransactions} = require('./../../');
13
- const {getChannels} = require('./../../');
14
13
  const {getClosedChannels} = require('./../../');
15
14
  const {getInvoice} = require('./../../');
16
- const {getInvoices} = require('./../../');
17
15
  const {getPendingChannels} = require('./../../');
18
16
  const {getSweepTransactions} = require('./../../');
19
17
  const {getWalletInfo} = require('./../../');
@@ -8,7 +8,6 @@ const {cancelHodlInvoice} = require('./../../');
8
8
  const {createHodlInvoice} = require('./../../');
9
9
  const {delay} = require('./../macros');
10
10
  const {getInvoice} = require('./../../');
11
- const {getInvoices} = require('./../../');
12
11
  const {pay} = require('./../../');
13
12
  const {setupChannel} = require('./../macros');
14
13
  const {subscribeToInvoice} = require('./../../');
@@ -6,7 +6,7 @@ const {getChannel} = require('./../../');
6
6
  const {getChannels} = require('./../../');
7
7
 
8
8
  const interval = 10;
9
- const times = 6000;
9
+ const times = 10000;
10
10
 
11
11
  /** Wait for channel to be open
12
12