lightning 10.26.0 → 10.26.1

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
@@ -1,5 +1,9 @@
1
1
  # Versions
2
2
 
3
+ ## 10.26.1
4
+
5
+ - Add support for LND 0.19.2
6
+
3
7
  ## 10.26.0
4
8
 
5
9
  - `openChannels` add `is_allowing_minimal_reserve` to allow low peer reserve
@@ -1381,6 +1381,13 @@ message HTLC {
1381
1381
 
1382
1382
  // Index identifying the htlc on the forwarding channel.
1383
1383
  uint64 forwarding_htlc_index = 7;
1384
+
1385
+ /*
1386
+ Whether the HTLC is locked in. An HTLC is considered locked in when the
1387
+ remote party has sent us the `revoke_and_ack` to irrevocably commit this
1388
+ HTLC.
1389
+ */
1390
+ bool locked_in = 8;
1384
1391
  }
1385
1392
 
1386
1393
  enum CommitmentType {
@@ -1751,6 +1758,10 @@ message ChannelCloseSummary {
1751
1758
 
1752
1759
  // The confirmed SCID for a zero-conf channel.
1753
1760
  uint64 zero_conf_confirmed_scid = 15 [jstype = JS_STRING];
1761
+
1762
+ // The TLV encoded custom channel data records for this output, which might
1763
+ // be set for custom channels.
1764
+ bytes custom_channel_data = 16;
1754
1765
  }
1755
1766
 
1756
1767
  enum ResolutionType {
@@ -2001,8 +2012,8 @@ message GetInfoResponse {
2001
2012
  bool synced_to_graph = 18;
2002
2013
 
2003
2014
  /*
2004
- Whether the current node is connected to testnet. This field is
2005
- deprecated and the network field should be used instead
2015
+ Whether the current node is connected to testnet or testnet4. This field is
2016
+ deprecated and the network field should be used instead.
2006
2017
  */
2007
2018
  bool testnet = 10 [deprecated = true];
2008
2019
 
@@ -2063,13 +2074,6 @@ message Chain {
2063
2074
  string network = 2;
2064
2075
  }
2065
2076
 
2066
- message ConfirmationUpdate {
2067
- bytes block_sha = 1;
2068
- int32 block_height = 2;
2069
-
2070
- uint32 num_confs_left = 3;
2071
- }
2072
-
2073
2077
  message ChannelOpenUpdate {
2074
2078
  ChannelPoint channel_point = 1;
2075
2079
  }
@@ -2167,6 +2171,8 @@ message CloseStatusUpdate {
2167
2171
  message PendingUpdate {
2168
2172
  bytes txid = 1;
2169
2173
  uint32 output_index = 2;
2174
+ int64 fee_per_vbyte = 3;
2175
+ bool local_close_tx = 4;
2170
2176
  }
2171
2177
 
2172
2178
  message InstantUpdate {
@@ -2967,6 +2973,7 @@ message ChannelEventUpdate {
2967
2973
  ChannelPoint inactive_channel = 4;
2968
2974
  PendingUpdate pending_open_channel = 6;
2969
2975
  ChannelPoint fully_resolved_channel = 7;
2976
+ ChannelPoint channel_funding_timeout = 8;
2970
2977
  }
2971
2978
 
2972
2979
  enum UpdateType {
@@ -2976,6 +2983,7 @@ message ChannelEventUpdate {
2976
2983
  INACTIVE_CHANNEL = 3;
2977
2984
  PENDING_OPEN_CHANNEL = 4;
2978
2985
  FULLY_RESOLVED_CHANNEL = 5;
2986
+ CHANNEL_FUNDING_TIMEOUT = 6;
2979
2987
  }
2980
2988
 
2981
2989
  UpdateType type = 5;
@@ -3150,10 +3158,10 @@ message QueryRoutesRequest {
3150
3158
  map<uint64, bytes> dest_custom_records = 13;
3151
3159
 
3152
3160
  /*
3153
- The channel id of the channel that must be taken to the first hop. If zero,
3154
- any channel may be used.
3161
+ Deprecated, use outgoing_chan_ids. The channel id of the channel that must
3162
+ be taken to the first hop. If zero, any channel may be used.
3155
3163
  */
3156
- uint64 outgoing_chan_id = 14 [jstype = JS_STRING];
3164
+ uint64 outgoing_chan_id = 14 [jstype = JS_STRING, deprecated = true];
3157
3165
 
3158
3166
  /*
3159
3167
  The pubkey of the last hop of the route. If empty, any hop may be used.
@@ -3188,6 +3196,12 @@ message QueryRoutesRequest {
3188
3196
  only, to 1 to optimize for reliability only or a value inbetween for a mix.
3189
3197
  */
3190
3198
  double time_pref = 18;
3199
+
3200
+ /*
3201
+ The channel ids of the channels allowed for the first hop. If empty, any
3202
+ channel may be used.
3203
+ */
3204
+ repeated uint64 outgoing_chan_ids = 20;
3191
3205
  }
3192
3206
 
3193
3207
  message NodePair {
@@ -3408,6 +3422,10 @@ message NodeInfoRequest {
3408
3422
 
3409
3423
  // If true, will include all known channels associated with the node.
3410
3424
  bool include_channels = 2;
3425
+
3426
+ // If true, will include announcements' signatures into ChannelEdge.
3427
+ // Depends on include_channels.
3428
+ bool include_auth_proof = 3;
3411
3429
  }
3412
3430
 
3413
3431
  message NodeInfo {
@@ -3461,13 +3479,39 @@ message RoutingPolicy {
3461
3479
  uint64 max_htlc_msat = 6;
3462
3480
  uint32 last_update = 7;
3463
3481
 
3464
- // Custom channel update tlv records.
3482
+ // Custom channel update tlv records. These are customized fields that are
3483
+ // not defined by LND and cannot be extracted.
3465
3484
  map<uint64, bytes> custom_records = 8;
3466
3485
 
3467
3486
  int32 inbound_fee_base_msat = 9;
3468
3487
  int32 inbound_fee_rate_milli_msat = 10;
3469
3488
  }
3470
3489
 
3490
+ /*
3491
+ ChannelAuthProof is the authentication proof (the signature portion) for a
3492
+ channel. Using the four signatures contained in the struct, and some
3493
+ auxiliary knowledge (the funding script, node identities, and outpoint) nodes
3494
+ on the network are able to validate the authenticity and existence of a
3495
+ channel.
3496
+ */
3497
+ message ChannelAuthProof {
3498
+ // node_sig1 are the raw bytes of the first node signature encoded
3499
+ // in DER format.
3500
+ bytes node_sig1 = 1;
3501
+
3502
+ // bitcoin_sig1 are the raw bytes of the first bitcoin signature of the
3503
+ // MultiSigKey key of the channel encoded in DER format.
3504
+ bytes bitcoin_sig1 = 2;
3505
+
3506
+ // node_sig2 are the raw bytes of the second node signature encoded
3507
+ // in DER format.
3508
+ bytes node_sig2 = 3;
3509
+
3510
+ // bitcoin_sig2 are the raw bytes of the second bitcoin signature of the
3511
+ // MultiSigKey key of the channel encoded in DER format.
3512
+ bytes bitcoin_sig2 = 4;
3513
+ }
3514
+
3471
3515
  /*
3472
3516
  A fully authenticated channel along with all its unique attributes.
3473
3517
  Once an authenticated channel announcement has been processed on the network,
@@ -3496,6 +3540,13 @@ message ChannelEdge {
3496
3540
 
3497
3541
  // Custom channel announcement tlv records.
3498
3542
  map<uint64, bytes> custom_records = 9;
3543
+
3544
+ // Authentication proof for this channel. This proof contains a set of
3545
+ // signatures binding four identities, which attests to the legitimacy of
3546
+ // the advertised channel. This only is available for advertised channels.
3547
+ // This field is not filled by default. Pass include_auth_proof flag to
3548
+ // DescribeGraph, GetNodeInfo or GetChanInfo to get this data.
3549
+ ChannelAuthProof auth_proof = 10;
3499
3550
  }
3500
3551
 
3501
3552
  message ChannelGraphRequest {
@@ -3505,6 +3556,9 @@ message ChannelGraphRequest {
3505
3556
  channels, and public channels that are not yet announced to the network.
3506
3557
  */
3507
3558
  bool include_unannounced = 1;
3559
+
3560
+ // If true, will include announcements' signatures into ChannelEdge.
3561
+ bool include_auth_proof = 2;
3508
3562
  }
3509
3563
 
3510
3564
  // Returns a new instance of the directed channel graph.
@@ -3556,6 +3610,9 @@ message ChanInfoRequest {
3556
3610
  // The channel point of the channel in format funding_txid:output_index. If
3557
3611
  // chan_id is specified, this field is ignored.
3558
3612
  string chan_point = 2;
3613
+
3614
+ // If true, will include announcements' signatures into ChannelEdge.
3615
+ bool include_auth_proof = 3;
3559
3616
  }
3560
3617
 
3561
3618
  message NetworkInfoRequest {
@@ -3989,6 +4046,12 @@ message BlindedPathConfig {
3989
4046
  blinded paths.
3990
4047
  */
3991
4048
  repeated bytes node_omission_list = 4;
4049
+
4050
+ /*
4051
+ The chained channels list specified via channel id (separated by commas),
4052
+ starting from a channel owned by the receiver node.
4053
+ */
4054
+ repeated uint64 incoming_channel_list = 5;
3992
4055
  }
3993
4056
 
3994
4057
  enum InvoiceHTLCState {
@@ -4652,6 +4715,14 @@ message ForwardingHistoryRequest {
4652
4715
  // Informs the server if the peer alias should be looked up for each
4653
4716
  // forwarding event.
4654
4717
  bool peer_alias_lookup = 5;
4718
+
4719
+ // List of incoming channel ids to filter htlcs received from a
4720
+ // particular channel
4721
+ repeated uint64 incoming_chan_ids = 6;
4722
+
4723
+ // List of outgoing channel ids to filter htlcs being forwarded to a
4724
+ // particular channel
4725
+ repeated uint64 outgoing_chan_ids = 7;
4655
4726
  }
4656
4727
  message ForwardingEvent {
4657
4728
  // Timestamp is the time (unix epoch offset) that this circuit was
@@ -4697,6 +4768,14 @@ message ForwardingEvent {
4697
4768
  // The peer alias of the outgoing channel.
4698
4769
  string peer_alias_out = 13;
4699
4770
 
4771
+ // The ID of the incoming HTLC in the payment circuit. This field is
4772
+ // optional and is unset for forwarding events happened before v0.20.
4773
+ optional uint64 incoming_htlc_id = 14;
4774
+
4775
+ // The ID of the outgoing HTLC in the payment circuit. This field is
4776
+ // optional and may be unset for legacy forwarding events.
4777
+ optional uint64 outgoing_htlc_id = 15;
4778
+
4700
4779
  // TODO(roasbeef): add settlement latency?
4701
4780
  // * use FPE on the chan id?
4702
4781
  // * also list failures?
@@ -5115,6 +5194,22 @@ message RPCMiddlewareRequest {
5115
5194
  intercept message.
5116
5195
  */
5117
5196
  uint64 msg_id = 7;
5197
+
5198
+ /*
5199
+ The metadata pairs that were sent along with the original gRPC request via
5200
+ the golang context.Context using explicit [gRPC
5201
+ metadata](https://grpc.io/docs/guides/metadata/). Context values are not
5202
+ propagated via gRPC and so we send any pairs along explicitly here so that
5203
+ the interceptor can access them.
5204
+ */
5205
+ map<string, MetadataValues> metadata_pairs = 9;
5206
+ }
5207
+
5208
+ message MetadataValues {
5209
+ /*
5210
+ The set of metadata values that correspond to the metadata key.
5211
+ */
5212
+ repeated string values = 1;
5118
5213
  }
5119
5214
 
5120
5215
  message StreamAuth {
@@ -227,10 +227,11 @@ message SendPaymentRequest {
227
227
  string payment_request = 5;
228
228
 
229
229
  /*
230
- An upper limit on the amount of time we should spend when attempting to
231
- fulfill the payment. This is expressed in seconds. If we cannot make a
232
- successful payment within this time frame, an error will be returned.
233
- This field must be non-zero.
230
+ An optional limit, expressed in seconds, on the time to wait before
231
+ attempting the first HTLC. Once HTLCs are in flight, the payment will
232
+ not be aborted until the HTLCs are either settled or failed. If the field
233
+ is not set or is explicitly set to zero, the default value of 60 seconds
234
+ will be applied.
234
235
  */
235
236
  int32 timeout_seconds = 6;
236
237
 
@@ -45,6 +45,7 @@
45
45
  "86114c575c2dff9dff1e1bb4df961c64aea9fc1c": "0.10.4-beta",
46
46
  "8bba79222f439127e46ec3ff7ec7c650e0d88d56": "0.17.4-beta",
47
47
  "96fe51e2e5c2ee0c97909499e0e96a3d3755757e": "0.15.4-beta",
48
+ "a839456493037a6af51cbf16db8be6182d614171": "0.19.2-beta",
48
49
  "aff2ed3a6a118d664049835c325a5b69e977172f": "0.15.2-beta",
49
50
  "b4e7131bdb47531ad2f00ce345ddcdb58935bba5": "0.15.3-beta",
50
51
  "bd0c46b4fcb027af1915bd67a3da70e8ca5c6efe": "0.14.3-beta",
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": "24.0.7",
12
+ "@types/node": "24.0.15",
13
13
  "@types/request": "2.48.12",
14
14
  "@types/ws": "8.18.1",
15
15
  "async": "3.2.6",
@@ -17,7 +17,7 @@
17
17
  "bitcoinjs-lib": "6.1.7",
18
18
  "bn.js": "5.2.2",
19
19
  "bolt07": "1.9.4",
20
- "bolt09": "2.1.0",
20
+ "bolt09": "2.2.0",
21
21
  "ecpair": "3.0.0",
22
22
  "invoices": "4.0.0",
23
23
  "psbt": "4.0.0",
@@ -53,5 +53,5 @@
53
53
  "directory": "test/typescript"
54
54
  },
55
55
  "types": "index.d.ts",
56
- "version": "10.26.0"
56
+ "version": "10.26.1"
57
57
  }