lightning 9.13.4 → 9.14.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
|
@@ -24,6 +24,8 @@ export type ChannelOpenOptions = {
|
|
|
24
24
|
/** Tokens to Gift To Partner */
|
|
25
25
|
give_tokens?: number;
|
|
26
26
|
inputs?: ChannelOpenOptionsInput[]
|
|
27
|
+
/** Allow Peer to Have Minimal Reserve Bool */
|
|
28
|
+
is_allowing_minimal_reserve?: boolean;
|
|
27
29
|
/** Use Maximal Chain Funds For Local Funding Bool */
|
|
28
30
|
is_max_funding?: boolean;
|
|
29
31
|
/** Channel is Private */
|
|
@@ -11,6 +11,7 @@ const errMemoLength = /^provided memo \(.*\) is of length \d*, exceeds (\d*)$/;
|
|
|
11
11
|
const {isArray} = Array;
|
|
12
12
|
const minChannelTokens = 20000;
|
|
13
13
|
const method = 'openChannel';
|
|
14
|
+
const reserve = isDust => isDust ? 354 : undefined;
|
|
14
15
|
const simplifiedTaprootChannelType = 'SIMPLE_TAPROOT';
|
|
15
16
|
const type = 'default';
|
|
16
17
|
|
|
@@ -28,6 +29,8 @@ const type = 'default';
|
|
|
28
29
|
`--protocol.option-scid-alias` and `--protocol.zero-conf` set on both sides
|
|
29
30
|
as well as a channel open request listener to accept the trusted funding.
|
|
30
31
|
|
|
32
|
+
`is_allowing_minimal_reserve` is not supported on LND 0.15.0 and below
|
|
33
|
+
|
|
31
34
|
`base_fee_mtokens` is not supported on LND 0.15.5 and below
|
|
32
35
|
`fee_rate` is not supported on LND 0.15.5 and below
|
|
33
36
|
|
|
@@ -51,6 +54,7 @@ const type = 'default';
|
|
|
51
54
|
transaction_id: <Fund With Unspent Transaction Id Hex String>
|
|
52
55
|
transaction_vout: <Fund With Unspent Transaction Output Index Number>
|
|
53
56
|
}]
|
|
57
|
+
[is_allowing_minimal_reserve]: <Allow Peer to Have Minimal Reserve Bool>
|
|
54
58
|
[is_max_funding]: <Use Maximal Chain Funds For Local Funding Bool>
|
|
55
59
|
[is_private]: <Channel is Private Bool> // Defaults to false
|
|
56
60
|
[is_simplified_taproot]: <Channel is Simplified Taproot Type Bool>
|
|
@@ -157,6 +161,7 @@ module.exports = (args, cbk) => {
|
|
|
157
161
|
node_pubkey: Buffer.from(args.partner_public_key, 'hex'),
|
|
158
162
|
outpoints: outpoints || undefined,
|
|
159
163
|
private: !!args.is_private,
|
|
164
|
+
remote_chan_reserve_sat: reserve(!!args.is_allowing_minimal_reserve),
|
|
160
165
|
remote_csv_delay: args.partner_csv_delay || undefined,
|
|
161
166
|
spend_unconfirmed: !minConfs,
|
|
162
167
|
use_base_fee: args.base_fee_mtokens !== undefined,
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"@grpc/grpc-js": "1.9.4",
|
|
11
11
|
"@grpc/proto-loader": "0.7.10",
|
|
12
12
|
"@types/express": "4.17.18",
|
|
13
|
-
"@types/node": "20.7.
|
|
13
|
+
"@types/node": "20.7.1",
|
|
14
14
|
"@types/request": "2.48.9",
|
|
15
15
|
"@types/ws": "8.5.6",
|
|
16
16
|
"async": "3.2.4",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"directory": "test/typescript"
|
|
60
60
|
},
|
|
61
61
|
"types": "index.d.ts",
|
|
62
|
-
"version": "9.
|
|
62
|
+
"version": "9.14.0"
|
|
63
63
|
}
|