balanceofsatoshis 12.6.3 → 12.7.0
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 +8 -0
- package/bos +1 -2
- package/network/open_channel.js +5 -0
- package/network/probe_destination.js +6 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Versions
|
|
2
2
|
|
|
3
|
+
## 12.7.0
|
|
4
|
+
|
|
5
|
+
- `swap`: Add keysend support to swap for pushing swap requests
|
|
6
|
+
|
|
7
|
+
## 12.6.5
|
|
8
|
+
|
|
9
|
+
- `probe`: Fix `feature pair exists` error when probing Eclair destinations
|
|
10
|
+
|
|
3
11
|
## 12.6.3
|
|
4
12
|
|
|
5
13
|
- `telegram`: Avoid bot crash when receiving an AMP push payment
|
package/bos
CHANGED
|
@@ -1628,9 +1628,8 @@ prog
|
|
|
1628
1628
|
});
|
|
1629
1629
|
})
|
|
1630
1630
|
|
|
1631
|
-
// Submarine swap
|
|
1631
|
+
// Submarine swap with another node
|
|
1632
1632
|
.command('swap', 'Trade off-chain coins for on-chain via submarine swap')
|
|
1633
|
-
.visible(false)
|
|
1634
1633
|
.option('--node <node_name>', 'Node to use for swap')
|
|
1635
1634
|
.action((args, options, logger) => {
|
|
1636
1635
|
return new Promise(async (resolve, reject) => {
|
package/network/open_channel.js
CHANGED
|
@@ -137,6 +137,11 @@ module.exports = (args, cbk) => {
|
|
|
137
137
|
|
|
138
138
|
// Get seed nodes
|
|
139
139
|
getSeed: ['getNetwork', ({getNetwork}, cbk) => {
|
|
140
|
+
// Exit early when a peer is specified
|
|
141
|
+
if (!!args.peer) {
|
|
142
|
+
return cbk(null, {nodes: []});
|
|
143
|
+
}
|
|
144
|
+
|
|
140
145
|
return getSeedNodes({
|
|
141
146
|
network: getNetwork.network,
|
|
142
147
|
request: args.request,
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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,17 +30,17 @@
|
|
|
30
30
|
"csv-parse": "5.0.4",
|
|
31
31
|
"ecpair": "2.0.1",
|
|
32
32
|
"goldengate": "11.2.1",
|
|
33
|
-
"grammy": "1.8.
|
|
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.
|
|
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
41
|
"ln-telegram": "3.21.3",
|
|
42
42
|
"moment": "2.29.3",
|
|
43
|
-
"paid-services": "3.
|
|
43
|
+
"paid-services": "3.16.0",
|
|
44
44
|
"probing": "2.0.5",
|
|
45
45
|
"psbt": "2.0.1",
|
|
46
46
|
"qrcode-terminal": "0.12.0",
|
|
@@ -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.
|
|
87
|
+
"version": "12.7.0"
|
|
88
88
|
}
|