paid-services 4.3.1 → 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
CHANGED
|
@@ -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
|
}
|
|
@@ -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;
|
|
@@ -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,
|
|
@@ -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
|
@@ -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
|
}
|