paid-services 8.0.6 → 8.0.7
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/package.json
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"allowScripts": {
|
|
3
|
+
"cpu-features@0.0.10": true,
|
|
4
|
+
"protobufjs@7.6.6": true,
|
|
5
|
+
"ssh2@1.17.0": true
|
|
6
|
+
},
|
|
2
7
|
"author": {
|
|
3
8
|
"name": "Alex Bosworth",
|
|
4
9
|
"url": "https://twitter.com/alexbosworth"
|
|
@@ -7,25 +12,25 @@
|
|
|
7
12
|
"url": "https://github.com/alexbosworth/paid-services/issues"
|
|
8
13
|
},
|
|
9
14
|
"dependencies": {
|
|
10
|
-
"@alexbosworth/blockchain": "4.
|
|
15
|
+
"@alexbosworth/blockchain": "4.8.0",
|
|
11
16
|
"@alexbosworth/fiat": "2.0.0",
|
|
12
17
|
"async": "3.2.6",
|
|
13
18
|
"asyncjs-util": "1.2.12",
|
|
14
19
|
"bech32": "2.0.0",
|
|
15
|
-
"bolt01": "
|
|
16
|
-
"bolt07": "
|
|
20
|
+
"bolt01": "4.0.0",
|
|
21
|
+
"bolt07": "2.0.0",
|
|
17
22
|
"ecpair": "2.1.0",
|
|
18
|
-
"goldengate": "16.0.
|
|
19
|
-
"invoices": "6.
|
|
20
|
-
"ln-service": "59.
|
|
21
|
-
"ln-sync": "8.0.
|
|
22
|
-
"psbt": "
|
|
23
|
-
"p2tr": "
|
|
23
|
+
"goldengate": "16.0.7",
|
|
24
|
+
"invoices": "6.1.4",
|
|
25
|
+
"ln-service": "59.3.7",
|
|
26
|
+
"ln-sync": "8.0.6",
|
|
27
|
+
"psbt": "6.0.3",
|
|
28
|
+
"p2tr": "3.0.0",
|
|
24
29
|
"tiny-secp256k1": "2.2.4"
|
|
25
30
|
},
|
|
26
31
|
"description": "Lightning Paid Services library",
|
|
27
32
|
"devDependencies": {
|
|
28
|
-
"ln-docker-daemons": "8.0.
|
|
33
|
+
"ln-docker-daemons": "8.0.5",
|
|
29
34
|
"mock-lnd": "4.0.0"
|
|
30
35
|
},
|
|
31
36
|
"engines": {
|
|
@@ -40,11 +45,11 @@
|
|
|
40
45
|
"name": "paid-services",
|
|
41
46
|
"repository": {
|
|
42
47
|
"type": "git",
|
|
43
|
-
"url": "https://github.com/alexbosworth/paid-services.git"
|
|
48
|
+
"url": "git+https://github.com/alexbosworth/paid-services.git"
|
|
44
49
|
},
|
|
45
50
|
"scripts": {
|
|
46
51
|
"integration-tests": "node test/integration",
|
|
47
52
|
"test": "node --experimental-test-coverage --test test/actions/*.js test/balanced/*.js test/capacity/*.js test/client/*.js test/config/*.js test/p2p/*.js test/records/*.js test/respond/*.js test/server/*.js test/swaps/*.js test/services/*.js test/trades/*.js"
|
|
48
53
|
},
|
|
49
|
-
"version": "8.0.
|
|
54
|
+
"version": "8.0.7"
|
|
50
55
|
}
|
|
@@ -75,6 +75,8 @@ test(`Setup sorted channel group`, async () => {
|
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
|
|
78
|
+
await target.generate({});
|
|
79
|
+
|
|
78
80
|
// Wait for UTXOs to be confirmed
|
|
79
81
|
await asyncRetry({interval, times}, async () => {
|
|
80
82
|
const remoteUtxos = await getUtxos({lnd: remote.lnd});
|
|
@@ -84,6 +86,8 @@ test(`Setup sorted channel group`, async () => {
|
|
|
84
86
|
throw new Error('ExpectedConfirmedUtxoOnTarget');
|
|
85
87
|
}
|
|
86
88
|
|
|
89
|
+
await remote.generate({});
|
|
90
|
+
|
|
87
91
|
if (!remoteUtxos.utxos.filter(n => !!n.confirmation_count).length) {
|
|
88
92
|
throw new Error('ExpectedConfirmUtxoOnRemote');
|
|
89
93
|
}
|
|
@@ -3,6 +3,7 @@ const {equal} = require('node:assert').strict;
|
|
|
3
3
|
const test = require('node:test');
|
|
4
4
|
|
|
5
5
|
const {addPeer} = require('ln-service');
|
|
6
|
+
const asyncRetry = require('async/retry');
|
|
6
7
|
const {spawnLightningCluster} = require('ln-docker-daemons');
|
|
7
8
|
|
|
8
9
|
const {makePeerRequest} = require('./../../');
|
|
@@ -10,8 +11,10 @@ const {servicePeerRequests} = require('./../../');
|
|
|
10
11
|
|
|
11
12
|
const failure = [402, 'PurchaseRequired'];
|
|
12
13
|
const failureType = '1';
|
|
14
|
+
const interval = 100;
|
|
13
15
|
const records = [{type: '1', value: '01'}];
|
|
14
16
|
const size = 2;
|
|
17
|
+
const times = 3000;
|
|
15
18
|
const type = '0';
|
|
16
19
|
|
|
17
20
|
// Adding a listener for peer requests should allow responding to peer requests
|
|
@@ -20,7 +23,9 @@ test(`Listen for peer requests`, async () => {
|
|
|
20
23
|
|
|
21
24
|
const [{id, lnd}, target] = nodes;
|
|
22
25
|
|
|
23
|
-
await
|
|
26
|
+
await asyncRetry({interval, times}, async () => {
|
|
27
|
+
await addPeer({lnd, public_key: target.id, socket: target.socket});
|
|
28
|
+
});
|
|
24
29
|
|
|
25
30
|
// Start the server and respond to requests
|
|
26
31
|
const listener = servicePeerRequests({lnd});
|