lightning 9.7.0 → 9.7.1
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
|
@@ -3,6 +3,7 @@ const {returnResult} = require('asyncjs-util');
|
|
|
3
3
|
|
|
4
4
|
const subscribeToPayViaDetails = require('./subscribe_to_pay_via_details');
|
|
5
5
|
|
|
6
|
+
const defaultMillitokens = '1000';
|
|
6
7
|
const defaultTokens = 1;
|
|
7
8
|
|
|
8
9
|
/** Determine if a payment destination is actually payable by probing it
|
|
@@ -56,7 +57,7 @@ module.exports = (args, cbk) => {
|
|
|
56
57
|
|
|
57
58
|
// Attempt payment
|
|
58
59
|
probe: ['validate', ({}, cbk) => {
|
|
59
|
-
const
|
|
60
|
+
const isDefaultTokens = !args.tokens && !args.mtokens;
|
|
60
61
|
|
|
61
62
|
const sub = subscribeToPayViaDetails({
|
|
62
63
|
cltv_delta: args.cltv_delta,
|
|
@@ -66,11 +67,11 @@ module.exports = (args, cbk) => {
|
|
|
66
67
|
max_fee: args.max_fee,
|
|
67
68
|
max_fee_mtokens: args.max_fee_mtokens,
|
|
68
69
|
max_timeout_height: args.max_timeout_height,
|
|
69
|
-
mtokens: args.mtokens,
|
|
70
|
+
mtokens: isDefaultTokens ? defaultMillitokens : args.mtokens,
|
|
70
71
|
outgoing_channel: args.outgoing_channel,
|
|
71
72
|
pathfinding_timeout: args.pathfinding_timeout,
|
|
72
73
|
routes: args.routes,
|
|
73
|
-
tokens:
|
|
74
|
+
tokens: isDefaultTokens ? defaultTokens : args.tokens,
|
|
74
75
|
});
|
|
75
76
|
|
|
76
77
|
const finished = (err, res) => {
|
package/package.json
CHANGED