balanceofsatoshis 11.16.2 → 11.17.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 +4 -0
- package/Dockerfile +1 -1
- package/bos +20 -0
- package/package.json +2 -2
- package/services/accept_balanced_channel.js +0 -1
package/CHANGELOG.md
CHANGED
package/Dockerfile
CHANGED
package/bos
CHANGED
|
@@ -296,6 +296,26 @@ prog
|
|
|
296
296
|
});
|
|
297
297
|
})
|
|
298
298
|
|
|
299
|
+
// Change the capacity of an existing channel
|
|
300
|
+
.command('change-channel-capacity', 'Change the capacity of a channel')
|
|
301
|
+
.help('Remote node must be prepared to receive this type of request')
|
|
302
|
+
.help('The remote node should also run this same command after you propose')
|
|
303
|
+
.option('--node <node_name>', 'Use saved node details instead of local node')
|
|
304
|
+
.action((args, options, logger) => {
|
|
305
|
+
return new Promise(async (resolve, reject) => {
|
|
306
|
+
try {
|
|
307
|
+
return paidServices.changeChannelCapacity({
|
|
308
|
+
logger,
|
|
309
|
+
ask: (n, cbk) => inquirer.prompt([n]).then(res => cbk(res)),
|
|
310
|
+
lnd: (await lnd.authenticatedLnd({logger, node: options.node})).lnd,
|
|
311
|
+
},
|
|
312
|
+
responses.returnObject({exit, logger, reject, resolve}));
|
|
313
|
+
} catch (err) {
|
|
314
|
+
return reject(logger.error({err}));
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
})
|
|
318
|
+
|
|
299
319
|
// Show a chart of chain fees paid
|
|
300
320
|
.command('chart-chain-fees', 'Get a chart of chain fee expenses')
|
|
301
321
|
.help('Show chart of mining fee expenditure over time')
|
package/package.json
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"ln-sync": "3.6.0",
|
|
40
40
|
"ln-telegram": "3.4.2",
|
|
41
41
|
"moment": "2.29.1",
|
|
42
|
-
"paid-services": "3.
|
|
42
|
+
"paid-services": "3.3.0",
|
|
43
43
|
"probing": "2.0.1",
|
|
44
44
|
"psbt": "1.1.10",
|
|
45
45
|
"qrcode-terminal": "0.12.0",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"postpublish": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t alexbosworth/balanceofsatoshis --push .",
|
|
81
81
|
"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/wallets/*.js"
|
|
82
82
|
},
|
|
83
|
-
"version": "11.
|
|
83
|
+
"version": "11.17.0"
|
|
84
84
|
}
|
|
@@ -40,7 +40,6 @@ const paddedHexNumber = n => n.length % 2 ? `0${n}` : n;
|
|
|
40
40
|
const {p2ms} = payments;
|
|
41
41
|
const {p2pkh} = payments;
|
|
42
42
|
const p2pTimeoutMs = 5000;
|
|
43
|
-
const p2pTimeoutCode = 408;
|
|
44
43
|
const {p2wsh} = payments;
|
|
45
44
|
const relockIntervalMs = 1000 * 20;
|
|
46
45
|
const times = 60 * 6;
|