lightning 10.25.2 → 10.26.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
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"51df3e5b1ea2f1f749652cecf26e7471d35aa629": "0.16.0-beta",
|
|
33
33
|
"52bb3f33707b81972c67937c7a89addcdf00991c": "0.10.1-beta",
|
|
34
34
|
"596fd90ef310cd7abbf2251edaae9ba4d5f8a689": "0.13.1-beta",
|
|
35
|
+
"59a86b3b5475276c1e266c10656d13300dc2b5a1": "0.19.1-beta",
|
|
35
36
|
"5c36d96c9cbe8b27c29f9682dcbdab7928ae870f": "0.15.0-beta",
|
|
36
37
|
"6042004edaaa5b3cad0a0808ff23dba4716f7178": "0.14.1-beta",
|
|
37
38
|
"61c34683058f2cc8dc10f49392a0057440d831c4": "0.13.4-beta",
|
|
@@ -17,7 +17,7 @@ const {isArray} = Array;
|
|
|
17
17
|
const isPublicKey = n => /^[0-9A-F]{66}$/i.test(n);
|
|
18
18
|
const makeId = () => randomBytes(32);
|
|
19
19
|
const method = 'openChannel';
|
|
20
|
-
const
|
|
20
|
+
const reserve = isDust => isDust ? 354 : undefined;
|
|
21
21
|
const taproot = 'SIMPLE_TAPROOT';
|
|
22
22
|
const type = 'default';
|
|
23
23
|
|
|
@@ -38,6 +38,8 @@ const type = 'default';
|
|
|
38
38
|
`--protocol.option-scid-alias` and `--protocol.zero-conf` set on both sides
|
|
39
39
|
as well as a channel open request listener to accept the trusted funding.
|
|
40
40
|
|
|
41
|
+
`is_allowing_minimal_reserve` is not supported on LND 0.15.0 and below
|
|
42
|
+
|
|
41
43
|
`base_fee_mtokens` is not supported on LND 0.15.5 and below
|
|
42
44
|
`fee_rate` is not supported on LND 0.15.5 and below
|
|
43
45
|
|
|
@@ -54,6 +56,7 @@ const type = 'default';
|
|
|
54
56
|
[description]: <Immutable Channel Description String>
|
|
55
57
|
[fee_rate]: <Routing Fee Rate In Millitokens Per Million Number>
|
|
56
58
|
[give_tokens]: <Tokens to Gift To Partner Number> // Defaults to zero
|
|
59
|
+
[is_allowing_minimal_reserve]: <Allow Peer to Have Minimal Reserve Bool>
|
|
57
60
|
[is_private]: <Channel is Private Bool> // Defaults to false
|
|
58
61
|
[is_simplified_taproot]: <Channel is Simplified Taproot Type Bool>
|
|
59
62
|
[is_trusted_funding]: <Peer Should Avoid Waiting For Confirmation Bool>
|
|
@@ -112,6 +115,7 @@ module.exports = (args, cbk) => {
|
|
|
112
115
|
id: makeId(),
|
|
113
116
|
cooperative_close_address: channel.cooperative_close_address,
|
|
114
117
|
give_tokens: channel.give_tokens,
|
|
118
|
+
is_allowing_minimal_reserve: channel.is_allowing_minimal_reserve,
|
|
115
119
|
is_private: channel.is_private,
|
|
116
120
|
is_simplified_taproot: channel.is_simplified_taproot,
|
|
117
121
|
is_trusted_funding: channel.is_trusted_funding,
|
|
@@ -129,6 +133,7 @@ module.exports = (args, cbk) => {
|
|
|
129
133
|
const baseType = !!channel.is_trusted_funding ? anchors : undefined;
|
|
130
134
|
let isDone = false;
|
|
131
135
|
const isSelfPublish = !!args.is_avoiding_broadcast;
|
|
136
|
+
const remoteReserve = reserve(!!channel.is_allowing_minimal_reserve);
|
|
132
137
|
|
|
133
138
|
const commit = !!channel.is_simplified_taproot ? taproot : baseType;
|
|
134
139
|
|
|
@@ -149,6 +154,7 @@ module.exports = (args, cbk) => {
|
|
|
149
154
|
node_pubkey: bufferFromHex(channel.partner_public_key),
|
|
150
155
|
private: !!channel.is_private,
|
|
151
156
|
push_sat: channel.give_tokens || undefined,
|
|
157
|
+
remote_chan_reserve_sat: remoteReserve,
|
|
152
158
|
remote_csv_delay: channel.partner_csv_delay || undefined,
|
|
153
159
|
scid_alias: channel.is_trusted_funding && channel.is_private,
|
|
154
160
|
use_base_fee: channel.base_fee_mtokens !== undefined,
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@grpc/grpc-js": "1.13.4",
|
|
11
11
|
"@grpc/proto-loader": "0.7.15",
|
|
12
|
-
"@types/node": "
|
|
12
|
+
"@types/node": "24.0.7",
|
|
13
13
|
"@types/request": "2.48.12",
|
|
14
14
|
"@types/ws": "8.18.1",
|
|
15
15
|
"async": "3.2.6",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"ecpair": "3.0.0",
|
|
22
22
|
"invoices": "4.0.0",
|
|
23
23
|
"psbt": "4.0.0",
|
|
24
|
-
"tiny-secp256k1": "2.2.
|
|
24
|
+
"tiny-secp256k1": "2.2.4",
|
|
25
25
|
"type-fest": "4.41.0"
|
|
26
26
|
},
|
|
27
27
|
"description": "Lightning Network client library",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"directory": "test/typescript"
|
|
54
54
|
},
|
|
55
55
|
"types": "index.d.ts",
|
|
56
|
-
"version": "10.
|
|
56
|
+
"version": "10.26.0"
|
|
57
57
|
}
|
|
@@ -135,7 +135,11 @@ const tests = [
|
|
|
135
135
|
args: {
|
|
136
136
|
channels: [
|
|
137
137
|
{capacity: 1, partner_public_key: nodeKey1},
|
|
138
|
-
{
|
|
138
|
+
{
|
|
139
|
+
capacity: 2,
|
|
140
|
+
is_allowing_minimal_reserve: true,
|
|
141
|
+
partner_public_key: nodeKey2,
|
|
142
|
+
},
|
|
139
143
|
],
|
|
140
144
|
lnd: {
|
|
141
145
|
default: {
|