lightning 9.12.0 → 9.13.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
CHANGED
|
@@ -18,6 +18,7 @@ const isPublicKey = n => /^[0-9A-F]{66}$/i.test(n);
|
|
|
18
18
|
const makeId = () => randomBytes(32);
|
|
19
19
|
const method = 'openChannel';
|
|
20
20
|
const notEnoughOutputs = 'not enough witness outputs to create funding';
|
|
21
|
+
const taproot = 'SIMPLE_TAPROOT';
|
|
21
22
|
const type = 'default';
|
|
22
23
|
|
|
23
24
|
/** Open one or more channels
|
|
@@ -42,6 +43,9 @@ const type = 'default';
|
|
|
42
43
|
|
|
43
44
|
`description` is not supported on LND 0.16.4 and below
|
|
44
45
|
|
|
46
|
+
`is_simplified_taproot` is not supported on LND 0.16.4 and below and requires
|
|
47
|
+
`--protocol.simple-taproot-chans` set on both sides.
|
|
48
|
+
|
|
45
49
|
{
|
|
46
50
|
channels: [{
|
|
47
51
|
[base_fee_mtokens]: <Routing Base Fee Millitokens Charged String>
|
|
@@ -51,6 +55,7 @@ const type = 'default';
|
|
|
51
55
|
[fee_rate]: <Routing Fee Rate In Millitokens Per Million Number>
|
|
52
56
|
[give_tokens]: <Tokens to Gift To Partner Number> // Defaults to zero
|
|
53
57
|
[is_private]: <Channel is Private Bool> // Defaults to false
|
|
58
|
+
[is_simplified_taproot]: <Channel is Simplified Taproot Type Bool>
|
|
54
59
|
[is_trusted_funding]: <Peer Should Avoid Waiting For Confirmation Bool>
|
|
55
60
|
[min_htlc_mtokens]: <Minimum HTLC Millitokens String>
|
|
56
61
|
[partner_csv_delay]: <Peer Output CSV Delay Number>
|
|
@@ -108,6 +113,7 @@ module.exports = (args, cbk) => {
|
|
|
108
113
|
cooperative_close_address: channel.cooperative_close_address,
|
|
109
114
|
give_tokens: channel.give_tokens,
|
|
110
115
|
is_private: channel.is_private,
|
|
116
|
+
is_simplified_taproot: channel.is_simplified_taproot,
|
|
111
117
|
is_trusted_funding: channel.is_trusted_funding,
|
|
112
118
|
min_htlc_mtokens: channel.min_htlc_mtokens,
|
|
113
119
|
partner_public_key: channel.partner_public_key,
|
|
@@ -124,10 +130,12 @@ module.exports = (args, cbk) => {
|
|
|
124
130
|
let isDone = false;
|
|
125
131
|
const isSelfPublish = !!args.is_avoiding_broadcast;
|
|
126
132
|
|
|
133
|
+
const commit = !!channel.is_simplified_taproot ? taproot : baseType;
|
|
134
|
+
|
|
127
135
|
const channelOpen = args.lnd[type][method]({
|
|
128
136
|
base_fee: channel.base_fee_mtokens || undefined,
|
|
129
137
|
close_address: channel.cooperative_close_address || undefined,
|
|
130
|
-
commitment_type:
|
|
138
|
+
commitment_type: commit,
|
|
131
139
|
fee_rate: channel.fee_rate,
|
|
132
140
|
funding_shim: {
|
|
133
141
|
psbt_shim: {
|
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"description": "Lightning Network client library",
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@alexbosworth/node-fetch": "2.6.2",
|
|
34
|
-
"tsd": "0.
|
|
34
|
+
"tsd": "0.29.0",
|
|
35
35
|
"typescript": "5.2.2",
|
|
36
36
|
"ws": "8.13.0"
|
|
37
37
|
},
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"directory": "test/typescript"
|
|
60
60
|
},
|
|
61
61
|
"types": "index.d.ts",
|
|
62
|
-
"version": "9.
|
|
62
|
+
"version": "9.13.0"
|
|
63
63
|
}
|