paid-services 3.15.3 → 3.15.4
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
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"ecpair": "2.0.1",
|
|
17
17
|
"goldengate": "11.2.1",
|
|
18
18
|
"invoices": "2.0.6",
|
|
19
|
-
"ln-service": "53.
|
|
19
|
+
"ln-service": "53.15.0",
|
|
20
20
|
"ln-sync": "3.12.0",
|
|
21
21
|
"psbt": "2.0.1",
|
|
22
22
|
"p2tr": "1.3.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/server/*.js test/services/*.js test/trades/*.js"
|
|
49
49
|
},
|
|
50
|
-
"version": "3.15.
|
|
50
|
+
"version": "3.15.4"
|
|
51
51
|
}
|
package/swaps/manage_swap.js
CHANGED
|
@@ -9,6 +9,7 @@ const respondToSwapOutRequest = require('./respond_to_swap_out_request');
|
|
|
9
9
|
|
|
10
10
|
const allowedNetwork = 'btctestnet';
|
|
11
11
|
const bip86Path = `m/86'/0'/0'`;
|
|
12
|
+
const minConfirmations = {btc: 2, btcregtest: 3, btctestnet: 1};
|
|
12
13
|
const recoverRespondAction = 'recover-response';
|
|
13
14
|
const requestAction = 'request';
|
|
14
15
|
const respondAction = 'respond';
|
|
@@ -102,6 +103,7 @@ module.exports = ({ask, lnd, logger, request}, cbk) => {
|
|
|
102
103
|
ask,
|
|
103
104
|
lnd,
|
|
104
105
|
logger,
|
|
106
|
+
min_confirmations: minConfirmations[getNetwork.network],
|
|
105
107
|
request: !hasTr ? request : undefined,
|
|
106
108
|
},
|
|
107
109
|
cbk);
|
|
@@ -26,6 +26,7 @@ const rateDenominator = 1e6;
|
|
|
26
26
|
[is_uncooperative]: <Avoid Cooperative Resolution Bool>
|
|
27
27
|
lnd: <Authenticated LND API Object>
|
|
28
28
|
logger: <Winston Logger Object>
|
|
29
|
+
[min_confirmations]: <Minimum Confirmations to Wait Number>
|
|
29
30
|
[request]: <Request Function>
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -187,6 +188,7 @@ module.exports = (args, cbk) => {
|
|
|
187
188
|
lnd: args.lnd,
|
|
188
189
|
max_fee_deposit: defaultMaxFeeForDeposit,
|
|
189
190
|
max_fee_funding: askForTokens * askForRate / rateDenominator,
|
|
191
|
+
min_confirmations: args.min_confirmations,
|
|
190
192
|
recovery: makeRequest.recovery,
|
|
191
193
|
request: args.request,
|
|
192
194
|
response: getResponse,
|