balanceofsatoshis 12.6.2 → 12.6.5

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
@@ -1,6 +1,10 @@
1
1
  # Versions
2
2
 
3
- ## 12.6.2
3
+ ## 12.6.5
4
+
5
+ - `probe`: Fix `feature pair exists` error when probing Eclair destinations
6
+
7
+ ## 12.6.3
4
8
 
5
9
  - `telegram`: Avoid bot crash when receiving an AMP push payment
6
10
 
@@ -25,6 +25,7 @@ const dateType = '34349343';
25
25
  const defaultCltvDelta = 144;
26
26
  const defaultMaxFee = 1337;
27
27
  const defaultTokens = 1;
28
+ const featureTypeChannelType = 45;
28
29
  const {floor} = Math;
29
30
  const fromKeyType = '34349339';
30
31
  const keySendPreimageType = '5482373484';
@@ -227,10 +228,12 @@ module.exports = (args, cbk) => {
227
228
  return cbk(null, {features: to.features});
228
229
  }
229
230
 
230
- const features = getDestinationNode.features || [];
231
+ // Only requires features are important to finding routes
232
+ const features = (getDestinationNode.features || [])
233
+ .filter(n => !!n.is_known)
234
+ .filter(n => n.bit !== featureTypeChannelType);
231
235
 
232
- // Only known features may be passed to find routes
233
- return cbk(null, {features: features.filter(n => !!n.is_known)});
236
+ return cbk(null, {features});
234
237
  }],
235
238
 
236
239
  // Determine messages to attach
package/package.json CHANGED
@@ -30,15 +30,15 @@
30
30
  "csv-parse": "5.0.4",
31
31
  "ecpair": "2.0.1",
32
32
  "goldengate": "11.2.1",
33
- "grammy": "1.8.0",
33
+ "grammy": "1.8.2",
34
34
  "hot-formula-parser": "4.0.0",
35
35
  "import-lazy": "4.0.0",
36
36
  "ini": "3.0.0",
37
- "inquirer": "8.2.2",
37
+ "inquirer": "8.2.4",
38
38
  "ln-accounting": "5.0.6",
39
39
  "ln-service": "53.15.0",
40
40
  "ln-sync": "3.12.0",
41
- "ln-telegram": "3.21.2",
41
+ "ln-telegram": "3.21.3",
42
42
  "moment": "2.29.3",
43
43
  "paid-services": "3.15.4",
44
44
  "probing": "2.0.5",
@@ -84,5 +84,5 @@
84
84
  "postpublish": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t alexbosworth/balanceofsatoshis --push .",
85
85
  "test": "tap --branches=1 --functions=1 --lines=1 --statements=1 -t 60 test/arrays/*.js test/balances/*.js test/chain/*.js test/display/*.js test/encryption/*.js test/lnd/*.js test/network/*.js test/nodes/*.js test/peers/*.js test/responses/*.js test/routing/*.js test/services/*.js test/swaps/*.js test/tags/*.js test/telegram/*.js test/wallets/*.js"
86
86
  },
87
- "version": "12.6.2"
87
+ "version": "12.6.5"
88
88
  }
@@ -377,7 +377,7 @@ module.exports = (args, cbk) => {
377
377
  from: ctx.message.from.id,
378
378
  id: connectedId,
379
379
  nodes: getNodes,
380
- reply: n => ctx.reply(n),
380
+ reply: (message, options) => ctx.reply(message, options),
381
381
  working: () => ctx.replyWithChatAction('typing'),
382
382
  });
383
383
  } catch (err) {