paid-services 4.3.0 → 4.3.2
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 +1 -1
- package/groups/p2p/find_group_partners.js +8 -3
- package/groups/p2p/peer_with_partners.js +1 -1
- package/groups/p2p/register_group_connected.js +6 -1
- package/groups/p2p/register_pending_open.js +8 -3
- package/groups/p2p/register_signed_open.js +6 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -9,10 +9,10 @@ const {makePeerRequest} = require('./../../p2p');
|
|
|
9
9
|
const {serviceTypeFindGroupPartners} = require('./../../service_types');
|
|
10
10
|
|
|
11
11
|
const defaultConnectIntervalMs = 500;
|
|
12
|
-
const defaultConnectPollTimes = 2 * 60 *
|
|
12
|
+
const defaultConnectPollTimes = 2 * 60 * 30;
|
|
13
13
|
const defaultGroupPartnersIntervalMs = 500;
|
|
14
14
|
const defaultGroupPartnersPollTimes = 2 * 60 * 60 * 24 * 3;
|
|
15
|
-
const defaultRequestTimeoutMs = 1000 * 60;
|
|
15
|
+
const defaultRequestTimeoutMs = 1000 * 60 * 5;
|
|
16
16
|
const minGroupCount = 2;
|
|
17
17
|
const missingGroupPartners = 'NoGroupPartnersFound';
|
|
18
18
|
const typeGroupChannelId = '1';
|
|
@@ -66,7 +66,12 @@ module.exports = ({coordinator, count, id, lnd}, cbk) => {
|
|
|
66
66
|
errorFilter: err => {
|
|
67
67
|
const [code, message] = err;
|
|
68
68
|
|
|
69
|
-
//
|
|
69
|
+
// Retry when there was a local error
|
|
70
|
+
if (!code) {
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Continue retrying when there are no group partners yet
|
|
70
75
|
if (message === missingGroupPartners) {
|
|
71
76
|
return true;
|
|
72
77
|
}
|
|
@@ -8,7 +8,7 @@ const {makePeerRequest} = require('./../../p2p');
|
|
|
8
8
|
const {serviceTypeConfirmConnected} = require('./../../service_types');
|
|
9
9
|
|
|
10
10
|
const defaultIntervalMs = 500;
|
|
11
|
-
const defaultPollTimes = 2 * 60 *
|
|
11
|
+
const defaultPollTimes = 2 * 60 * 30;
|
|
12
12
|
const defaultRequestTimeoutMs = 1000 * 60;
|
|
13
13
|
const missingGroupPartners = 'NoGroupPartnersFound';
|
|
14
14
|
const typeGroupChannelId = '1';
|
|
@@ -59,6 +59,11 @@ module.exports = ({coordinator, count, id, lnd}, cbk) => {
|
|
|
59
59
|
errorFilter: err => {
|
|
60
60
|
const [code, message] = err;
|
|
61
61
|
|
|
62
|
+
// Retry when there was a local error
|
|
63
|
+
if (!code) {
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
62
67
|
// Continue retrying when there are others still connecting
|
|
63
68
|
if (message === missingGroupPartners) {
|
|
64
69
|
return true;
|
|
@@ -16,7 +16,7 @@ const {signAndFundGroupChannel} = require('./../funding');
|
|
|
16
16
|
|
|
17
17
|
const bufferAsHex = buffer => buffer.toString('hex');
|
|
18
18
|
const defaultIntervalMs = 500;
|
|
19
|
-
const defaultPollTimes = 2 * 60 *
|
|
19
|
+
const defaultPollTimes = 2 * 60 * 30;
|
|
20
20
|
const defaultRequestTimeoutMs = 1000 * 60;
|
|
21
21
|
const {fromHex} = Transaction;
|
|
22
22
|
const hexAsBuffer = hex => Buffer.from(hex, 'hex');
|
|
@@ -104,12 +104,17 @@ module.exports = (args, cbk) => {
|
|
|
104
104
|
return asyncRetry({
|
|
105
105
|
errorFilter: err => {
|
|
106
106
|
const [code, message] = err;
|
|
107
|
-
|
|
107
|
+
|
|
108
|
+
// Retry when there was a local error
|
|
109
|
+
if (!code) {
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
|
|
108
113
|
// Continue retrying when there are others still proposing
|
|
109
114
|
if (message === missingGroupPartners) {
|
|
110
115
|
return true;
|
|
111
116
|
}
|
|
112
|
-
|
|
117
|
+
|
|
113
118
|
return false;
|
|
114
119
|
},
|
|
115
120
|
interval: defaultIntervalMs,
|
|
@@ -9,7 +9,7 @@ const {makePeerRequest} = require('./../../p2p');
|
|
|
9
9
|
const {serviceTypeRegisterSignedOpen} = require('./../../service_types');
|
|
10
10
|
|
|
11
11
|
const defaultIntervalMs = 500;
|
|
12
|
-
const defaultPollTimes = 2 * 60 *
|
|
12
|
+
const defaultPollTimes = 2 * 60 * 30;
|
|
13
13
|
const defaultRequestTimeoutMs = 1000 * 60;
|
|
14
14
|
const {isArray} = Array;
|
|
15
15
|
const missingGroupPartners = 'NoGroupPartnersFound';
|
|
@@ -67,6 +67,11 @@ module.exports = ({coordinator, count, group, lnd, signed}, cbk) => {
|
|
|
67
67
|
errorFilter: err => {
|
|
68
68
|
const [code, message] = err;
|
|
69
69
|
|
|
70
|
+
// Retry when there was a local error
|
|
71
|
+
if (!code) {
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
|
|
70
75
|
// Continue retrying when there are others still signing
|
|
71
76
|
if (message === missingGroupPartners) {
|
|
72
77
|
return true;
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"goldengate": "12.0.2",
|
|
18
18
|
"invoices": "2.2.3",
|
|
19
19
|
"ln-service": "54.9.0",
|
|
20
|
-
"ln-sync": "4.
|
|
20
|
+
"ln-sync": "4.3.0",
|
|
21
21
|
"psbt": "2.7.2",
|
|
22
22
|
"p2tr": "1.3.3",
|
|
23
23
|
"tiny-secp256k1": "2.2.1"
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"integration-tests": "tap -j 2 --branches=1 --functions=1 --lines=1 --statements=1 -t 180 test/integration/*.js",
|
|
48
48
|
"test": "tap --branches=1 --functions=1 --lines=1 --statements=1 -t 60 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"
|
|
49
49
|
},
|
|
50
|
-
"version": "4.3.
|
|
50
|
+
"version": "4.3.2"
|
|
51
51
|
}
|