balanceofsatoshis 12.8.1 → 12.8.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
@@ -1,6 +1,6 @@
1
1
  # Versions
2
2
 
3
- ## 12.8.1
3
+ ## 12.8.2
4
4
 
5
5
  - `telegram`: Add safeguards to deal with errors on /graph command
6
6
 
package/package.json CHANGED
@@ -30,13 +30,13 @@
30
30
  "csv-parse": "5.0.4",
31
31
  "ecpair": "2.0.1",
32
32
  "goldengate": "11.2.1",
33
- "grammy": "1.8.2",
33
+ "grammy": "1.8.3",
34
34
  "hot-formula-parser": "4.0.0",
35
35
  "import-lazy": "4.0.0",
36
36
  "ini": "3.0.0",
37
37
  "inquirer": "8.2.4",
38
38
  "ln-accounting": "5.0.6",
39
- "ln-service": "53.15.0",
39
+ "ln-service": "53.16.0",
40
40
  "ln-sync": "3.12.0",
41
41
  "ln-telegram": "3.21.5",
42
42
  "moment": "2.29.3",
@@ -55,7 +55,7 @@
55
55
  "devDependencies": {
56
56
  "@alexbosworth/tap": "15.0.11",
57
57
  "invoices": "2.0.6",
58
- "ln-docker-daemons": "2.2.9",
58
+ "ln-docker-daemons": "2.2.10",
59
59
  "mock-lnd": "1.4.1",
60
60
  "tiny-secp256k1": "2.2.1"
61
61
  },
@@ -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.8.1"
87
+ "version": "12.8.2"
88
88
  }
@@ -556,9 +556,15 @@ module.exports = (args, cbk) => {
556
556
  // Detect funding transaction
557
557
  detectFunding: [
558
558
  'getNetwork',
559
+ 'isExternal',
559
560
  'openChannels',
560
- ({getNetwork, openChannels}, cbk) =>
561
+ ({getNetwork, isExternal, openChannels}, cbk) =>
561
562
  {
563
+ // Exit early when the funding is coming from the internal wallet
564
+ if (!isExternal) {
565
+ return cbk();
566
+ }
567
+
562
568
  if (!detectNetworks.includes(getNetwork.network)) {
563
569
  return cbk();
564
570
  }