diff --git a/chanbackup/single_test.go b/chanbackup/single_test.go index f1f805c1435..27f0a463def 100644 --- a/chanbackup/single_test.go +++ b/chanbackup/single_test.go @@ -38,8 +38,9 @@ var ( addr1, _ = net.ResolveTCPAddr("tcp", "10.0.0.2:9000") addr2, _ = net.ResolveTCPAddr("tcp", "10.0.0.3:9000") addr3 = &tor.OnionAddr{ - OnionService: "3g2upl4pq6kufc4m.onion", - Port: 9735, + OnionService: "vww6ybal4bd7szmgncyruucpgfkqahzd" + + "di37ktceo3ah7ngmcopnpyyd.onion", + Port: 9735, } addr4 = &lnwire.DNSAddress{ Hostname: "example.com", diff --git a/channeldb/codec.go b/channeldb/codec.go index e5bab3d5f76..ec2e8051f7e 100644 --- a/channeldb/codec.go +++ b/channeldb/codec.go @@ -189,16 +189,24 @@ func WriteElement(w io.Writer, element interface{}) error { } case net.Addr: - if err := graphdb.SerializeAddr(w, e); err != nil { + // Route through the filter so a stale v2 onion address is + // dropped (with a warning) rather than failing the whole + // write with "unknown onion service length". + filtered := graphdb.FilterSerializableAddrs([]net.Addr{e}) + if len(filtered) == 0 { + return nil + } + if err := graphdb.SerializeAddr(w, filtered[0]); err != nil { return err } case []net.Addr: - if err := WriteElement(w, uint32(len(e))); err != nil { + addrs := graphdb.FilterSerializableAddrs(e) + if err := WriteElement(w, uint32(len(addrs))); err != nil { return err } - for _, addr := range e { + for _, addr := range addrs { if err := graphdb.SerializeAddr(w, addr); err != nil { return err } diff --git a/channeldb/nodes.go b/channeldb/nodes.go index 70f6fad8beb..7165956963f 100644 --- a/channeldb/nodes.go +++ b/channeldb/nodes.go @@ -358,13 +358,14 @@ func serializeLinkNode(w io.Writer, l *LinkNode) error { return err } - numAddrs := uint32(len(l.Addresses)) + addresses := graphdb.FilterSerializableAddrs(l.Addresses) + numAddrs := uint32(len(addresses)) byteOrder.PutUint32(buf[:4], numAddrs) if _, err := w.Write(buf[:4]); err != nil { return err } - for _, addr := range l.Addresses { + for _, addr := range addresses { if err := graphdb.SerializeAddr(w, addr); err != nil { return err } diff --git a/config.go b/config.go index e3d8850e581..bffebc36973 100644 --- a/config.go +++ b/config.go @@ -82,7 +82,6 @@ const ( defaultTorDNSHost = "soa.nodes.lightning.directory" defaultTorDNSPort = 53 defaultTorControlPort = 9051 - defaultTorV2PrivateKeyFilename = "v2_onion_private_key" defaultTorV3PrivateKeyFilename = "v3_onion_private_key" // defaultZMQReadDeadline is the default read deadline to be used for @@ -1239,41 +1238,22 @@ func ValidateConfig(cfg Config, interceptor signal.Interceptor, fileParser, return nil, mkErr(str) } - switch { - case cfg.Tor.V2 && cfg.Tor.V3: - return nil, mkErr("either tor.v2 or tor.v3 can be set, " + - "but not both") - case cfg.DisableListen && (cfg.Tor.V2 || cfg.Tor.V3): + if cfg.DisableListen && cfg.Tor.V3 { return nil, mkErr("listening must be enabled when enabling " + "inbound connections over Tor") } - if cfg.Tor.PrivateKeyPath == "" { - switch { - case cfg.Tor.V2: - cfg.Tor.PrivateKeyPath = filepath.Join( - lndDir, defaultTorV2PrivateKeyFilename, - ) - case cfg.Tor.V3: - cfg.Tor.PrivateKeyPath = filepath.Join( - lndDir, defaultTorV3PrivateKeyFilename, - ) - } + if cfg.Tor.PrivateKeyPath == "" && cfg.Tor.V3 { + cfg.Tor.PrivateKeyPath = filepath.Join( + lndDir, defaultTorV3PrivateKeyFilename, + ) } - if cfg.Tor.WatchtowerKeyPath == "" { - switch { - case cfg.Tor.V2: - cfg.Tor.WatchtowerKeyPath = filepath.Join( - cfg.Watchtower.TowerDir, - defaultTorV2PrivateKeyFilename, - ) - case cfg.Tor.V3: - cfg.Tor.WatchtowerKeyPath = filepath.Join( - cfg.Watchtower.TowerDir, - defaultTorV3PrivateKeyFilename, - ) - } + if cfg.Tor.WatchtowerKeyPath == "" && cfg.Tor.V3 { + cfg.Tor.WatchtowerKeyPath = filepath.Join( + cfg.Watchtower.TowerDir, + defaultTorV3PrivateKeyFilename, + ) } // Set up the network-related functions that will be used throughout diff --git a/config_test.go b/config_test.go index e287b59db63..0233a27f185 100644 --- a/config_test.go +++ b/config_test.go @@ -26,14 +26,12 @@ func TestConfigToFlatMap(t *testing.T) { // Set deprecated fields. cfg.Bitcoin.Active = true - cfg.Tor.V2 = true result, deprecated, err := configToFlatMap(cfg) require.NoError(t, err) // Check that the deprecated option has been parsed out. require.Contains(t, deprecated, "bitcoin.active") - require.Contains(t, deprecated, "tor.v2") // Pick a couple of random values to check. require.Equal(t, DefaultLndDir, result["lnddir"]) diff --git a/docs/configuring_tor.md b/docs/configuring_tor.md index 20584124cb9..8b166c6754e 100644 --- a/docs/configuring_tor.md +++ b/docs/configuring_tor.md @@ -15,13 +15,13 @@ by using Tor for anonymous networking to establish connections. With widespread usage of Onion Services within the network, concerns about the difficulty of proper NAT traversal are alleviated, as usage of onion services -allows nodes to accept inbound connections even if they're behind a NAT. At the -time of writing this documentation, `lnd` supports both types of onion services: -v2 and v3. +allows nodes to accept inbound connections even if they're behind a NAT. `lnd` +supports v3 onion services only; legacy v2 onion service support has been +removed. -Before following the remainder of this documentation, you should ensure that you -already have Tor installed locally. **If you want to run v3 Onion Services, make -sure that you run at least version 0.3.3.6.** +Before following the remainder of this documentation, you should ensure that +you already have Tor installed locally. **Make sure that you run at least +version 0.3.3.6 of Tor in order to use v3 Onion Services.** Official instructions to install the latest release of Tor can be found [here](https://www.torproject.org/docs/tor-doc-unix.html.en). @@ -81,7 +81,6 @@ Tor: --tor.control= The host:port that Tor is listening on for Tor control connections (default: localhost:9051) --tor.targetipaddress= IP address that Tor should use as the target of the hidden service --tor.password= The password used to arrive at the HashedControlPassword for the control port. If provided, the HASHEDPASSWORD authentication method will be used instead of the SAFECOOKIE one. - --tor.v2 Automatically set up a v2 onion service to listen for inbound connections --tor.v3 Automatically set up a v3 onion service to listen for inbound connections --tor.privatekeypath= The path to the private key of the onion service being created ``` @@ -103,11 +102,8 @@ service. A path to save the onion service's private key can be specified with the `--tor.privatekeypath` flag. Most of these arguments have defaults, so as long as they apply to you, routing -all outbound and inbound connections through Tor can simply be done with either -v2 or v3 onion services: -```shell -$ ./lnd --tor.active --tor.v2 -``` +all outbound and inbound connections through Tor can simply be done with v3 +onion services: ```shell $ ./lnd --tor.active --tor.v3 ``` @@ -159,15 +155,13 @@ authentication methods (arguably, from most to least secure): ## Listening for Inbound Connections In order to listen for inbound connections through Tor, an onion service must be -created. There are two types of onion services: v2 and v3. v3 onion services -are the latest generation of onion services, and they provide a number of -advantages over the legacy v2 onion services. To learn more about these -benefits, see [Intro to Next Gen Onion Services](https://trac.torproject.org/projects/tor/wiki/doc/NextGenOnions). +created. `lnd` supports v3 onion services, the latest generation of onion +services. To learn more about these, see +[Intro to Next Gen Onion Services](https://trac.torproject.org/projects/tor/wiki/doc/NextGenOnions). -Both types can be created and used automatically by `lnd`. Specifying which type -should be used can easily be done by either using the `tor.v2` or `tor.v3` flag. -To prevent unintentional leaking of identifying information, it is also necessary -to add the flag `listen=localhost`. +v3 onion services are created and used automatically by `lnd` via the `tor.v3` +flag. To prevent unintentional leaking of identifying information, it is also +necessary to add the flag `listen=localhost`. For example, v3 onion services can be used with the following flags: ```shell @@ -176,9 +170,8 @@ $ ./lnd --tor.active --tor.v3 --listen=localhost This will automatically create a hidden service for your node to use to listen for inbound connections and advertise itself to the network. The onion service's -private key is saved to a file named `v2_onion_private_key` or -`v3_onion_private_key` depending on the type of onion service used in `lnd`'s -base directory. This will allow `lnd` to recreate the same hidden service upon +private key is saved to a file named `v3_onion_private_key` in `lnd`'s base +directory. This will allow `lnd` to recreate the same hidden service upon restart. If you wish to generate a new onion service, you can simply delete this file. The path to this private key file can also be modified with the `--tor.privatekeypath` argument. diff --git a/docs/release-notes/release-notes-0.21.0.md b/docs/release-notes/release-notes-0.21.0.md index ad6147ca3a4..878f536a3f5 100644 --- a/docs/release-notes/release-notes-0.21.0.md +++ b/docs/release-notes/release-notes-0.21.0.md @@ -252,6 +252,46 @@ `lncli getdebuginfo` and `lncli encryptdebugpackage` commands similarly require the `--include_log` flag to include logs in the output. +* [Removed the deprecated payment and tracking + RPCs](https://github.com/lightningnetwork/lnd/pull/10795) that were + [announced for removal in 0.21](https://github.com/lightningnetwork/lnd/blob/master/docs/release-notes/release-notes-0.20.0.md#deprecations) + via the 0.20 release notes. Callers must migrate to the V2 equivalents: + + | Removed RPC | Replacement | + |-------------|-------------| + | `lnrpc.SendPayment` (streaming) | `routerrpc.SendPaymentV2` | + | `lnrpc.SendPaymentSync` | `routerrpc.SendPaymentV2` | + | `lnrpc.SendToRoute` (streaming) | `routerrpc.SendToRouteV2` | + | `lnrpc.SendToRouteSync` | `routerrpc.SendToRouteV2` | + | `routerrpc.SendPayment` (streaming) | `routerrpc.SendPaymentV2` | + | `routerrpc.SendToRoute` | `routerrpc.SendToRouteV2` | + | `routerrpc.TrackPayment` (streaming) | `routerrpc.TrackPaymentV2` | + + This also removes the corresponding REST routes + `POST /v1/channels/transaction-stream`, `POST /v1/channels/transactions`, + and `POST /v1/channels/transactions/route`. The orphan + `routerrpc.SendToRouteResponse` message (only used by the removed + `routerrpc.SendToRoute` RPC) is also dropped. + +* [Removed the deprecated `outgoing_chan_id` + field](https://github.com/lightningnetwork/lnd/pull/10795) from + `lnrpc.QueryRoutesRequest` and `routerrpc.SendPaymentRequest`. Proto tags + 14 and 8 respectively are now reserved. Callers must use the multi-channel + `outgoing_chan_ids` field introduced in 0.20. + +* [Removed the deprecated `--tor.v2` configuration + flag](https://github.com/lightningnetwork/lnd/pull/10795). Tor v2 onion + services have been obsolete since October 2021 when the Tor network dropped + support for them; only v3 is supported now. Incoming + `NodeAnnouncement` messages still decode successfully, but any v2 onion + addresses they carry are stripped post-decode so they are never relayed + onward or persisted to the graph DB. The wire/storage encoders for v2 + onion addresses (in + `lnwire`, `graph/db`) and the `tor.OnionHostToFakeIP` helper have been + removed. The `lnwire` and `graph/db` v2 decoders themselves are + retained so legacy graph databases (and the existing KV-to-SQL graph + migration that re-parses opaque address payloads) continue to load. + ## Performance Improvements * Let the [channel graph cache be populated @@ -331,7 +371,7 @@ ### ⚠️ **Warning:** Deprecated fields in `lnrpc.Hop` will be removed in release version **0.22** - The following deprecated fields in the [`lnrpc.Hop`](https://lightning.engineering/api-docs/api/lnd/lightning/send-to-route-sync/#lnrpchop) + The following deprecated fields in the [`lnrpc.Hop`](https://lightning.engineering/api-docs/api/lnd/lightning/query-routes/#lnrpchop) message will be removed: | Field | Deprecated Since | Replacement | diff --git a/docs/rest/websockets.md b/docs/rest/websockets.md index ff4d4a3c3c1..ec328ca7ffa 100644 --- a/docs/rest/websockets.md +++ b/docs/rest/websockets.md @@ -130,8 +130,8 @@ ws.on('open', function() { // This empty message will be ignored by the channel acceptor though, this // is just for telling the grpc-gateway library that it can forward the // request to the gRPC interface now. If this were an RPC where the client - // always sends the first message (for example the streaming payment RPC - // /v1/channels/transaction-stream), we'd simply send the first "real" + // always sends the first message (for example the HTLC interceptor RPC + // /v2/router/htlcinterceptor), we'd simply send the first "real" // message here when needed. ws.send('{}'); }); diff --git a/graph/db/addr.go b/graph/db/addr.go index 836d516b000..658f040c639 100644 --- a/graph/db/addr.go +++ b/graph/db/addr.go @@ -104,11 +104,6 @@ func encodeOnionAddr(w io.Writer, addr *tor.OnionAddr) error { var suffixIndex int hostLen := len(addr.OnionService) switch hostLen { - case tor.V2Len: - if _, err := w.Write([]byte{byte(v2OnionAddr)}); err != nil { - return err - } - suffixIndex = tor.V2Len - tor.OnionSuffixLen case tor.V3Len: if _, err := w.Write([]byte{byte(v3OnionAddr)}); err != nil { return err @@ -131,12 +126,7 @@ func encodeOnionAddr(w io.Writer, addr *tor.OnionAddr) error { } // Sanity check the decoded length. - switch { - case hostLen == tor.V2Len && len(host) != tor.V2DecodedLen: - return fmt.Errorf("onion service %v decoded to invalid host %x", - addr.OnionService, host) - - case hostLen == tor.V3Len && len(host) != tor.V3DecodedLen: + if hostLen == tor.V3Len && len(host) != tor.V3DecodedLen { return fmt.Errorf("onion service %v decoded to invalid host %x", addr.OnionService, host) } @@ -322,3 +312,26 @@ func SerializeAddr(w io.Writer, address net.Addr) error { return ErrUnknownAddressType } } + +// FilterSerializableAddrs returns the subset of addresses that this package +// can currently serialize. Legacy Tor v2 onion addresses are dropped (with a +// warning) since lnd no longer persists them; pre-existing v2 addresses on +// disk can still be deserialized, but any rewrite path must call this helper +// before counting and encoding the address slice so that node updates do not +// fail when a stale v2 address is present. +func FilterSerializableAddrs(addrs []net.Addr) []net.Addr { + out := make([]net.Addr, 0, len(addrs)) + for _, a := range addrs { + onion, ok := a.(*tor.OnionAddr) + if ok && len(onion.OnionService) == tor.V2Len { + log.Warnf("Dropping legacy v2 onion address %v "+ + "during serialization; v2 is no longer "+ + "supported", onion) + + continue + } + out = append(out, a) + } + + return out +} diff --git a/graph/db/addr_test.go b/graph/db/addr_test.go index 4e0e53d721a..b4263fa3e5b 100644 --- a/graph/db/addr_test.go +++ b/graph/db/addr_test.go @@ -29,11 +29,6 @@ var ( Port: 65535, } - testOnionV2Addr = &tor.OnionAddr{ - OnionService: "3g2upl4pq6kufc4m.onion", - Port: 9735, - } - testOnionV3Addr = &tor.OnionAddr{ OnionService: "vww6ybal4bd7szmgncyruucpgfkqahzddi37ktceo3ah7ngmcopnpyyd.onion", //nolint:ll Port: 80, @@ -63,9 +58,6 @@ var addrTests = []struct { { expAddr: testIPV6Addr, }, - { - expAddr: testOnionV2Addr, - }, { expAddr: testOnionV3Addr, }, diff --git a/graph/db/graph_test.go b/graph/db/graph_test.go index 6521a849e51..c280d6c3efd 100644 --- a/graph/db/graph_test.go +++ b/graph/db/graph_test.go @@ -400,8 +400,7 @@ func testNodeInsertionAndDeletion(t *testing.T, v lnwire.GossipVersion) { // Add 2 IPV6 addresses. testIPV6Addr, anotherAddr, - // Add one v2 and one v3 onion address. - testOnionV2Addr, + // Add a v3 onion address. testOnionV3Addr, // Add a DNS host address. testDNSAddr, @@ -439,7 +438,6 @@ func testNodeInsertionAndDeletion(t *testing.T, v lnwire.GossipVersion) { // Finally, update the set to only contain the Tor addresses. expAddrs = []net.Addr{ - testOnionV2Addr, testOnionV3Addr, } node = nodeWithAddrs(expAddrs) diff --git a/graph/db/kv_store.go b/graph/db/kv_store.go index ed6d0e07e53..547814de343 100644 --- a/graph/db/kv_store.go +++ b/graph/db/kv_store.go @@ -4699,13 +4699,14 @@ func putLightningNode(nodeBucket, aliasBucket, updateIndex kvdb.RwBucket, return err } - numAddresses := uint16(len(node.Addresses)) + addresses := FilterSerializableAddrs(node.Addresses) + numAddresses := uint16(len(addresses)) byteOrder.PutUint16(scratch[:2], numAddresses) if _, err := b.Write(scratch[:2]); err != nil { return err } - for _, address := range node.Addresses { + for _, address := range addresses { if err := SerializeAddr(&b, address); err != nil { return err } diff --git a/graph/db/sql_store.go b/graph/db/sql_store.go index f4824d75e1b..40189c2c8ac 100644 --- a/graph/db/sql_store.go +++ b/graph/db/sql_store.go @@ -4821,7 +4821,6 @@ func collectAddressRecords(addresses []net.Addr) (map[dbAddressType][]string, newAddresses := map[dbAddressType][]string{ addressTypeIPv4: {}, addressTypeIPv6: {}, - addressTypeTorV2: {}, addressTypeTorV3: {}, addressTypeDNS: {}, addressTypeOpaque: {}, @@ -4844,10 +4843,12 @@ func collectAddressRecords(addresses []net.Addr) (map[dbAddressType][]string, case *tor.OnionAddr: switch len(addr.OnionService) { - case tor.V2Len: - addAddr(addressTypeTorV2, addr) case tor.V3Len: addAddr(addressTypeTorV3, addr) + case tor.V2Len: + log.Warnf("Dropping legacy v2 onion address "+ + "%v during upsert; v2 is no longer "+ + "supported", addr) default: return nil, fmt.Errorf("invalid length for " + "a tor address") diff --git a/itest/lnd_channel_graph_test.go b/itest/lnd_channel_graph_test.go index f8d63c1d5ca..52612b81308 100644 --- a/itest/lnd_channel_graph_test.go +++ b/itest/lnd_channel_graph_test.go @@ -378,7 +378,6 @@ func testNodeAnnouncement(ht *lntest.HarnessTest) { advertisedAddrs := []string{ "192.168.1.1:8333", "[2001:db8:85a3:8d3:1319:8a2e:370:7348]:8337", - "bkb6azqggsaiskzi.onion:9735", "fomvuglh6h6vcag73xo5t5gv56ombih3zr2xvplkpbfd7wrog4swj" + "wid.onion:1234", } @@ -435,7 +434,6 @@ func testUpdateNodeAnnouncement(ht *lntest.HarnessTest) { extraAddrs := []string{ "192.168.1.1:8333", "[2001:db8:85a3:8d3:1319:8a2e:370:7348]:8337", - "bkb6azqggsaiskzi.onion:9735", "fomvuglh6h6vcag73xo5t5gv56ombih3zr2xvplkpbfd7wrog4swj" + "wid.onion:1234", } diff --git a/itest/lnd_channel_policy_test.go b/itest/lnd_channel_policy_test.go index 7def317ba37..67f55d85b67 100644 --- a/itest/lnd_channel_policy_test.go +++ b/itest/lnd_channel_policy_test.go @@ -170,29 +170,28 @@ func testUpdateChannelPolicy(ht *lntest.HarnessTest) { routes.Routes[0].Hops[1].AmtToForward = amtSat routes.Routes[0].Hops[1].AmtToForwardMsat = amtMSat - // Send the payment with the modified value. - alicePayStream := alice.RPC.SendToRoute() - - sendReq := &lnrpc.SendToRouteRequest{ + // Send the payment with the modified value and expect a failure because + // the amount is below the minimum HTLC size. + sendReq := &routerrpc.SendToRouteRequest{ PaymentHash: resp.RHash, Route: routes.Routes[0], } - err := alicePayStream.Send(sendReq) - require.NoError(ht, err, "unable to send payment") - - // We expect this payment to fail, and that the min_htlc value is - // communicated back to us, since the attempted HTLC value was too low. - sendResp, err := ht.ReceiveSendToRouteUpdate(alicePayStream) - require.NoError(ht, err, "unable to receive payment stream") - - // Expected as part of the error message. - substrs := []string{ - "AmountBelowMinimum", - "HtlcMinimumMsat: (lnwire.MilliSatoshi) 5000 mSAT", - } - for _, s := range substrs { - require.Contains(ht, sendResp.PaymentError, s) - } + sendResp := alice.RPC.SendToRouteV2(sendReq) + require.NotNil(ht, sendResp.Failure, "expected payment failure") + require.Equal( + ht, lnrpc.Failure_AMOUNT_BELOW_MINIMUM, sendResp.Failure.Code, + ) + + // The failure should carry the advertised min HTLC value so that + // callers can react to the channel policy. + require.NotNil( + ht, sendResp.Failure.ChannelUpdate, + "expected channel update in failure", + ) + require.Equal( + ht, uint64(customMinHtlc), + sendResp.Failure.ChannelUpdate.HtlcMinimumMsat, + ) // Make sure sending using the original value succeeds. payAmt = btcutil.Amount(5) @@ -213,17 +212,12 @@ func testUpdateChannelPolicy(ht *lntest.HarnessTest) { TotalAmtMsat: amtMSat, } - sendReq = &lnrpc.SendToRouteRequest{ + sendReq = &routerrpc.SendToRouteRequest{ PaymentHash: resp.RHash, Route: route, } - - err = alicePayStream.Send(sendReq) - require.NoError(ht, err, "unable to send payment") - - sendResp, err = ht.ReceiveSendToRouteUpdate(alicePayStream) - require.NoError(ht, err, "unable to receive payment stream") - require.Empty(ht, sendResp.PaymentError, "expected payment to succeed") + sendResp = alice.RPC.SendToRouteV2(sendReq) + require.Nil(ht, sendResp.Failure, "expected payment to succeed") // With our little cluster set up, we'll update the outbound fees and // the max htlc size for the Bob side of the Alice->Bob channel, and diff --git a/itest/lnd_routing_test.go b/itest/lnd_routing_test.go index 9679f887e45..b68f7967d91 100644 --- a/itest/lnd_routing_test.go +++ b/itest/lnd_routing_test.go @@ -22,41 +22,20 @@ import ( var sendToRouteTestCases = []*lntest.TestCase{ { - Name: "single hop with sync", - TestFunc: func(ht *lntest.HarnessTest) { - // useStream: false, routerrpc: false. - testSingleHopSendToRouteCase(ht, false, false) - }, - }, - { - Name: "single hop with stream", - TestFunc: func(ht *lntest.HarnessTest) { - // useStream: true, routerrpc: false. - testSingleHopSendToRouteCase(ht, true, false) - }, - }, - { - Name: "single hop with v2", - TestFunc: func(ht *lntest.HarnessTest) { - // useStream: false, routerrpc: true. - testSingleHopSendToRouteCase(ht, false, true) - }, + Name: "single hop", + TestFunc: testSingleHopSendToRoute, }, } -// testSingleHopSendToRouteCase tests that payments are properly processed -// through a provided route with a single hop. We'll create the following -// network topology: +// testSingleHopSendToRoute tests that payments are properly processed through +// a provided route with a single hop. We'll create the following network +// topology: // // Carol --100k--> Dave // // We'll query the daemon for routes from Carol to Dave and then send payments -// by feeding the route back into the various SendToRoute RPC methods. Here we -// test all three SendToRoute endpoints, forcing each to perform both a regular -// payment and an MPP payment. -func testSingleHopSendToRouteCase(ht *lntest.HarnessTest, - useStream, useRPC bool) { - +// by feeding the route back into SendToRouteV2. +func testSingleHopSendToRoute(ht *lntest.HarnessTest) { const chanAmt = btcutil.Amount(100000) const paymentAmtSat = 1000 const numPayments = 5 @@ -97,8 +76,6 @@ func testSingleHopSendToRouteCase(ht *lntest.HarnessTest, ht.WaitForNodeBlockHeight(carol, minerHeight) ht.WaitForNodeBlockHeight(dave, minerHeight) - // Query for routes to pay from Carol to Dave using the default CLTV - // config. routesReq := &lnrpc.QueryRoutesRequest{ PubKey: dave.PubKeyStr, Amt: paymentAmtSat, @@ -108,82 +85,28 @@ func testSingleHopSendToRouteCase(ht *lntest.HarnessTest, // There should only be one route to try, so take the first item. r := routes.Routes[0] - // Construct a closure that will set MPP fields on the route, which - // allows us to test MPP payments. - setMPPFields := func(i int) { + for i, rHash := range rHashes { + // Set the MPP record on the last hop with the payment addr from + // the corresponding invoice so the receiver can accept the + // HTLC. hop := r.Hops[len(r.Hops)-1] hop.TlvPayload = true hop.MppRecord = &lnrpc.MPPRecord{ PaymentAddr: payAddrs[i], TotalAmtMsat: paymentAmtSat * 1000, } - } - // Construct closures for each of the payment types covered: - // - main rpc server sync - // - main rpc server streaming - // - routerrpc server sync - sendToRouteSync := func() { - for i, rHash := range rHashes { - setMPPFields(i) - - sendReq := &lnrpc.SendToRouteRequest{ - PaymentHash: rHash, - Route: r, - } - resp := carol.RPC.SendToRouteSync(sendReq) - require.Emptyf(ht, resp.PaymentError, - "received payment error from %s: %v", - carol.Name(), resp.PaymentError) - } - } - sendToRouteStream := func() { - alicePayStream := carol.RPC.SendToRoute() - - for i, rHash := range rHashes { - setMPPFields(i) - - sendReq := &lnrpc.SendToRouteRequest{ - PaymentHash: rHash, - Route: routes.Routes[0], - } - err := alicePayStream.Send(sendReq) - require.NoError(ht, err, "unable to send payment") - - resp, err := ht.ReceiveSendToRouteUpdate(alicePayStream) - require.NoError(ht, err, "unable to receive stream") - require.Emptyf(ht, resp.PaymentError, - "received payment error from %s: %v", - carol.Name(), resp.PaymentError) - } - } - sendToRouteRouterRPC := func() { - for i, rHash := range rHashes { - setMPPFields(i) - - sendReq := &routerrpc.SendToRouteRequest{ - PaymentHash: rHash, - Route: r, - } - resp := carol.RPC.SendToRouteV2(sendReq) - require.Nilf(ht, resp.Failure, "received payment "+ - "error from %s", carol.Name()) + // Dispatch the payment along the prepared route and assert that + // no failure was returned. + sendReq := &routerrpc.SendToRouteRequest{ + PaymentHash: rHash, + Route: r, } - } - - // Using Carol as the node as the source, send the payments - // synchronously via the routerrpc's SendToRoute, or via the main RPC - // server's SendToRoute streaming or sync calls. - switch { - case !useRPC && useStream: - sendToRouteStream() - case !useRPC && !useStream: - sendToRouteSync() - case useRPC && !useStream: - sendToRouteRouterRPC() - default: - require.Fail(ht, "routerrpc does not support "+ - "streaming send_to_route") + resp := carol.RPC.SendToRouteV2(sendReq) + require.Nilf( + ht, resp.Failure, "received payment error from %s", + carol.Name(), + ) } // Verify that the payment's from Carol's PoV have the correct payment @@ -431,22 +354,15 @@ func testSendToRouteErrorPropagation(ht *lntest.HarnessTest) { resp := bob.RPC.AddInvoice(invoice) rHash := resp.RHash - // Using Alice as the source, pay to the invoice from Bob. - alicePayStream := alice.RPC.SendToRoute() - - sendReq := &lnrpc.SendToRouteRequest{ + // Using Alice as the source, send to the invoice from Bob via a fake + // route - we expect this to fail with UnknownNextPeer. + sendReq := &routerrpc.SendToRouteRequest{ PaymentHash: rHash, Route: fakeRoute.Routes[0], } - err := alicePayStream.Send(sendReq) - require.NoError(ht, err, "unable to send payment") - - // At this place we should get an rpc error with notification - // that edge is not found on hop(0) - event, err := ht.ReceiveSendToRouteUpdate(alicePayStream) - require.NoError(ht, err, "payment stream has been closed but fake "+ - "route has consumed") - require.Contains(ht, event.PaymentError, "UnknownNextPeer") + event := alice.RPC.SendToRouteV2(sendReq) + require.NotNil(ht, event.Failure, "expected payment failure") + require.Equal(ht, lnrpc.Failure_UNKNOWN_NEXT_PEER, event.Failure.Code) } // testPrivateChannels tests that a private channel can be used for diff --git a/lncfg/tor.go b/lncfg/tor.go index 932d5dfc904..81a24cd636f 100644 --- a/lncfg/tor.go +++ b/lncfg/tor.go @@ -12,7 +12,6 @@ type Tor struct { Control string `long:"control" description:"The host:port that Tor is listening on for Tor control connections"` TargetIPAddress string `long:"targetipaddress" description:"IP address that Tor should use as the target of the hidden service"` Password string `long:"password" description:"The password used to arrive at the HashedControlPassword for the control port. If provided, the HASHEDPASSWORD authentication method will be used instead of the SAFECOOKIE one."` - V2 bool `long:"v2" description:"DEPRECATED: Tor v2 onion services are obsolete and support will be removed in v0.21.0. Use v3 instead." hidden:"true"` V3 bool `long:"v3" description:"Automatically set up a v3 onion service to listen for inbound connections"` PrivateKeyPath string `long:"privatekeypath" description:"The path to the private key of the onion service being created"` EncryptKey bool `long:"encryptkey" description:"Encrypts the Tor private key file on disk"` diff --git a/lnd.go b/lnd.go index 76b08a114a1..ee60deec287 100644 --- a/lnd.go +++ b/lnd.go @@ -530,11 +530,11 @@ func Main(cfg *Config, lisCfg ListenerCfg, implCfg *ImplementationCfg, } } - // If tor is active and either v2 or v3 onion services have been - // specified, make a tor controller and pass it into both the watchtower - // server and the regular lnd server. + // If tor is active and a v3 onion service has been specified, make a + // tor controller and pass it into both the watchtower server and the + // regular lnd server. var torController *tor.Controller - if cfg.Tor.Active && (cfg.Tor.V2 || cfg.Tor.V3) { + if cfg.Tor.Active && cfg.Tor.V3 { torController = tor.NewController( cfg.Tor.Control, cfg.Tor.TargetIPAddress, cfg.Tor.Password, @@ -592,12 +592,7 @@ func Main(cfg *Config, lisCfg ListenerCfg, implCfg *ImplementationCfg, wtCfg.EncryptKey = cfg.Tor.EncryptKey wtCfg.KeyRing = activeChainControl.KeyRing - switch { - case cfg.Tor.V2: - wtCfg.Type = tor.V2 - case cfg.Tor.V3: - wtCfg.Type = tor.V3 - } + wtCfg.Type = tor.V3 } wtConfig, err := cfg.Watchtower.Apply( diff --git a/lnrpc/README.md b/lnrpc/README.md index b504525f116..50a6e236160 100644 --- a/lnrpc/README.md +++ b/lnrpc/README.md @@ -69,15 +69,6 @@ description): * Attempts to close a target channel. A channel can either be closed cooperatively if the channel peer is online, or using a "force" close to broadcast the latest channel state. - * SendPayment - * Send a payment over Lightning to a target peer. - * SendPaymentSync - * SendPaymentSync is the synchronous non-streaming version of SendPayment. - * SendToRoute - * Send a payment over Lightning to a target peer through a route explicitly - defined by the user. - * SendToRouteSync - * SendToRouteSync is the synchronous non-streaming version of SendToRoute. * AddInvoice * Adds an invoice to the daemon. Invoices are automatically settled once seen as an incoming HTLC. diff --git a/lnrpc/lightning.pb.go b/lnrpc/lightning.pb.go index 59d01914159..d1f2a8af00b 100644 --- a/lnrpc/lightning.pb.go +++ b/lnrpc/lightning.pb.go @@ -927,7 +927,7 @@ func (x ChannelCloseSummary_ClosureType) Number() protoreflect.EnumNumber { // Deprecated: Use ChannelCloseSummary_ClosureType.Descriptor instead. func (ChannelCloseSummary_ClosureType) EnumDescriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{51, 0} + return file_lightning_proto_rawDescGZIP(), []int{48, 0} } type Peer_SyncType int32 @@ -983,7 +983,7 @@ func (x Peer_SyncType) Number() protoreflect.EnumNumber { // Deprecated: Use Peer_SyncType.Descriptor instead. func (Peer_SyncType) EnumDescriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{55, 0} + return file_lightning_proto_rawDescGZIP(), []int{52, 0} } type PeerEvent_EventType int32 @@ -1029,7 +1029,7 @@ func (x PeerEvent_EventType) Number() protoreflect.EnumNumber { // Deprecated: Use PeerEvent_EventType.Descriptor instead. func (PeerEvent_EventType) EnumDescriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{60, 0} + return file_lightning_proto_rawDescGZIP(), []int{57, 0} } // There are three resolution states for the anchor: @@ -1084,7 +1084,7 @@ func (x PendingChannelsResponse_ForceClosedChannel_AnchorState) Number() protore // Deprecated: Use PendingChannelsResponse_ForceClosedChannel_AnchorState.Descriptor instead. func (PendingChannelsResponse_ForceClosedChannel_AnchorState) EnumDescriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{93, 5, 0} + return file_lightning_proto_rawDescGZIP(), []int{90, 5, 0} } type ChannelEventUpdate_UpdateType int32 @@ -1148,7 +1148,7 @@ func (x ChannelEventUpdate_UpdateType) Number() protoreflect.EnumNumber { // Deprecated: Use ChannelEventUpdate_UpdateType.Descriptor instead. func (ChannelEventUpdate_UpdateType) EnumDescriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{96, 0} + return file_lightning_proto_rawDescGZIP(), []int{93, 0} } type Invoice_InvoiceState int32 @@ -1200,7 +1200,7 @@ func (x Invoice_InvoiceState) Number() protoreflect.EnumNumber { // Deprecated: Use Invoice_InvoiceState.Descriptor instead. func (Invoice_InvoiceState) EnumDescriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{140, 0} + return file_lightning_proto_rawDescGZIP(), []int{137, 0} } type Payment_PaymentStatus int32 @@ -1262,7 +1262,7 @@ func (x Payment_PaymentStatus) Number() protoreflect.EnumNumber { // Deprecated: Use Payment_PaymentStatus.Descriptor instead. func (Payment_PaymentStatus) EnumDescriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{151, 0} + return file_lightning_proto_rawDescGZIP(), []int{148, 0} } type HTLCAttempt_HTLCStatus int32 @@ -1311,7 +1311,7 @@ func (x HTLCAttempt_HTLCStatus) Number() protoreflect.EnumNumber { // Deprecated: Use HTLCAttempt_HTLCStatus.Descriptor instead. func (HTLCAttempt_HTLCStatus) EnumDescriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{152, 0} + return file_lightning_proto_rawDescGZIP(), []int{149, 0} } type Failure_FailureCode int32 @@ -1445,7 +1445,7 @@ func (x Failure_FailureCode) Number() protoreflect.EnumNumber { // Deprecated: Use Failure_FailureCode.Descriptor instead. func (Failure_FailureCode) EnumDescriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{196, 0} + return file_lightning_proto_rawDescGZIP(), []int{193, 0} } type LookupHtlcResolutionRequest struct { @@ -2607,355 +2607,6 @@ func (*FeeLimit_FixedMsat) isFeeLimit_Limit() {} func (*FeeLimit_Percent) isFeeLimit_Limit() {} -type SendRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The identity pubkey of the payment recipient. When using REST, this field - // must be encoded as base64. - Dest []byte `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"` - // The hex-encoded identity pubkey of the payment recipient. Deprecated now - // that the REST gateway supports base64 encoding of bytes fields. - // - // Deprecated: Marked as deprecated in lightning.proto. - DestString string `protobuf:"bytes,2,opt,name=dest_string,json=destString,proto3" json:"dest_string,omitempty"` - // The amount to send expressed in satoshis. - // - // The fields amt and amt_msat are mutually exclusive. - Amt int64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"` - // The amount to send expressed in millisatoshis. - // - // The fields amt and amt_msat are mutually exclusive. - AmtMsat int64 `protobuf:"varint,12,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"` - // The hash to use within the payment's HTLC. When using REST, this field - // must be encoded as base64. - PaymentHash []byte `protobuf:"bytes,4,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"` - // The hex-encoded hash to use within the payment's HTLC. Deprecated now - // that the REST gateway supports base64 encoding of bytes fields. - // - // Deprecated: Marked as deprecated in lightning.proto. - PaymentHashString string `protobuf:"bytes,5,opt,name=payment_hash_string,json=paymentHashString,proto3" json:"payment_hash_string,omitempty"` - // A bare-bones invoice for a payment within the Lightning Network. With the - // details of the invoice, the sender has all the data necessary to send a - // payment to the recipient. - PaymentRequest string `protobuf:"bytes,6,opt,name=payment_request,json=paymentRequest,proto3" json:"payment_request,omitempty"` - // The CLTV delta from the current height that should be used to set the - // timelock for the final hop. - FinalCltvDelta int32 `protobuf:"varint,7,opt,name=final_cltv_delta,json=finalCltvDelta,proto3" json:"final_cltv_delta,omitempty"` - // The maximum number of satoshis that will be paid as a fee of the payment. - // This value can be represented either as a percentage of the amount being - // sent, or as a fixed amount of the maximum fee the user is willing the pay to - // send the payment. If not specified, lnd will use a default value of 100% - // fees for small amounts (<=1k sat) or 5% fees for larger amounts. - FeeLimit *FeeLimit `protobuf:"bytes,8,opt,name=fee_limit,json=feeLimit,proto3" json:"fee_limit,omitempty"` - // The channel id of the channel that must be taken to the first hop. If zero, - // any channel may be used. - OutgoingChanId uint64 `protobuf:"varint,9,opt,name=outgoing_chan_id,json=outgoingChanId,proto3" json:"outgoing_chan_id,omitempty"` - // The pubkey of the last hop of the route. If empty, any hop may be used. - LastHopPubkey []byte `protobuf:"bytes,13,opt,name=last_hop_pubkey,json=lastHopPubkey,proto3" json:"last_hop_pubkey,omitempty"` - // An optional maximum total time lock for the route. This should not exceed - // lnd's `--max-cltv-expiry` setting. If zero, then the value of - // `--max-cltv-expiry` is enforced. - CltvLimit uint32 `protobuf:"varint,10,opt,name=cltv_limit,json=cltvLimit,proto3" json:"cltv_limit,omitempty"` - // An optional field that can be used to pass an arbitrary set of TLV records - // to a peer which understands the new records. This can be used to pass - // application specific data during the payment attempt. Record types are - // required to be in the custom range >= 65536. When using REST, the values - // must be encoded as base64. - DestCustomRecords map[uint64][]byte `protobuf:"bytes,11,rep,name=dest_custom_records,json=destCustomRecords,proto3" json:"dest_custom_records,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - // If set, circular payments to self are permitted. - AllowSelfPayment bool `protobuf:"varint,14,opt,name=allow_self_payment,json=allowSelfPayment,proto3" json:"allow_self_payment,omitempty"` - // Features assumed to be supported by the final node. All transitive feature - // dependencies must also be set properly. For a given feature bit pair, either - // optional or remote may be set, but not both. If this field is nil or empty, - // the router will try to load destination features from the graph as a - // fallback. - DestFeatures []FeatureBit `protobuf:"varint,15,rep,packed,name=dest_features,json=destFeatures,proto3,enum=lnrpc.FeatureBit" json:"dest_features,omitempty"` - // The payment address of the generated invoice. This is also called - // payment secret in specifications (e.g. BOLT 11). - PaymentAddr []byte `protobuf:"bytes,16,opt,name=payment_addr,json=paymentAddr,proto3" json:"payment_addr,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SendRequest) Reset() { - *x = SendRequest{} - mi := &file_lightning_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SendRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendRequest) ProtoMessage() {} - -func (x *SendRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[16] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendRequest.ProtoReflect.Descriptor instead. -func (*SendRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{16} -} - -func (x *SendRequest) GetDest() []byte { - if x != nil { - return x.Dest - } - return nil -} - -// Deprecated: Marked as deprecated in lightning.proto. -func (x *SendRequest) GetDestString() string { - if x != nil { - return x.DestString - } - return "" -} - -func (x *SendRequest) GetAmt() int64 { - if x != nil { - return x.Amt - } - return 0 -} - -func (x *SendRequest) GetAmtMsat() int64 { - if x != nil { - return x.AmtMsat - } - return 0 -} - -func (x *SendRequest) GetPaymentHash() []byte { - if x != nil { - return x.PaymentHash - } - return nil -} - -// Deprecated: Marked as deprecated in lightning.proto. -func (x *SendRequest) GetPaymentHashString() string { - if x != nil { - return x.PaymentHashString - } - return "" -} - -func (x *SendRequest) GetPaymentRequest() string { - if x != nil { - return x.PaymentRequest - } - return "" -} - -func (x *SendRequest) GetFinalCltvDelta() int32 { - if x != nil { - return x.FinalCltvDelta - } - return 0 -} - -func (x *SendRequest) GetFeeLimit() *FeeLimit { - if x != nil { - return x.FeeLimit - } - return nil -} - -func (x *SendRequest) GetOutgoingChanId() uint64 { - if x != nil { - return x.OutgoingChanId - } - return 0 -} - -func (x *SendRequest) GetLastHopPubkey() []byte { - if x != nil { - return x.LastHopPubkey - } - return nil -} - -func (x *SendRequest) GetCltvLimit() uint32 { - if x != nil { - return x.CltvLimit - } - return 0 -} - -func (x *SendRequest) GetDestCustomRecords() map[uint64][]byte { - if x != nil { - return x.DestCustomRecords - } - return nil -} - -func (x *SendRequest) GetAllowSelfPayment() bool { - if x != nil { - return x.AllowSelfPayment - } - return false -} - -func (x *SendRequest) GetDestFeatures() []FeatureBit { - if x != nil { - return x.DestFeatures - } - return nil -} - -func (x *SendRequest) GetPaymentAddr() []byte { - if x != nil { - return x.PaymentAddr - } - return nil -} - -type SendResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - PaymentError string `protobuf:"bytes,1,opt,name=payment_error,json=paymentError,proto3" json:"payment_error,omitempty"` - PaymentPreimage []byte `protobuf:"bytes,2,opt,name=payment_preimage,json=paymentPreimage,proto3" json:"payment_preimage,omitempty"` - PaymentRoute *Route `protobuf:"bytes,3,opt,name=payment_route,json=paymentRoute,proto3" json:"payment_route,omitempty"` - PaymentHash []byte `protobuf:"bytes,4,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SendResponse) Reset() { - *x = SendResponse{} - mi := &file_lightning_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SendResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendResponse) ProtoMessage() {} - -func (x *SendResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[17] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendResponse.ProtoReflect.Descriptor instead. -func (*SendResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{17} -} - -func (x *SendResponse) GetPaymentError() string { - if x != nil { - return x.PaymentError - } - return "" -} - -func (x *SendResponse) GetPaymentPreimage() []byte { - if x != nil { - return x.PaymentPreimage - } - return nil -} - -func (x *SendResponse) GetPaymentRoute() *Route { - if x != nil { - return x.PaymentRoute - } - return nil -} - -func (x *SendResponse) GetPaymentHash() []byte { - if x != nil { - return x.PaymentHash - } - return nil -} - -type SendToRouteRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The payment hash to use for the HTLC. When using REST, this field must be - // encoded as base64. - PaymentHash []byte `protobuf:"bytes,1,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"` - // An optional hex-encoded payment hash to be used for the HTLC. Deprecated now - // that the REST gateway supports base64 encoding of bytes fields. - // - // Deprecated: Marked as deprecated in lightning.proto. - PaymentHashString string `protobuf:"bytes,2,opt,name=payment_hash_string,json=paymentHashString,proto3" json:"payment_hash_string,omitempty"` - // Route that should be used to attempt to complete the payment. - Route *Route `protobuf:"bytes,4,opt,name=route,proto3" json:"route,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SendToRouteRequest) Reset() { - *x = SendToRouteRequest{} - mi := &file_lightning_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SendToRouteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendToRouteRequest) ProtoMessage() {} - -func (x *SendToRouteRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[18] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendToRouteRequest.ProtoReflect.Descriptor instead. -func (*SendToRouteRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{18} -} - -func (x *SendToRouteRequest) GetPaymentHash() []byte { - if x != nil { - return x.PaymentHash - } - return nil -} - -// Deprecated: Marked as deprecated in lightning.proto. -func (x *SendToRouteRequest) GetPaymentHashString() string { - if x != nil { - return x.PaymentHashString - } - return "" -} - -func (x *SendToRouteRequest) GetRoute() *Route { - if x != nil { - return x.Route - } - return nil -} - type ChannelAcceptRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // The pubkey of the node that wishes to open an inbound channel. @@ -3004,7 +2655,7 @@ type ChannelAcceptRequest struct { func (x *ChannelAcceptRequest) Reset() { *x = ChannelAcceptRequest{} - mi := &file_lightning_proto_msgTypes[19] + mi := &file_lightning_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3016,7 +2667,7 @@ func (x *ChannelAcceptRequest) String() string { func (*ChannelAcceptRequest) ProtoMessage() {} func (x *ChannelAcceptRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[19] + mi := &file_lightning_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3029,7 +2680,7 @@ func (x *ChannelAcceptRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelAcceptRequest.ProtoReflect.Descriptor instead. func (*ChannelAcceptRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{19} + return file_lightning_proto_rawDescGZIP(), []int{16} } func (x *ChannelAcceptRequest) GetNodePubkey() []byte { @@ -3188,7 +2839,7 @@ type ChannelAcceptResponse struct { func (x *ChannelAcceptResponse) Reset() { *x = ChannelAcceptResponse{} - mi := &file_lightning_proto_msgTypes[20] + mi := &file_lightning_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3200,7 +2851,7 @@ func (x *ChannelAcceptResponse) String() string { func (*ChannelAcceptResponse) ProtoMessage() {} func (x *ChannelAcceptResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[20] + mi := &file_lightning_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3213,7 +2864,7 @@ func (x *ChannelAcceptResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelAcceptResponse.ProtoReflect.Descriptor instead. func (*ChannelAcceptResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{20} + return file_lightning_proto_rawDescGZIP(), []int{17} } func (x *ChannelAcceptResponse) GetAccept() bool { @@ -3308,7 +2959,7 @@ type ChannelPoint struct { func (x *ChannelPoint) Reset() { *x = ChannelPoint{} - mi := &file_lightning_proto_msgTypes[21] + mi := &file_lightning_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3320,7 +2971,7 @@ func (x *ChannelPoint) String() string { func (*ChannelPoint) ProtoMessage() {} func (x *ChannelPoint) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[21] + mi := &file_lightning_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3333,7 +2984,7 @@ func (x *ChannelPoint) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelPoint.ProtoReflect.Descriptor instead. func (*ChannelPoint) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{21} + return file_lightning_proto_rawDescGZIP(), []int{18} } func (x *ChannelPoint) GetFundingTxid() isChannelPoint_FundingTxid { @@ -3402,7 +3053,7 @@ type OutPoint struct { func (x *OutPoint) Reset() { *x = OutPoint{} - mi := &file_lightning_proto_msgTypes[22] + mi := &file_lightning_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3414,7 +3065,7 @@ func (x *OutPoint) String() string { func (*OutPoint) ProtoMessage() {} func (x *OutPoint) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[22] + mi := &file_lightning_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3427,7 +3078,7 @@ func (x *OutPoint) ProtoReflect() protoreflect.Message { // Deprecated: Use OutPoint.ProtoReflect.Descriptor instead. func (*OutPoint) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{22} + return file_lightning_proto_rawDescGZIP(), []int{19} } func (x *OutPoint) GetTxidBytes() []byte { @@ -3464,7 +3115,7 @@ type PreviousOutPoint struct { func (x *PreviousOutPoint) Reset() { *x = PreviousOutPoint{} - mi := &file_lightning_proto_msgTypes[23] + mi := &file_lightning_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3476,7 +3127,7 @@ func (x *PreviousOutPoint) String() string { func (*PreviousOutPoint) ProtoMessage() {} func (x *PreviousOutPoint) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[23] + mi := &file_lightning_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3489,7 +3140,7 @@ func (x *PreviousOutPoint) ProtoReflect() protoreflect.Message { // Deprecated: Use PreviousOutPoint.ProtoReflect.Descriptor instead. func (*PreviousOutPoint) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{23} + return file_lightning_proto_rawDescGZIP(), []int{20} } func (x *PreviousOutPoint) GetOutpoint() string { @@ -3519,7 +3170,7 @@ type LightningAddress struct { func (x *LightningAddress) Reset() { *x = LightningAddress{} - mi := &file_lightning_proto_msgTypes[24] + mi := &file_lightning_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3531,7 +3182,7 @@ func (x *LightningAddress) String() string { func (*LightningAddress) ProtoMessage() {} func (x *LightningAddress) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[24] + mi := &file_lightning_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3544,7 +3195,7 @@ func (x *LightningAddress) ProtoReflect() protoreflect.Message { // Deprecated: Use LightningAddress.ProtoReflect.Descriptor instead. func (*LightningAddress) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{24} + return file_lightning_proto_rawDescGZIP(), []int{21} } func (x *LightningAddress) GetPubkey() string { @@ -3583,7 +3234,7 @@ type EstimateFeeRequest struct { func (x *EstimateFeeRequest) Reset() { *x = EstimateFeeRequest{} - mi := &file_lightning_proto_msgTypes[25] + mi := &file_lightning_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3595,7 +3246,7 @@ func (x *EstimateFeeRequest) String() string { func (*EstimateFeeRequest) ProtoMessage() {} func (x *EstimateFeeRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[25] + mi := &file_lightning_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3608,7 +3259,7 @@ func (x *EstimateFeeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EstimateFeeRequest.ProtoReflect.Descriptor instead. func (*EstimateFeeRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{25} + return file_lightning_proto_rawDescGZIP(), []int{22} } func (x *EstimateFeeRequest) GetAddrToAmount() map[string]int64 { @@ -3672,7 +3323,7 @@ type EstimateFeeResponse struct { func (x *EstimateFeeResponse) Reset() { *x = EstimateFeeResponse{} - mi := &file_lightning_proto_msgTypes[26] + mi := &file_lightning_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3684,7 +3335,7 @@ func (x *EstimateFeeResponse) String() string { func (*EstimateFeeResponse) ProtoMessage() {} func (x *EstimateFeeResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[26] + mi := &file_lightning_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3697,7 +3348,7 @@ func (x *EstimateFeeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EstimateFeeResponse.ProtoReflect.Descriptor instead. func (*EstimateFeeResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{26} + return file_lightning_proto_rawDescGZIP(), []int{23} } func (x *EstimateFeeResponse) GetFeeSat() int64 { @@ -3760,7 +3411,7 @@ type SendManyRequest struct { func (x *SendManyRequest) Reset() { *x = SendManyRequest{} - mi := &file_lightning_proto_msgTypes[27] + mi := &file_lightning_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3772,7 +3423,7 @@ func (x *SendManyRequest) String() string { func (*SendManyRequest) ProtoMessage() {} func (x *SendManyRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[27] + mi := &file_lightning_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3785,7 +3436,7 @@ func (x *SendManyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SendManyRequest.ProtoReflect.Descriptor instead. func (*SendManyRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{27} + return file_lightning_proto_rawDescGZIP(), []int{24} } func (x *SendManyRequest) GetAddrToAmount() map[string]int64 { @@ -3855,7 +3506,7 @@ type SendManyResponse struct { func (x *SendManyResponse) Reset() { *x = SendManyResponse{} - mi := &file_lightning_proto_msgTypes[28] + mi := &file_lightning_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3867,7 +3518,7 @@ func (x *SendManyResponse) String() string { func (*SendManyResponse) ProtoMessage() {} func (x *SendManyResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[28] + mi := &file_lightning_proto_msgTypes[25] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3880,7 +3531,7 @@ func (x *SendManyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SendManyResponse.ProtoReflect.Descriptor instead. func (*SendManyResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{28} + return file_lightning_proto_rawDescGZIP(), []int{25} } func (x *SendManyResponse) GetTxid() string { @@ -3928,7 +3579,7 @@ type SendCoinsRequest struct { func (x *SendCoinsRequest) Reset() { *x = SendCoinsRequest{} - mi := &file_lightning_proto_msgTypes[29] + mi := &file_lightning_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3940,7 +3591,7 @@ func (x *SendCoinsRequest) String() string { func (*SendCoinsRequest) ProtoMessage() {} func (x *SendCoinsRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[29] + mi := &file_lightning_proto_msgTypes[26] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3953,7 +3604,7 @@ func (x *SendCoinsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SendCoinsRequest.ProtoReflect.Descriptor instead. func (*SendCoinsRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{29} + return file_lightning_proto_rawDescGZIP(), []int{26} } func (x *SendCoinsRequest) GetAddr() string { @@ -4044,7 +3695,7 @@ type SendCoinsResponse struct { func (x *SendCoinsResponse) Reset() { *x = SendCoinsResponse{} - mi := &file_lightning_proto_msgTypes[30] + mi := &file_lightning_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4056,7 +3707,7 @@ func (x *SendCoinsResponse) String() string { func (*SendCoinsResponse) ProtoMessage() {} func (x *SendCoinsResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[30] + mi := &file_lightning_proto_msgTypes[27] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4069,7 +3720,7 @@ func (x *SendCoinsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SendCoinsResponse.ProtoReflect.Descriptor instead. func (*SendCoinsResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{30} + return file_lightning_proto_rawDescGZIP(), []int{27} } func (x *SendCoinsResponse) GetTxid() string { @@ -4093,7 +3744,7 @@ type ListUnspentRequest struct { func (x *ListUnspentRequest) Reset() { *x = ListUnspentRequest{} - mi := &file_lightning_proto_msgTypes[31] + mi := &file_lightning_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4105,7 +3756,7 @@ func (x *ListUnspentRequest) String() string { func (*ListUnspentRequest) ProtoMessage() {} func (x *ListUnspentRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[31] + mi := &file_lightning_proto_msgTypes[28] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4118,7 +3769,7 @@ func (x *ListUnspentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListUnspentRequest.ProtoReflect.Descriptor instead. func (*ListUnspentRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{31} + return file_lightning_proto_rawDescGZIP(), []int{28} } func (x *ListUnspentRequest) GetMinConfs() int32 { @@ -4152,7 +3803,7 @@ type ListUnspentResponse struct { func (x *ListUnspentResponse) Reset() { *x = ListUnspentResponse{} - mi := &file_lightning_proto_msgTypes[32] + mi := &file_lightning_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4164,7 +3815,7 @@ func (x *ListUnspentResponse) String() string { func (*ListUnspentResponse) ProtoMessage() {} func (x *ListUnspentResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[32] + mi := &file_lightning_proto_msgTypes[29] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4177,7 +3828,7 @@ func (x *ListUnspentResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListUnspentResponse.ProtoReflect.Descriptor instead. func (*ListUnspentResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{32} + return file_lightning_proto_rawDescGZIP(), []int{29} } func (x *ListUnspentResponse) GetUtxos() []*Utxo { @@ -4200,7 +3851,7 @@ type NewAddressRequest struct { func (x *NewAddressRequest) Reset() { *x = NewAddressRequest{} - mi := &file_lightning_proto_msgTypes[33] + mi := &file_lightning_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4212,7 +3863,7 @@ func (x *NewAddressRequest) String() string { func (*NewAddressRequest) ProtoMessage() {} func (x *NewAddressRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[33] + mi := &file_lightning_proto_msgTypes[30] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4225,7 +3876,7 @@ func (x *NewAddressRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use NewAddressRequest.ProtoReflect.Descriptor instead. func (*NewAddressRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{33} + return file_lightning_proto_rawDescGZIP(), []int{30} } func (x *NewAddressRequest) GetType() AddressType { @@ -4252,7 +3903,7 @@ type NewAddressResponse struct { func (x *NewAddressResponse) Reset() { *x = NewAddressResponse{} - mi := &file_lightning_proto_msgTypes[34] + mi := &file_lightning_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4264,7 +3915,7 @@ func (x *NewAddressResponse) String() string { func (*NewAddressResponse) ProtoMessage() {} func (x *NewAddressResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[34] + mi := &file_lightning_proto_msgTypes[31] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4277,7 +3928,7 @@ func (x *NewAddressResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use NewAddressResponse.ProtoReflect.Descriptor instead. func (*NewAddressResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{34} + return file_lightning_proto_rawDescGZIP(), []int{31} } func (x *NewAddressResponse) GetAddress() string { @@ -4301,7 +3952,7 @@ type SignMessageRequest struct { func (x *SignMessageRequest) Reset() { *x = SignMessageRequest{} - mi := &file_lightning_proto_msgTypes[35] + mi := &file_lightning_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4313,7 +3964,7 @@ func (x *SignMessageRequest) String() string { func (*SignMessageRequest) ProtoMessage() {} func (x *SignMessageRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[35] + mi := &file_lightning_proto_msgTypes[32] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4326,7 +3977,7 @@ func (x *SignMessageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SignMessageRequest.ProtoReflect.Descriptor instead. func (*SignMessageRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{35} + return file_lightning_proto_rawDescGZIP(), []int{32} } func (x *SignMessageRequest) GetMsg() []byte { @@ -4353,7 +4004,7 @@ type SignMessageResponse struct { func (x *SignMessageResponse) Reset() { *x = SignMessageResponse{} - mi := &file_lightning_proto_msgTypes[36] + mi := &file_lightning_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4365,7 +4016,7 @@ func (x *SignMessageResponse) String() string { func (*SignMessageResponse) ProtoMessage() {} func (x *SignMessageResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[36] + mi := &file_lightning_proto_msgTypes[33] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4378,7 +4029,7 @@ func (x *SignMessageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SignMessageResponse.ProtoReflect.Descriptor instead. func (*SignMessageResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{36} + return file_lightning_proto_rawDescGZIP(), []int{33} } func (x *SignMessageResponse) GetSignature() string { @@ -4401,7 +4052,7 @@ type VerifyMessageRequest struct { func (x *VerifyMessageRequest) Reset() { *x = VerifyMessageRequest{} - mi := &file_lightning_proto_msgTypes[37] + mi := &file_lightning_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4413,7 +4064,7 @@ func (x *VerifyMessageRequest) String() string { func (*VerifyMessageRequest) ProtoMessage() {} func (x *VerifyMessageRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[37] + mi := &file_lightning_proto_msgTypes[34] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4426,7 +4077,7 @@ func (x *VerifyMessageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use VerifyMessageRequest.ProtoReflect.Descriptor instead. func (*VerifyMessageRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{37} + return file_lightning_proto_rawDescGZIP(), []int{34} } func (x *VerifyMessageRequest) GetMsg() []byte { @@ -4455,7 +4106,7 @@ type VerifyMessageResponse struct { func (x *VerifyMessageResponse) Reset() { *x = VerifyMessageResponse{} - mi := &file_lightning_proto_msgTypes[38] + mi := &file_lightning_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4467,7 +4118,7 @@ func (x *VerifyMessageResponse) String() string { func (*VerifyMessageResponse) ProtoMessage() {} func (x *VerifyMessageResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[38] + mi := &file_lightning_proto_msgTypes[35] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4480,7 +4131,7 @@ func (x *VerifyMessageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use VerifyMessageResponse.ProtoReflect.Descriptor instead. func (*VerifyMessageResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{38} + return file_lightning_proto_rawDescGZIP(), []int{35} } func (x *VerifyMessageResponse) GetValid() bool { @@ -4513,7 +4164,7 @@ type ConnectPeerRequest struct { func (x *ConnectPeerRequest) Reset() { *x = ConnectPeerRequest{} - mi := &file_lightning_proto_msgTypes[39] + mi := &file_lightning_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4525,7 +4176,7 @@ func (x *ConnectPeerRequest) String() string { func (*ConnectPeerRequest) ProtoMessage() {} func (x *ConnectPeerRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[39] + mi := &file_lightning_proto_msgTypes[36] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4538,7 +4189,7 @@ func (x *ConnectPeerRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ConnectPeerRequest.ProtoReflect.Descriptor instead. func (*ConnectPeerRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{39} + return file_lightning_proto_rawDescGZIP(), []int{36} } func (x *ConnectPeerRequest) GetAddr() *LightningAddress { @@ -4572,7 +4223,7 @@ type ConnectPeerResponse struct { func (x *ConnectPeerResponse) Reset() { *x = ConnectPeerResponse{} - mi := &file_lightning_proto_msgTypes[40] + mi := &file_lightning_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4584,7 +4235,7 @@ func (x *ConnectPeerResponse) String() string { func (*ConnectPeerResponse) ProtoMessage() {} func (x *ConnectPeerResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[40] + mi := &file_lightning_proto_msgTypes[37] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4597,7 +4248,7 @@ func (x *ConnectPeerResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ConnectPeerResponse.ProtoReflect.Descriptor instead. func (*ConnectPeerResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{40} + return file_lightning_proto_rawDescGZIP(), []int{37} } func (x *ConnectPeerResponse) GetStatus() string { @@ -4617,7 +4268,7 @@ type DisconnectPeerRequest struct { func (x *DisconnectPeerRequest) Reset() { *x = DisconnectPeerRequest{} - mi := &file_lightning_proto_msgTypes[41] + mi := &file_lightning_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4629,7 +4280,7 @@ func (x *DisconnectPeerRequest) String() string { func (*DisconnectPeerRequest) ProtoMessage() {} func (x *DisconnectPeerRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[41] + mi := &file_lightning_proto_msgTypes[38] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4642,7 +4293,7 @@ func (x *DisconnectPeerRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DisconnectPeerRequest.ProtoReflect.Descriptor instead. func (*DisconnectPeerRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{41} + return file_lightning_proto_rawDescGZIP(), []int{38} } func (x *DisconnectPeerRequest) GetPubKey() string { @@ -4662,7 +4313,7 @@ type DisconnectPeerResponse struct { func (x *DisconnectPeerResponse) Reset() { *x = DisconnectPeerResponse{} - mi := &file_lightning_proto_msgTypes[42] + mi := &file_lightning_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4674,7 +4325,7 @@ func (x *DisconnectPeerResponse) String() string { func (*DisconnectPeerResponse) ProtoMessage() {} func (x *DisconnectPeerResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[42] + mi := &file_lightning_proto_msgTypes[39] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4687,7 +4338,7 @@ func (x *DisconnectPeerResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DisconnectPeerResponse.ProtoReflect.Descriptor instead. func (*DisconnectPeerResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{42} + return file_lightning_proto_rawDescGZIP(), []int{39} } func (x *DisconnectPeerResponse) GetStatus() string { @@ -4725,7 +4376,7 @@ type HTLC struct { func (x *HTLC) Reset() { *x = HTLC{} - mi := &file_lightning_proto_msgTypes[43] + mi := &file_lightning_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4737,7 +4388,7 @@ func (x *HTLC) String() string { func (*HTLC) ProtoMessage() {} func (x *HTLC) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[43] + mi := &file_lightning_proto_msgTypes[40] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4750,7 +4401,7 @@ func (x *HTLC) ProtoReflect() protoreflect.Message { // Deprecated: Use HTLC.ProtoReflect.Descriptor instead. func (*HTLC) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{43} + return file_lightning_proto_rawDescGZIP(), []int{40} } func (x *HTLC) GetIncoming() bool { @@ -4831,7 +4482,7 @@ type ChannelConstraints struct { func (x *ChannelConstraints) Reset() { *x = ChannelConstraints{} - mi := &file_lightning_proto_msgTypes[44] + mi := &file_lightning_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4843,7 +4494,7 @@ func (x *ChannelConstraints) String() string { func (*ChannelConstraints) ProtoMessage() {} func (x *ChannelConstraints) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[44] + mi := &file_lightning_proto_msgTypes[41] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4856,7 +4507,7 @@ func (x *ChannelConstraints) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelConstraints.ProtoReflect.Descriptor instead. func (*ChannelConstraints) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{44} + return file_lightning_proto_rawDescGZIP(), []int{41} } func (x *ChannelConstraints) GetCsvDelay() uint32 { @@ -5025,7 +4676,7 @@ type Channel struct { func (x *Channel) Reset() { *x = Channel{} - mi := &file_lightning_proto_msgTypes[45] + mi := &file_lightning_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5037,7 +4688,7 @@ func (x *Channel) String() string { func (*Channel) ProtoMessage() {} func (x *Channel) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[45] + mi := &file_lightning_proto_msgTypes[42] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5050,7 +4701,7 @@ func (x *Channel) ProtoReflect() protoreflect.Message { // Deprecated: Use Channel.ProtoReflect.Descriptor instead. func (*Channel) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{45} + return file_lightning_proto_rawDescGZIP(), []int{42} } func (x *Channel) GetActive() bool { @@ -5335,7 +4986,7 @@ type ListChannelsRequest struct { func (x *ListChannelsRequest) Reset() { *x = ListChannelsRequest{} - mi := &file_lightning_proto_msgTypes[46] + mi := &file_lightning_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5347,7 +4998,7 @@ func (x *ListChannelsRequest) String() string { func (*ListChannelsRequest) ProtoMessage() {} func (x *ListChannelsRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[46] + mi := &file_lightning_proto_msgTypes[43] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5360,7 +5011,7 @@ func (x *ListChannelsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListChannelsRequest.ProtoReflect.Descriptor instead. func (*ListChannelsRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{46} + return file_lightning_proto_rawDescGZIP(), []int{43} } func (x *ListChannelsRequest) GetActiveOnly() bool { @@ -5415,7 +5066,7 @@ type ListChannelsResponse struct { func (x *ListChannelsResponse) Reset() { *x = ListChannelsResponse{} - mi := &file_lightning_proto_msgTypes[47] + mi := &file_lightning_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5427,7 +5078,7 @@ func (x *ListChannelsResponse) String() string { func (*ListChannelsResponse) ProtoMessage() {} func (x *ListChannelsResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[47] + mi := &file_lightning_proto_msgTypes[44] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5440,7 +5091,7 @@ func (x *ListChannelsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListChannelsResponse.ProtoReflect.Descriptor instead. func (*ListChannelsResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{47} + return file_lightning_proto_rawDescGZIP(), []int{44} } func (x *ListChannelsResponse) GetChannels() []*Channel { @@ -5463,7 +5114,7 @@ type AliasMap struct { func (x *AliasMap) Reset() { *x = AliasMap{} - mi := &file_lightning_proto_msgTypes[48] + mi := &file_lightning_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5475,7 +5126,7 @@ func (x *AliasMap) String() string { func (*AliasMap) ProtoMessage() {} func (x *AliasMap) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[48] + mi := &file_lightning_proto_msgTypes[45] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5488,7 +5139,7 @@ func (x *AliasMap) ProtoReflect() protoreflect.Message { // Deprecated: Use AliasMap.ProtoReflect.Descriptor instead. func (*AliasMap) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{48} + return file_lightning_proto_rawDescGZIP(), []int{45} } func (x *AliasMap) GetBaseScid() uint64 { @@ -5513,7 +5164,7 @@ type ListAliasesRequest struct { func (x *ListAliasesRequest) Reset() { *x = ListAliasesRequest{} - mi := &file_lightning_proto_msgTypes[49] + mi := &file_lightning_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5525,7 +5176,7 @@ func (x *ListAliasesRequest) String() string { func (*ListAliasesRequest) ProtoMessage() {} func (x *ListAliasesRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[49] + mi := &file_lightning_proto_msgTypes[46] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5538,7 +5189,7 @@ func (x *ListAliasesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAliasesRequest.ProtoReflect.Descriptor instead. func (*ListAliasesRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{49} + return file_lightning_proto_rawDescGZIP(), []int{46} } type ListAliasesResponse struct { @@ -5550,7 +5201,7 @@ type ListAliasesResponse struct { func (x *ListAliasesResponse) Reset() { *x = ListAliasesResponse{} - mi := &file_lightning_proto_msgTypes[50] + mi := &file_lightning_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5562,7 +5213,7 @@ func (x *ListAliasesResponse) String() string { func (*ListAliasesResponse) ProtoMessage() {} func (x *ListAliasesResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[50] + mi := &file_lightning_proto_msgTypes[47] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5575,7 +5226,7 @@ func (x *ListAliasesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAliasesResponse.ProtoReflect.Descriptor instead. func (*ListAliasesResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{50} + return file_lightning_proto_rawDescGZIP(), []int{47} } func (x *ListAliasesResponse) GetAliasMaps() []*AliasMap { @@ -5632,7 +5283,7 @@ type ChannelCloseSummary struct { func (x *ChannelCloseSummary) Reset() { *x = ChannelCloseSummary{} - mi := &file_lightning_proto_msgTypes[51] + mi := &file_lightning_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5644,7 +5295,7 @@ func (x *ChannelCloseSummary) String() string { func (*ChannelCloseSummary) ProtoMessage() {} func (x *ChannelCloseSummary) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[51] + mi := &file_lightning_proto_msgTypes[48] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5657,7 +5308,7 @@ func (x *ChannelCloseSummary) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelCloseSummary.ProtoReflect.Descriptor instead. func (*ChannelCloseSummary) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{51} + return file_lightning_proto_rawDescGZIP(), []int{48} } func (x *ChannelCloseSummary) GetChannelPoint() string { @@ -5791,7 +5442,7 @@ type Resolution struct { func (x *Resolution) Reset() { *x = Resolution{} - mi := &file_lightning_proto_msgTypes[52] + mi := &file_lightning_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5803,7 +5454,7 @@ func (x *Resolution) String() string { func (*Resolution) ProtoMessage() {} func (x *Resolution) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[52] + mi := &file_lightning_proto_msgTypes[49] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5816,7 +5467,7 @@ func (x *Resolution) ProtoReflect() protoreflect.Message { // Deprecated: Use Resolution.ProtoReflect.Descriptor instead. func (*Resolution) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{52} + return file_lightning_proto_rawDescGZIP(), []int{49} } func (x *Resolution) GetResolutionType() ResolutionType { @@ -5868,7 +5519,7 @@ type ClosedChannelsRequest struct { func (x *ClosedChannelsRequest) Reset() { *x = ClosedChannelsRequest{} - mi := &file_lightning_proto_msgTypes[53] + mi := &file_lightning_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5880,7 +5531,7 @@ func (x *ClosedChannelsRequest) String() string { func (*ClosedChannelsRequest) ProtoMessage() {} func (x *ClosedChannelsRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[53] + mi := &file_lightning_proto_msgTypes[50] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5893,7 +5544,7 @@ func (x *ClosedChannelsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ClosedChannelsRequest.ProtoReflect.Descriptor instead. func (*ClosedChannelsRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{53} + return file_lightning_proto_rawDescGZIP(), []int{50} } func (x *ClosedChannelsRequest) GetCooperative() bool { @@ -5947,7 +5598,7 @@ type ClosedChannelsResponse struct { func (x *ClosedChannelsResponse) Reset() { *x = ClosedChannelsResponse{} - mi := &file_lightning_proto_msgTypes[54] + mi := &file_lightning_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5959,7 +5610,7 @@ func (x *ClosedChannelsResponse) String() string { func (*ClosedChannelsResponse) ProtoMessage() {} func (x *ClosedChannelsResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[54] + mi := &file_lightning_proto_msgTypes[51] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5972,7 +5623,7 @@ func (x *ClosedChannelsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ClosedChannelsResponse.ProtoReflect.Descriptor instead. func (*ClosedChannelsResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{54} + return file_lightning_proto_rawDescGZIP(), []int{51} } func (x *ClosedChannelsResponse) GetChannels() []*ChannelCloseSummary { @@ -6028,7 +5679,7 @@ type Peer struct { func (x *Peer) Reset() { *x = Peer{} - mi := &file_lightning_proto_msgTypes[55] + mi := &file_lightning_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6040,7 +5691,7 @@ func (x *Peer) String() string { func (*Peer) ProtoMessage() {} func (x *Peer) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[55] + mi := &file_lightning_proto_msgTypes[52] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6053,7 +5704,7 @@ func (x *Peer) ProtoReflect() protoreflect.Message { // Deprecated: Use Peer.ProtoReflect.Descriptor instead. func (*Peer) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{55} + return file_lightning_proto_rawDescGZIP(), []int{52} } func (x *Peer) GetPubKey() string { @@ -6166,7 +5817,7 @@ type TimestampedError struct { func (x *TimestampedError) Reset() { *x = TimestampedError{} - mi := &file_lightning_proto_msgTypes[56] + mi := &file_lightning_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6178,7 +5829,7 @@ func (x *TimestampedError) String() string { func (*TimestampedError) ProtoMessage() {} func (x *TimestampedError) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[56] + mi := &file_lightning_proto_msgTypes[53] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6191,7 +5842,7 @@ func (x *TimestampedError) ProtoReflect() protoreflect.Message { // Deprecated: Use TimestampedError.ProtoReflect.Descriptor instead. func (*TimestampedError) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{56} + return file_lightning_proto_rawDescGZIP(), []int{53} } func (x *TimestampedError) GetTimestamp() uint64 { @@ -6220,7 +5871,7 @@ type ListPeersRequest struct { func (x *ListPeersRequest) Reset() { *x = ListPeersRequest{} - mi := &file_lightning_proto_msgTypes[57] + mi := &file_lightning_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6232,7 +5883,7 @@ func (x *ListPeersRequest) String() string { func (*ListPeersRequest) ProtoMessage() {} func (x *ListPeersRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[57] + mi := &file_lightning_proto_msgTypes[54] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6245,7 +5896,7 @@ func (x *ListPeersRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPeersRequest.ProtoReflect.Descriptor instead. func (*ListPeersRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{57} + return file_lightning_proto_rawDescGZIP(), []int{54} } func (x *ListPeersRequest) GetLatestError() bool { @@ -6265,7 +5916,7 @@ type ListPeersResponse struct { func (x *ListPeersResponse) Reset() { *x = ListPeersResponse{} - mi := &file_lightning_proto_msgTypes[58] + mi := &file_lightning_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6277,7 +5928,7 @@ func (x *ListPeersResponse) String() string { func (*ListPeersResponse) ProtoMessage() {} func (x *ListPeersResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[58] + mi := &file_lightning_proto_msgTypes[55] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6290,7 +5941,7 @@ func (x *ListPeersResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPeersResponse.ProtoReflect.Descriptor instead. func (*ListPeersResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{58} + return file_lightning_proto_rawDescGZIP(), []int{55} } func (x *ListPeersResponse) GetPeers() []*Peer { @@ -6308,7 +5959,7 @@ type PeerEventSubscription struct { func (x *PeerEventSubscription) Reset() { *x = PeerEventSubscription{} - mi := &file_lightning_proto_msgTypes[59] + mi := &file_lightning_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6320,7 +5971,7 @@ func (x *PeerEventSubscription) String() string { func (*PeerEventSubscription) ProtoMessage() {} func (x *PeerEventSubscription) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[59] + mi := &file_lightning_proto_msgTypes[56] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6333,7 +5984,7 @@ func (x *PeerEventSubscription) ProtoReflect() protoreflect.Message { // Deprecated: Use PeerEventSubscription.ProtoReflect.Descriptor instead. func (*PeerEventSubscription) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{59} + return file_lightning_proto_rawDescGZIP(), []int{56} } type PeerEvent struct { @@ -6347,7 +5998,7 @@ type PeerEvent struct { func (x *PeerEvent) Reset() { *x = PeerEvent{} - mi := &file_lightning_proto_msgTypes[60] + mi := &file_lightning_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6359,7 +6010,7 @@ func (x *PeerEvent) String() string { func (*PeerEvent) ProtoMessage() {} func (x *PeerEvent) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[60] + mi := &file_lightning_proto_msgTypes[57] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6372,7 +6023,7 @@ func (x *PeerEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use PeerEvent.ProtoReflect.Descriptor instead. func (*PeerEvent) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{60} + return file_lightning_proto_rawDescGZIP(), []int{57} } func (x *PeerEvent) GetPubKey() string { @@ -6397,7 +6048,7 @@ type GetInfoRequest struct { func (x *GetInfoRequest) Reset() { *x = GetInfoRequest{} - mi := &file_lightning_proto_msgTypes[61] + mi := &file_lightning_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6409,7 +6060,7 @@ func (x *GetInfoRequest) String() string { func (*GetInfoRequest) ProtoMessage() {} func (x *GetInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[61] + mi := &file_lightning_proto_msgTypes[58] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6422,7 +6073,7 @@ func (x *GetInfoRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetInfoRequest.ProtoReflect.Descriptor instead. func (*GetInfoRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{61} + return file_lightning_proto_rawDescGZIP(), []int{58} } type GetInfoResponse struct { @@ -6484,7 +6135,7 @@ type GetInfoResponse struct { func (x *GetInfoResponse) Reset() { *x = GetInfoResponse{} - mi := &file_lightning_proto_msgTypes[62] + mi := &file_lightning_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6496,7 +6147,7 @@ func (x *GetInfoResponse) String() string { func (*GetInfoResponse) ProtoMessage() {} func (x *GetInfoResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[62] + mi := &file_lightning_proto_msgTypes[59] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6509,7 +6160,7 @@ func (x *GetInfoResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead. func (*GetInfoResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{62} + return file_lightning_proto_rawDescGZIP(), []int{59} } func (x *GetInfoResponse) GetVersion() string { @@ -6678,7 +6329,7 @@ type GetDebugInfoRequest struct { func (x *GetDebugInfoRequest) Reset() { *x = GetDebugInfoRequest{} - mi := &file_lightning_proto_msgTypes[63] + mi := &file_lightning_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6690,7 +6341,7 @@ func (x *GetDebugInfoRequest) String() string { func (*GetDebugInfoRequest) ProtoMessage() {} func (x *GetDebugInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[63] + mi := &file_lightning_proto_msgTypes[60] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6703,7 +6354,7 @@ func (x *GetDebugInfoRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetDebugInfoRequest.ProtoReflect.Descriptor instead. func (*GetDebugInfoRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{63} + return file_lightning_proto_rawDescGZIP(), []int{60} } func (x *GetDebugInfoRequest) GetIncludeLog() bool { @@ -6723,7 +6374,7 @@ type GetDebugInfoResponse struct { func (x *GetDebugInfoResponse) Reset() { *x = GetDebugInfoResponse{} - mi := &file_lightning_proto_msgTypes[64] + mi := &file_lightning_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6735,7 +6386,7 @@ func (x *GetDebugInfoResponse) String() string { func (*GetDebugInfoResponse) ProtoMessage() {} func (x *GetDebugInfoResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[64] + mi := &file_lightning_proto_msgTypes[61] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6748,7 +6399,7 @@ func (x *GetDebugInfoResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetDebugInfoResponse.ProtoReflect.Descriptor instead. func (*GetDebugInfoResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{64} + return file_lightning_proto_rawDescGZIP(), []int{61} } func (x *GetDebugInfoResponse) GetConfig() map[string]string { @@ -6773,7 +6424,7 @@ type GetRecoveryInfoRequest struct { func (x *GetRecoveryInfoRequest) Reset() { *x = GetRecoveryInfoRequest{} - mi := &file_lightning_proto_msgTypes[65] + mi := &file_lightning_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6785,7 +6436,7 @@ func (x *GetRecoveryInfoRequest) String() string { func (*GetRecoveryInfoRequest) ProtoMessage() {} func (x *GetRecoveryInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[65] + mi := &file_lightning_proto_msgTypes[62] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6798,7 +6449,7 @@ func (x *GetRecoveryInfoRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetRecoveryInfoRequest.ProtoReflect.Descriptor instead. func (*GetRecoveryInfoRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{65} + return file_lightning_proto_rawDescGZIP(), []int{62} } type GetRecoveryInfoResponse struct { @@ -6815,7 +6466,7 @@ type GetRecoveryInfoResponse struct { func (x *GetRecoveryInfoResponse) Reset() { *x = GetRecoveryInfoResponse{} - mi := &file_lightning_proto_msgTypes[66] + mi := &file_lightning_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6827,7 +6478,7 @@ func (x *GetRecoveryInfoResponse) String() string { func (*GetRecoveryInfoResponse) ProtoMessage() {} func (x *GetRecoveryInfoResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[66] + mi := &file_lightning_proto_msgTypes[63] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6840,7 +6491,7 @@ func (x *GetRecoveryInfoResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetRecoveryInfoResponse.ProtoReflect.Descriptor instead. func (*GetRecoveryInfoResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{66} + return file_lightning_proto_rawDescGZIP(), []int{63} } func (x *GetRecoveryInfoResponse) GetRecoveryMode() bool { @@ -6879,7 +6530,7 @@ type Chain struct { func (x *Chain) Reset() { *x = Chain{} - mi := &file_lightning_proto_msgTypes[67] + mi := &file_lightning_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6891,7 +6542,7 @@ func (x *Chain) String() string { func (*Chain) ProtoMessage() {} func (x *Chain) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[67] + mi := &file_lightning_proto_msgTypes[64] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6904,7 +6555,7 @@ func (x *Chain) ProtoReflect() protoreflect.Message { // Deprecated: Use Chain.ProtoReflect.Descriptor instead. func (*Chain) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{67} + return file_lightning_proto_rawDescGZIP(), []int{64} } // Deprecated: Marked as deprecated in lightning.proto. @@ -6931,7 +6582,7 @@ type ChannelOpenUpdate struct { func (x *ChannelOpenUpdate) Reset() { *x = ChannelOpenUpdate{} - mi := &file_lightning_proto_msgTypes[68] + mi := &file_lightning_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6943,7 +6594,7 @@ func (x *ChannelOpenUpdate) String() string { func (*ChannelOpenUpdate) ProtoMessage() {} func (x *ChannelOpenUpdate) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[68] + mi := &file_lightning_proto_msgTypes[65] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6956,7 +6607,7 @@ func (x *ChannelOpenUpdate) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelOpenUpdate.ProtoReflect.Descriptor instead. func (*ChannelOpenUpdate) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{68} + return file_lightning_proto_rawDescGZIP(), []int{65} } func (x *ChannelOpenUpdate) GetChannelPoint() *ChannelPoint { @@ -6985,7 +6636,7 @@ type CloseOutput struct { func (x *CloseOutput) Reset() { *x = CloseOutput{} - mi := &file_lightning_proto_msgTypes[69] + mi := &file_lightning_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6997,7 +6648,7 @@ func (x *CloseOutput) String() string { func (*CloseOutput) ProtoMessage() {} func (x *CloseOutput) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[69] + mi := &file_lightning_proto_msgTypes[66] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7010,7 +6661,7 @@ func (x *CloseOutput) ProtoReflect() protoreflect.Message { // Deprecated: Use CloseOutput.ProtoReflect.Descriptor instead. func (*CloseOutput) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{69} + return file_lightning_proto_rawDescGZIP(), []int{66} } func (x *CloseOutput) GetAmountSat() int64 { @@ -7059,7 +6710,7 @@ type ChannelCloseUpdate struct { func (x *ChannelCloseUpdate) Reset() { *x = ChannelCloseUpdate{} - mi := &file_lightning_proto_msgTypes[70] + mi := &file_lightning_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7071,7 +6722,7 @@ func (x *ChannelCloseUpdate) String() string { func (*ChannelCloseUpdate) ProtoMessage() {} func (x *ChannelCloseUpdate) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[70] + mi := &file_lightning_proto_msgTypes[67] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7084,7 +6735,7 @@ func (x *ChannelCloseUpdate) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelCloseUpdate.ProtoReflect.Descriptor instead. func (*ChannelCloseUpdate) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{70} + return file_lightning_proto_rawDescGZIP(), []int{67} } func (x *ChannelCloseUpdate) GetClosingTxid() []byte { @@ -7166,7 +6817,7 @@ type CloseChannelRequest struct { func (x *CloseChannelRequest) Reset() { *x = CloseChannelRequest{} - mi := &file_lightning_proto_msgTypes[71] + mi := &file_lightning_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7178,7 +6829,7 @@ func (x *CloseChannelRequest) String() string { func (*CloseChannelRequest) ProtoMessage() {} func (x *CloseChannelRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[71] + mi := &file_lightning_proto_msgTypes[68] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7191,7 +6842,7 @@ func (x *CloseChannelRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CloseChannelRequest.ProtoReflect.Descriptor instead. func (*CloseChannelRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{71} + return file_lightning_proto_rawDescGZIP(), []int{68} } func (x *CloseChannelRequest) GetChannelPoint() *ChannelPoint { @@ -7265,7 +6916,7 @@ type CloseStatusUpdate struct { func (x *CloseStatusUpdate) Reset() { *x = CloseStatusUpdate{} - mi := &file_lightning_proto_msgTypes[72] + mi := &file_lightning_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7277,7 +6928,7 @@ func (x *CloseStatusUpdate) String() string { func (*CloseStatusUpdate) ProtoMessage() {} func (x *CloseStatusUpdate) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[72] + mi := &file_lightning_proto_msgTypes[69] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7290,7 +6941,7 @@ func (x *CloseStatusUpdate) ProtoReflect() protoreflect.Message { // Deprecated: Use CloseStatusUpdate.ProtoReflect.Descriptor instead. func (*CloseStatusUpdate) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{72} + return file_lightning_proto_rawDescGZIP(), []int{69} } func (x *CloseStatusUpdate) GetUpdate() isCloseStatusUpdate_Update { @@ -7361,7 +7012,7 @@ type PendingUpdate struct { func (x *PendingUpdate) Reset() { *x = PendingUpdate{} - mi := &file_lightning_proto_msgTypes[73] + mi := &file_lightning_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7373,7 +7024,7 @@ func (x *PendingUpdate) String() string { func (*PendingUpdate) ProtoMessage() {} func (x *PendingUpdate) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[73] + mi := &file_lightning_proto_msgTypes[70] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7386,7 +7037,7 @@ func (x *PendingUpdate) ProtoReflect() protoreflect.Message { // Deprecated: Use PendingUpdate.ProtoReflect.Descriptor instead. func (*PendingUpdate) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{73} + return file_lightning_proto_rawDescGZIP(), []int{70} } func (x *PendingUpdate) GetTxid() []byte { @@ -7429,7 +7080,7 @@ type InstantUpdate struct { func (x *InstantUpdate) Reset() { *x = InstantUpdate{} - mi := &file_lightning_proto_msgTypes[74] + mi := &file_lightning_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7441,7 +7092,7 @@ func (x *InstantUpdate) String() string { func (*InstantUpdate) ProtoMessage() {} func (x *InstantUpdate) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[74] + mi := &file_lightning_proto_msgTypes[71] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7454,7 +7105,7 @@ func (x *InstantUpdate) ProtoReflect() protoreflect.Message { // Deprecated: Use InstantUpdate.ProtoReflect.Descriptor instead. func (*InstantUpdate) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{74} + return file_lightning_proto_rawDescGZIP(), []int{71} } func (x *InstantUpdate) GetNumPendingHtlcs() int32 { @@ -7483,7 +7134,7 @@ type ReadyForPsbtFunding struct { func (x *ReadyForPsbtFunding) Reset() { *x = ReadyForPsbtFunding{} - mi := &file_lightning_proto_msgTypes[75] + mi := &file_lightning_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7495,7 +7146,7 @@ func (x *ReadyForPsbtFunding) String() string { func (*ReadyForPsbtFunding) ProtoMessage() {} func (x *ReadyForPsbtFunding) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[75] + mi := &file_lightning_proto_msgTypes[72] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7508,7 +7159,7 @@ func (x *ReadyForPsbtFunding) ProtoReflect() protoreflect.Message { // Deprecated: Use ReadyForPsbtFunding.ProtoReflect.Descriptor instead. func (*ReadyForPsbtFunding) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{75} + return file_lightning_proto_rawDescGZIP(), []int{72} } func (x *ReadyForPsbtFunding) GetFundingAddress() string { @@ -7558,7 +7209,7 @@ type BatchOpenChannelRequest struct { func (x *BatchOpenChannelRequest) Reset() { *x = BatchOpenChannelRequest{} - mi := &file_lightning_proto_msgTypes[76] + mi := &file_lightning_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7570,7 +7221,7 @@ func (x *BatchOpenChannelRequest) String() string { func (*BatchOpenChannelRequest) ProtoMessage() {} func (x *BatchOpenChannelRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[76] + mi := &file_lightning_proto_msgTypes[73] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7583,7 +7234,7 @@ func (x *BatchOpenChannelRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BatchOpenChannelRequest.ProtoReflect.Descriptor instead. func (*BatchOpenChannelRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{76} + return file_lightning_proto_rawDescGZIP(), []int{73} } func (x *BatchOpenChannelRequest) GetChannels() []*BatchOpenChannel { @@ -7713,7 +7364,7 @@ type BatchOpenChannel struct { func (x *BatchOpenChannel) Reset() { *x = BatchOpenChannel{} - mi := &file_lightning_proto_msgTypes[77] + mi := &file_lightning_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7725,7 +7376,7 @@ func (x *BatchOpenChannel) String() string { func (*BatchOpenChannel) ProtoMessage() {} func (x *BatchOpenChannel) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[77] + mi := &file_lightning_proto_msgTypes[74] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7738,7 +7389,7 @@ func (x *BatchOpenChannel) ProtoReflect() protoreflect.Message { // Deprecated: Use BatchOpenChannel.ProtoReflect.Descriptor instead. func (*BatchOpenChannel) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{77} + return file_lightning_proto_rawDescGZIP(), []int{74} } func (x *BatchOpenChannel) GetNodePubkey() []byte { @@ -7890,7 +7541,7 @@ type BatchOpenChannelResponse struct { func (x *BatchOpenChannelResponse) Reset() { *x = BatchOpenChannelResponse{} - mi := &file_lightning_proto_msgTypes[78] + mi := &file_lightning_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7902,7 +7553,7 @@ func (x *BatchOpenChannelResponse) String() string { func (*BatchOpenChannelResponse) ProtoMessage() {} func (x *BatchOpenChannelResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[78] + mi := &file_lightning_proto_msgTypes[75] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7915,7 +7566,7 @@ func (x *BatchOpenChannelResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use BatchOpenChannelResponse.ProtoReflect.Descriptor instead. func (*BatchOpenChannelResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{78} + return file_lightning_proto_rawDescGZIP(), []int{75} } func (x *BatchOpenChannelResponse) GetPendingChannels() []*PendingUpdate { @@ -8034,7 +7685,7 @@ type OpenChannelRequest struct { func (x *OpenChannelRequest) Reset() { *x = OpenChannelRequest{} - mi := &file_lightning_proto_msgTypes[79] + mi := &file_lightning_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8046,7 +7697,7 @@ func (x *OpenChannelRequest) String() string { func (*OpenChannelRequest) ProtoMessage() {} func (x *OpenChannelRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[79] + mi := &file_lightning_proto_msgTypes[76] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8059,7 +7710,7 @@ func (x *OpenChannelRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use OpenChannelRequest.ProtoReflect.Descriptor instead. func (*OpenChannelRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{79} + return file_lightning_proto_rawDescGZIP(), []int{76} } func (x *OpenChannelRequest) GetSatPerVbyte() uint64 { @@ -8277,7 +7928,7 @@ type OpenStatusUpdate struct { func (x *OpenStatusUpdate) Reset() { *x = OpenStatusUpdate{} - mi := &file_lightning_proto_msgTypes[80] + mi := &file_lightning_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8289,7 +7940,7 @@ func (x *OpenStatusUpdate) String() string { func (*OpenStatusUpdate) ProtoMessage() {} func (x *OpenStatusUpdate) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[80] + mi := &file_lightning_proto_msgTypes[77] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8302,7 +7953,7 @@ func (x *OpenStatusUpdate) ProtoReflect() protoreflect.Message { // Deprecated: Use OpenStatusUpdate.ProtoReflect.Descriptor instead. func (*OpenStatusUpdate) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{80} + return file_lightning_proto_rawDescGZIP(), []int{77} } func (x *OpenStatusUpdate) GetUpdate() isOpenStatusUpdate_Update { @@ -8386,7 +8037,7 @@ type KeyLocator struct { func (x *KeyLocator) Reset() { *x = KeyLocator{} - mi := &file_lightning_proto_msgTypes[81] + mi := &file_lightning_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8398,7 +8049,7 @@ func (x *KeyLocator) String() string { func (*KeyLocator) ProtoMessage() {} func (x *KeyLocator) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[81] + mi := &file_lightning_proto_msgTypes[78] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8411,7 +8062,7 @@ func (x *KeyLocator) ProtoReflect() protoreflect.Message { // Deprecated: Use KeyLocator.ProtoReflect.Descriptor instead. func (*KeyLocator) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{81} + return file_lightning_proto_rawDescGZIP(), []int{78} } func (x *KeyLocator) GetKeyFamily() int32 { @@ -8440,7 +8091,7 @@ type KeyDescriptor struct { func (x *KeyDescriptor) Reset() { *x = KeyDescriptor{} - mi := &file_lightning_proto_msgTypes[82] + mi := &file_lightning_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8452,7 +8103,7 @@ func (x *KeyDescriptor) String() string { func (*KeyDescriptor) ProtoMessage() {} func (x *KeyDescriptor) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[82] + mi := &file_lightning_proto_msgTypes[79] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8465,7 +8116,7 @@ func (x *KeyDescriptor) ProtoReflect() protoreflect.Message { // Deprecated: Use KeyDescriptor.ProtoReflect.Descriptor instead. func (*KeyDescriptor) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{82} + return file_lightning_proto_rawDescGZIP(), []int{79} } func (x *KeyDescriptor) GetRawKeyBytes() []byte { @@ -8512,7 +8163,7 @@ type ChanPointShim struct { func (x *ChanPointShim) Reset() { *x = ChanPointShim{} - mi := &file_lightning_proto_msgTypes[83] + mi := &file_lightning_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8524,7 +8175,7 @@ func (x *ChanPointShim) String() string { func (*ChanPointShim) ProtoMessage() {} func (x *ChanPointShim) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[83] + mi := &file_lightning_proto_msgTypes[80] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8537,7 +8188,7 @@ func (x *ChanPointShim) ProtoReflect() protoreflect.Message { // Deprecated: Use ChanPointShim.ProtoReflect.Descriptor instead. func (*ChanPointShim) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{83} + return file_lightning_proto_rawDescGZIP(), []int{80} } func (x *ChanPointShim) GetAmt() int64 { @@ -8611,7 +8262,7 @@ type PsbtShim struct { func (x *PsbtShim) Reset() { *x = PsbtShim{} - mi := &file_lightning_proto_msgTypes[84] + mi := &file_lightning_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8623,7 +8274,7 @@ func (x *PsbtShim) String() string { func (*PsbtShim) ProtoMessage() {} func (x *PsbtShim) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[84] + mi := &file_lightning_proto_msgTypes[81] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8636,7 +8287,7 @@ func (x *PsbtShim) ProtoReflect() protoreflect.Message { // Deprecated: Use PsbtShim.ProtoReflect.Descriptor instead. func (*PsbtShim) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{84} + return file_lightning_proto_rawDescGZIP(), []int{81} } func (x *PsbtShim) GetPendingChanId() []byte { @@ -8673,7 +8324,7 @@ type FundingShim struct { func (x *FundingShim) Reset() { *x = FundingShim{} - mi := &file_lightning_proto_msgTypes[85] + mi := &file_lightning_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8685,7 +8336,7 @@ func (x *FundingShim) String() string { func (*FundingShim) ProtoMessage() {} func (x *FundingShim) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[85] + mi := &file_lightning_proto_msgTypes[82] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8698,7 +8349,7 @@ func (x *FundingShim) ProtoReflect() protoreflect.Message { // Deprecated: Use FundingShim.ProtoReflect.Descriptor instead. func (*FundingShim) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{85} + return file_lightning_proto_rawDescGZIP(), []int{82} } func (x *FundingShim) GetShim() isFundingShim_Shim { @@ -8756,7 +8407,7 @@ type FundingShimCancel struct { func (x *FundingShimCancel) Reset() { *x = FundingShimCancel{} - mi := &file_lightning_proto_msgTypes[86] + mi := &file_lightning_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8768,7 +8419,7 @@ func (x *FundingShimCancel) String() string { func (*FundingShimCancel) ProtoMessage() {} func (x *FundingShimCancel) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[86] + mi := &file_lightning_proto_msgTypes[83] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8781,7 +8432,7 @@ func (x *FundingShimCancel) ProtoReflect() protoreflect.Message { // Deprecated: Use FundingShimCancel.ProtoReflect.Descriptor instead. func (*FundingShimCancel) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{86} + return file_lightning_proto_rawDescGZIP(), []int{83} } func (x *FundingShimCancel) GetPendingChanId() []byte { @@ -8816,7 +8467,7 @@ type FundingPsbtVerify struct { func (x *FundingPsbtVerify) Reset() { *x = FundingPsbtVerify{} - mi := &file_lightning_proto_msgTypes[87] + mi := &file_lightning_proto_msgTypes[84] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8828,7 +8479,7 @@ func (x *FundingPsbtVerify) String() string { func (*FundingPsbtVerify) ProtoMessage() {} func (x *FundingPsbtVerify) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[87] + mi := &file_lightning_proto_msgTypes[84] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8841,7 +8492,7 @@ func (x *FundingPsbtVerify) ProtoReflect() protoreflect.Message { // Deprecated: Use FundingPsbtVerify.ProtoReflect.Descriptor instead. func (*FundingPsbtVerify) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{87} + return file_lightning_proto_rawDescGZIP(), []int{84} } func (x *FundingPsbtVerify) GetFundedPsbt() []byte { @@ -8883,7 +8534,7 @@ type FundingPsbtFinalize struct { func (x *FundingPsbtFinalize) Reset() { *x = FundingPsbtFinalize{} - mi := &file_lightning_proto_msgTypes[88] + mi := &file_lightning_proto_msgTypes[85] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8895,7 +8546,7 @@ func (x *FundingPsbtFinalize) String() string { func (*FundingPsbtFinalize) ProtoMessage() {} func (x *FundingPsbtFinalize) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[88] + mi := &file_lightning_proto_msgTypes[85] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8908,7 +8559,7 @@ func (x *FundingPsbtFinalize) ProtoReflect() protoreflect.Message { // Deprecated: Use FundingPsbtFinalize.ProtoReflect.Descriptor instead. func (*FundingPsbtFinalize) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{88} + return file_lightning_proto_rawDescGZIP(), []int{85} } func (x *FundingPsbtFinalize) GetSignedPsbt() []byte { @@ -8947,7 +8598,7 @@ type FundingTransitionMsg struct { func (x *FundingTransitionMsg) Reset() { *x = FundingTransitionMsg{} - mi := &file_lightning_proto_msgTypes[89] + mi := &file_lightning_proto_msgTypes[86] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8959,7 +8610,7 @@ func (x *FundingTransitionMsg) String() string { func (*FundingTransitionMsg) ProtoMessage() {} func (x *FundingTransitionMsg) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[89] + mi := &file_lightning_proto_msgTypes[86] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8972,7 +8623,7 @@ func (x *FundingTransitionMsg) ProtoReflect() protoreflect.Message { // Deprecated: Use FundingTransitionMsg.ProtoReflect.Descriptor instead. func (*FundingTransitionMsg) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{89} + return file_lightning_proto_rawDescGZIP(), []int{86} } func (x *FundingTransitionMsg) GetTrigger() isFundingTransitionMsg_Trigger { @@ -9065,7 +8716,7 @@ type FundingStateStepResp struct { func (x *FundingStateStepResp) Reset() { *x = FundingStateStepResp{} - mi := &file_lightning_proto_msgTypes[90] + mi := &file_lightning_proto_msgTypes[87] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9077,7 +8728,7 @@ func (x *FundingStateStepResp) String() string { func (*FundingStateStepResp) ProtoMessage() {} func (x *FundingStateStepResp) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[90] + mi := &file_lightning_proto_msgTypes[87] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9090,7 +8741,7 @@ func (x *FundingStateStepResp) ProtoReflect() protoreflect.Message { // Deprecated: Use FundingStateStepResp.ProtoReflect.Descriptor instead. func (*FundingStateStepResp) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{90} + return file_lightning_proto_rawDescGZIP(), []int{87} } type PendingHTLC struct { @@ -9115,7 +8766,7 @@ type PendingHTLC struct { func (x *PendingHTLC) Reset() { *x = PendingHTLC{} - mi := &file_lightning_proto_msgTypes[91] + mi := &file_lightning_proto_msgTypes[88] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9127,7 +8778,7 @@ func (x *PendingHTLC) String() string { func (*PendingHTLC) ProtoMessage() {} func (x *PendingHTLC) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[91] + mi := &file_lightning_proto_msgTypes[88] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9140,7 +8791,7 @@ func (x *PendingHTLC) ProtoReflect() protoreflect.Message { // Deprecated: Use PendingHTLC.ProtoReflect.Descriptor instead. func (*PendingHTLC) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{91} + return file_lightning_proto_rawDescGZIP(), []int{88} } func (x *PendingHTLC) GetIncoming() bool { @@ -9196,7 +8847,7 @@ type PendingChannelsRequest struct { func (x *PendingChannelsRequest) Reset() { *x = PendingChannelsRequest{} - mi := &file_lightning_proto_msgTypes[92] + mi := &file_lightning_proto_msgTypes[89] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9208,7 +8859,7 @@ func (x *PendingChannelsRequest) String() string { func (*PendingChannelsRequest) ProtoMessage() {} func (x *PendingChannelsRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[92] + mi := &file_lightning_proto_msgTypes[89] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9221,7 +8872,7 @@ func (x *PendingChannelsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PendingChannelsRequest.ProtoReflect.Descriptor instead. func (*PendingChannelsRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{92} + return file_lightning_proto_rawDescGZIP(), []int{89} } func (x *PendingChannelsRequest) GetIncludeRawTx() bool { @@ -9253,7 +8904,7 @@ type PendingChannelsResponse struct { func (x *PendingChannelsResponse) Reset() { *x = PendingChannelsResponse{} - mi := &file_lightning_proto_msgTypes[93] + mi := &file_lightning_proto_msgTypes[90] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9265,7 +8916,7 @@ func (x *PendingChannelsResponse) String() string { func (*PendingChannelsResponse) ProtoMessage() {} func (x *PendingChannelsResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[93] + mi := &file_lightning_proto_msgTypes[90] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9278,7 +8929,7 @@ func (x *PendingChannelsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PendingChannelsResponse.ProtoReflect.Descriptor instead. func (*PendingChannelsResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{93} + return file_lightning_proto_rawDescGZIP(), []int{90} } func (x *PendingChannelsResponse) GetTotalLimboBalance() int64 { @@ -9325,7 +8976,7 @@ type ChannelEventSubscription struct { func (x *ChannelEventSubscription) Reset() { *x = ChannelEventSubscription{} - mi := &file_lightning_proto_msgTypes[94] + mi := &file_lightning_proto_msgTypes[91] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9337,7 +8988,7 @@ func (x *ChannelEventSubscription) String() string { func (*ChannelEventSubscription) ProtoMessage() {} func (x *ChannelEventSubscription) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[94] + mi := &file_lightning_proto_msgTypes[91] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9350,7 +9001,7 @@ func (x *ChannelEventSubscription) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelEventSubscription.ProtoReflect.Descriptor instead. func (*ChannelEventSubscription) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{94} + return file_lightning_proto_rawDescGZIP(), []int{91} } type ChannelCommitUpdate struct { @@ -9362,7 +9013,7 @@ type ChannelCommitUpdate struct { func (x *ChannelCommitUpdate) Reset() { *x = ChannelCommitUpdate{} - mi := &file_lightning_proto_msgTypes[95] + mi := &file_lightning_proto_msgTypes[92] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9374,7 +9025,7 @@ func (x *ChannelCommitUpdate) String() string { func (*ChannelCommitUpdate) ProtoMessage() {} func (x *ChannelCommitUpdate) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[95] + mi := &file_lightning_proto_msgTypes[92] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9387,7 +9038,7 @@ func (x *ChannelCommitUpdate) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelCommitUpdate.ProtoReflect.Descriptor instead. func (*ChannelCommitUpdate) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{95} + return file_lightning_proto_rawDescGZIP(), []int{92} } func (x *ChannelCommitUpdate) GetChannel() *Channel { @@ -9417,7 +9068,7 @@ type ChannelEventUpdate struct { func (x *ChannelEventUpdate) Reset() { *x = ChannelEventUpdate{} - mi := &file_lightning_proto_msgTypes[96] + mi := &file_lightning_proto_msgTypes[93] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9429,7 +9080,7 @@ func (x *ChannelEventUpdate) String() string { func (*ChannelEventUpdate) ProtoMessage() {} func (x *ChannelEventUpdate) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[96] + mi := &file_lightning_proto_msgTypes[93] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9442,7 +9093,7 @@ func (x *ChannelEventUpdate) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelEventUpdate.ProtoReflect.Descriptor instead. func (*ChannelEventUpdate) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{96} + return file_lightning_proto_rawDescGZIP(), []int{93} } func (x *ChannelEventUpdate) GetChannel() isChannelEventUpdate_Channel { @@ -9595,7 +9246,7 @@ type WalletAccountBalance struct { func (x *WalletAccountBalance) Reset() { *x = WalletAccountBalance{} - mi := &file_lightning_proto_msgTypes[97] + mi := &file_lightning_proto_msgTypes[94] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9607,7 +9258,7 @@ func (x *WalletAccountBalance) String() string { func (*WalletAccountBalance) ProtoMessage() {} func (x *WalletAccountBalance) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[97] + mi := &file_lightning_proto_msgTypes[94] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9620,7 +9271,7 @@ func (x *WalletAccountBalance) ProtoReflect() protoreflect.Message { // Deprecated: Use WalletAccountBalance.ProtoReflect.Descriptor instead. func (*WalletAccountBalance) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{97} + return file_lightning_proto_rawDescGZIP(), []int{94} } func (x *WalletAccountBalance) GetConfirmedBalance() int64 { @@ -9652,7 +9303,7 @@ type WalletBalanceRequest struct { func (x *WalletBalanceRequest) Reset() { *x = WalletBalanceRequest{} - mi := &file_lightning_proto_msgTypes[98] + mi := &file_lightning_proto_msgTypes[95] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9664,7 +9315,7 @@ func (x *WalletBalanceRequest) String() string { func (*WalletBalanceRequest) ProtoMessage() {} func (x *WalletBalanceRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[98] + mi := &file_lightning_proto_msgTypes[95] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9677,7 +9328,7 @@ func (x *WalletBalanceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WalletBalanceRequest.ProtoReflect.Descriptor instead. func (*WalletBalanceRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{98} + return file_lightning_proto_rawDescGZIP(), []int{95} } func (x *WalletBalanceRequest) GetAccount() string { @@ -9715,7 +9366,7 @@ type WalletBalanceResponse struct { func (x *WalletBalanceResponse) Reset() { *x = WalletBalanceResponse{} - mi := &file_lightning_proto_msgTypes[99] + mi := &file_lightning_proto_msgTypes[96] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9727,7 +9378,7 @@ func (x *WalletBalanceResponse) String() string { func (*WalletBalanceResponse) ProtoMessage() {} func (x *WalletBalanceResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[99] + mi := &file_lightning_proto_msgTypes[96] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9740,7 +9391,7 @@ func (x *WalletBalanceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WalletBalanceResponse.ProtoReflect.Descriptor instead. func (*WalletBalanceResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{99} + return file_lightning_proto_rawDescGZIP(), []int{96} } func (x *WalletBalanceResponse) GetTotalBalance() int64 { @@ -9797,7 +9448,7 @@ type Amount struct { func (x *Amount) Reset() { *x = Amount{} - mi := &file_lightning_proto_msgTypes[100] + mi := &file_lightning_proto_msgTypes[97] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9809,7 +9460,7 @@ func (x *Amount) String() string { func (*Amount) ProtoMessage() {} func (x *Amount) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[100] + mi := &file_lightning_proto_msgTypes[97] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9822,7 +9473,7 @@ func (x *Amount) ProtoReflect() protoreflect.Message { // Deprecated: Use Amount.ProtoReflect.Descriptor instead. func (*Amount) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{100} + return file_lightning_proto_rawDescGZIP(), []int{97} } func (x *Amount) GetSat() uint64 { @@ -9847,7 +9498,7 @@ type ChannelBalanceRequest struct { func (x *ChannelBalanceRequest) Reset() { *x = ChannelBalanceRequest{} - mi := &file_lightning_proto_msgTypes[101] + mi := &file_lightning_proto_msgTypes[98] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9859,7 +9510,7 @@ func (x *ChannelBalanceRequest) String() string { func (*ChannelBalanceRequest) ProtoMessage() {} func (x *ChannelBalanceRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[101] + mi := &file_lightning_proto_msgTypes[98] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9872,7 +9523,7 @@ func (x *ChannelBalanceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelBalanceRequest.ProtoReflect.Descriptor instead. func (*ChannelBalanceRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{101} + return file_lightning_proto_rawDescGZIP(), []int{98} } type ChannelBalanceResponse struct { @@ -9906,7 +9557,7 @@ type ChannelBalanceResponse struct { func (x *ChannelBalanceResponse) Reset() { *x = ChannelBalanceResponse{} - mi := &file_lightning_proto_msgTypes[102] + mi := &file_lightning_proto_msgTypes[99] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9918,7 +9569,7 @@ func (x *ChannelBalanceResponse) String() string { func (*ChannelBalanceResponse) ProtoMessage() {} func (x *ChannelBalanceResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[102] + mi := &file_lightning_proto_msgTypes[99] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9931,7 +9582,7 @@ func (x *ChannelBalanceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelBalanceResponse.ProtoReflect.Descriptor instead. func (*ChannelBalanceResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{102} + return file_lightning_proto_rawDescGZIP(), []int{99} } // Deprecated: Marked as deprecated in lightning.proto. @@ -10052,11 +9703,6 @@ type QueryRoutesRequest struct { // Record types are required to be in the custom range >= 65536. When using // REST, the values must be encoded as base64. DestCustomRecords map[uint64][]byte `protobuf:"bytes,13,rep,name=dest_custom_records,json=destCustomRecords,proto3" json:"dest_custom_records,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - // Deprecated, use outgoing_chan_ids. The channel id of the channel that must - // be taken to the first hop. If zero, any channel may be used. - // - // Deprecated: Marked as deprecated in lightning.proto. - OutgoingChanId uint64 `protobuf:"varint,14,opt,name=outgoing_chan_id,json=outgoingChanId,proto3" json:"outgoing_chan_id,omitempty"` // The pubkey of the last hop of the route. If empty, any hop may be used. LastHopPubkey []byte `protobuf:"bytes,15,opt,name=last_hop_pubkey,json=lastHopPubkey,proto3" json:"last_hop_pubkey,omitempty"` // Optional route hints to reach the destination through private channels. @@ -10085,7 +9731,7 @@ type QueryRoutesRequest struct { func (x *QueryRoutesRequest) Reset() { *x = QueryRoutesRequest{} - mi := &file_lightning_proto_msgTypes[103] + mi := &file_lightning_proto_msgTypes[100] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10097,7 +9743,7 @@ func (x *QueryRoutesRequest) String() string { func (*QueryRoutesRequest) ProtoMessage() {} func (x *QueryRoutesRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[103] + mi := &file_lightning_proto_msgTypes[100] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10110,7 +9756,7 @@ func (x *QueryRoutesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryRoutesRequest.ProtoReflect.Descriptor instead. func (*QueryRoutesRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{103} + return file_lightning_proto_rawDescGZIP(), []int{100} } func (x *QueryRoutesRequest) GetPubKey() string { @@ -10198,14 +9844,6 @@ func (x *QueryRoutesRequest) GetDestCustomRecords() map[uint64][]byte { return nil } -// Deprecated: Marked as deprecated in lightning.proto. -func (x *QueryRoutesRequest) GetOutgoingChanId() uint64 { - if x != nil { - return x.OutgoingChanId - } - return 0 -} - func (x *QueryRoutesRequest) GetLastHopPubkey() []byte { if x != nil { return x.LastHopPubkey @@ -10262,7 +9900,7 @@ type NodePair struct { func (x *NodePair) Reset() { *x = NodePair{} - mi := &file_lightning_proto_msgTypes[104] + mi := &file_lightning_proto_msgTypes[101] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10274,7 +9912,7 @@ func (x *NodePair) String() string { func (*NodePair) ProtoMessage() {} func (x *NodePair) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[104] + mi := &file_lightning_proto_msgTypes[101] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10287,7 +9925,7 @@ func (x *NodePair) ProtoReflect() protoreflect.Message { // Deprecated: Use NodePair.ProtoReflect.Descriptor instead. func (*NodePair) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{104} + return file_lightning_proto_rawDescGZIP(), []int{101} } func (x *NodePair) GetFrom() []byte { @@ -10319,7 +9957,7 @@ type EdgeLocator struct { func (x *EdgeLocator) Reset() { *x = EdgeLocator{} - mi := &file_lightning_proto_msgTypes[105] + mi := &file_lightning_proto_msgTypes[102] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10331,7 +9969,7 @@ func (x *EdgeLocator) String() string { func (*EdgeLocator) ProtoMessage() {} func (x *EdgeLocator) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[105] + mi := &file_lightning_proto_msgTypes[102] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10344,7 +9982,7 @@ func (x *EdgeLocator) ProtoReflect() protoreflect.Message { // Deprecated: Use EdgeLocator.ProtoReflect.Descriptor instead. func (*EdgeLocator) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{105} + return file_lightning_proto_rawDescGZIP(), []int{102} } func (x *EdgeLocator) GetChannelId() uint64 { @@ -10375,7 +10013,7 @@ type QueryRoutesResponse struct { func (x *QueryRoutesResponse) Reset() { *x = QueryRoutesResponse{} - mi := &file_lightning_proto_msgTypes[106] + mi := &file_lightning_proto_msgTypes[103] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10387,7 +10025,7 @@ func (x *QueryRoutesResponse) String() string { func (*QueryRoutesResponse) ProtoMessage() {} func (x *QueryRoutesResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[106] + mi := &file_lightning_proto_msgTypes[103] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10400,7 +10038,7 @@ func (x *QueryRoutesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryRoutesResponse.ProtoReflect.Descriptor instead. func (*QueryRoutesResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{106} + return file_lightning_proto_rawDescGZIP(), []int{103} } func (x *QueryRoutesResponse) GetRoutes() []*Route { @@ -10482,7 +10120,7 @@ type Hop struct { func (x *Hop) Reset() { *x = Hop{} - mi := &file_lightning_proto_msgTypes[107] + mi := &file_lightning_proto_msgTypes[104] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10494,7 +10132,7 @@ func (x *Hop) String() string { func (*Hop) ProtoMessage() {} func (x *Hop) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[107] + mi := &file_lightning_proto_msgTypes[104] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10507,7 +10145,7 @@ func (x *Hop) ProtoReflect() protoreflect.Message { // Deprecated: Use Hop.ProtoReflect.Descriptor instead. func (*Hop) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{107} + return file_lightning_proto_rawDescGZIP(), []int{104} } func (x *Hop) GetChanId() uint64 { @@ -10645,7 +10283,7 @@ type MPPRecord struct { func (x *MPPRecord) Reset() { *x = MPPRecord{} - mi := &file_lightning_proto_msgTypes[108] + mi := &file_lightning_proto_msgTypes[105] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10657,7 +10295,7 @@ func (x *MPPRecord) String() string { func (*MPPRecord) ProtoMessage() {} func (x *MPPRecord) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[108] + mi := &file_lightning_proto_msgTypes[105] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10670,7 +10308,7 @@ func (x *MPPRecord) ProtoReflect() protoreflect.Message { // Deprecated: Use MPPRecord.ProtoReflect.Descriptor instead. func (*MPPRecord) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{108} + return file_lightning_proto_rawDescGZIP(), []int{105} } func (x *MPPRecord) GetPaymentAddr() []byte { @@ -10698,7 +10336,7 @@ type AMPRecord struct { func (x *AMPRecord) Reset() { *x = AMPRecord{} - mi := &file_lightning_proto_msgTypes[109] + mi := &file_lightning_proto_msgTypes[106] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10710,7 +10348,7 @@ func (x *AMPRecord) String() string { func (*AMPRecord) ProtoMessage() {} func (x *AMPRecord) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[109] + mi := &file_lightning_proto_msgTypes[106] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10723,7 +10361,7 @@ func (x *AMPRecord) ProtoReflect() protoreflect.Message { // Deprecated: Use AMPRecord.ProtoReflect.Descriptor instead. func (*AMPRecord) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{109} + return file_lightning_proto_rawDescGZIP(), []int{106} } func (x *AMPRecord) GetRootShare() []byte { @@ -10793,7 +10431,7 @@ type Route struct { func (x *Route) Reset() { *x = Route{} - mi := &file_lightning_proto_msgTypes[110] + mi := &file_lightning_proto_msgTypes[107] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10805,7 +10443,7 @@ func (x *Route) String() string { func (*Route) ProtoMessage() {} func (x *Route) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[110] + mi := &file_lightning_proto_msgTypes[107] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10818,7 +10456,7 @@ func (x *Route) ProtoReflect() protoreflect.Message { // Deprecated: Use Route.ProtoReflect.Descriptor instead. func (*Route) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{110} + return file_lightning_proto_rawDescGZIP(), []int{107} } func (x *Route) GetTotalTimeLock() uint32 { @@ -10894,7 +10532,7 @@ type NodeInfoRequest struct { func (x *NodeInfoRequest) Reset() { *x = NodeInfoRequest{} - mi := &file_lightning_proto_msgTypes[111] + mi := &file_lightning_proto_msgTypes[108] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10906,7 +10544,7 @@ func (x *NodeInfoRequest) String() string { func (*NodeInfoRequest) ProtoMessage() {} func (x *NodeInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[111] + mi := &file_lightning_proto_msgTypes[108] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10919,7 +10557,7 @@ func (x *NodeInfoRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use NodeInfoRequest.ProtoReflect.Descriptor instead. func (*NodeInfoRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{111} + return file_lightning_proto_rawDescGZIP(), []int{108} } func (x *NodeInfoRequest) GetPubKey() string { @@ -10962,7 +10600,7 @@ type NodeInfo struct { func (x *NodeInfo) Reset() { *x = NodeInfo{} - mi := &file_lightning_proto_msgTypes[112] + mi := &file_lightning_proto_msgTypes[109] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10974,7 +10612,7 @@ func (x *NodeInfo) String() string { func (*NodeInfo) ProtoMessage() {} func (x *NodeInfo) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[112] + mi := &file_lightning_proto_msgTypes[109] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10987,7 +10625,7 @@ func (x *NodeInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead. func (*NodeInfo) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{112} + return file_lightning_proto_rawDescGZIP(), []int{109} } func (x *NodeInfo) GetNode() *LightningNode { @@ -11038,7 +10676,7 @@ type LightningNode struct { func (x *LightningNode) Reset() { *x = LightningNode{} - mi := &file_lightning_proto_msgTypes[113] + mi := &file_lightning_proto_msgTypes[110] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11050,7 +10688,7 @@ func (x *LightningNode) String() string { func (*LightningNode) ProtoMessage() {} func (x *LightningNode) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[113] + mi := &file_lightning_proto_msgTypes[110] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11063,7 +10701,7 @@ func (x *LightningNode) ProtoReflect() protoreflect.Message { // Deprecated: Use LightningNode.ProtoReflect.Descriptor instead. func (*LightningNode) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{113} + return file_lightning_proto_rawDescGZIP(), []int{110} } func (x *LightningNode) GetLastUpdate() uint32 { @@ -11125,7 +10763,7 @@ type NodeAddress struct { func (x *NodeAddress) Reset() { *x = NodeAddress{} - mi := &file_lightning_proto_msgTypes[114] + mi := &file_lightning_proto_msgTypes[111] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11137,7 +10775,7 @@ func (x *NodeAddress) String() string { func (*NodeAddress) ProtoMessage() {} func (x *NodeAddress) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[114] + mi := &file_lightning_proto_msgTypes[111] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11150,7 +10788,7 @@ func (x *NodeAddress) ProtoReflect() protoreflect.Message { // Deprecated: Use NodeAddress.ProtoReflect.Descriptor instead. func (*NodeAddress) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{114} + return file_lightning_proto_rawDescGZIP(), []int{111} } func (x *NodeAddress) GetNetwork() string { @@ -11187,7 +10825,7 @@ type RoutingPolicy struct { func (x *RoutingPolicy) Reset() { *x = RoutingPolicy{} - mi := &file_lightning_proto_msgTypes[115] + mi := &file_lightning_proto_msgTypes[112] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11199,7 +10837,7 @@ func (x *RoutingPolicy) String() string { func (*RoutingPolicy) ProtoMessage() {} func (x *RoutingPolicy) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[115] + mi := &file_lightning_proto_msgTypes[112] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11212,7 +10850,7 @@ func (x *RoutingPolicy) ProtoReflect() protoreflect.Message { // Deprecated: Use RoutingPolicy.ProtoReflect.Descriptor instead. func (*RoutingPolicy) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{115} + return file_lightning_proto_rawDescGZIP(), []int{112} } func (x *RoutingPolicy) GetTimeLockDelta() uint32 { @@ -11310,7 +10948,7 @@ type ChannelAuthProof struct { func (x *ChannelAuthProof) Reset() { *x = ChannelAuthProof{} - mi := &file_lightning_proto_msgTypes[116] + mi := &file_lightning_proto_msgTypes[113] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11322,7 +10960,7 @@ func (x *ChannelAuthProof) String() string { func (*ChannelAuthProof) ProtoMessage() {} func (x *ChannelAuthProof) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[116] + mi := &file_lightning_proto_msgTypes[113] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11335,7 +10973,7 @@ func (x *ChannelAuthProof) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelAuthProof.ProtoReflect.Descriptor instead. func (*ChannelAuthProof) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{116} + return file_lightning_proto_rawDescGZIP(), []int{113} } func (x *ChannelAuthProof) GetNodeSig1() []byte { @@ -11399,7 +11037,7 @@ type ChannelEdge struct { func (x *ChannelEdge) Reset() { *x = ChannelEdge{} - mi := &file_lightning_proto_msgTypes[117] + mi := &file_lightning_proto_msgTypes[114] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11411,7 +11049,7 @@ func (x *ChannelEdge) String() string { func (*ChannelEdge) ProtoMessage() {} func (x *ChannelEdge) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[117] + mi := &file_lightning_proto_msgTypes[114] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11424,7 +11062,7 @@ func (x *ChannelEdge) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelEdge.ProtoReflect.Descriptor instead. func (*ChannelEdge) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{117} + return file_lightning_proto_rawDescGZIP(), []int{114} } func (x *ChannelEdge) GetChannelId() uint64 { @@ -11512,7 +11150,7 @@ type ChannelGraphRequest struct { func (x *ChannelGraphRequest) Reset() { *x = ChannelGraphRequest{} - mi := &file_lightning_proto_msgTypes[118] + mi := &file_lightning_proto_msgTypes[115] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11524,7 +11162,7 @@ func (x *ChannelGraphRequest) String() string { func (*ChannelGraphRequest) ProtoMessage() {} func (x *ChannelGraphRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[118] + mi := &file_lightning_proto_msgTypes[115] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11537,7 +11175,7 @@ func (x *ChannelGraphRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelGraphRequest.ProtoReflect.Descriptor instead. func (*ChannelGraphRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{118} + return file_lightning_proto_rawDescGZIP(), []int{115} } func (x *ChannelGraphRequest) GetIncludeUnannounced() bool { @@ -11567,7 +11205,7 @@ type ChannelGraph struct { func (x *ChannelGraph) Reset() { *x = ChannelGraph{} - mi := &file_lightning_proto_msgTypes[119] + mi := &file_lightning_proto_msgTypes[116] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11579,7 +11217,7 @@ func (x *ChannelGraph) String() string { func (*ChannelGraph) ProtoMessage() {} func (x *ChannelGraph) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[119] + mi := &file_lightning_proto_msgTypes[116] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11592,7 +11230,7 @@ func (x *ChannelGraph) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelGraph.ProtoReflect.Descriptor instead. func (*ChannelGraph) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{119} + return file_lightning_proto_rawDescGZIP(), []int{116} } func (x *ChannelGraph) GetNodes() []*LightningNode { @@ -11619,7 +11257,7 @@ type NodeMetricsRequest struct { func (x *NodeMetricsRequest) Reset() { *x = NodeMetricsRequest{} - mi := &file_lightning_proto_msgTypes[120] + mi := &file_lightning_proto_msgTypes[117] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11631,7 +11269,7 @@ func (x *NodeMetricsRequest) String() string { func (*NodeMetricsRequest) ProtoMessage() {} func (x *NodeMetricsRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[120] + mi := &file_lightning_proto_msgTypes[117] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11644,7 +11282,7 @@ func (x *NodeMetricsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use NodeMetricsRequest.ProtoReflect.Descriptor instead. func (*NodeMetricsRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{120} + return file_lightning_proto_rawDescGZIP(), []int{117} } func (x *NodeMetricsRequest) GetTypes() []NodeMetricType { @@ -11668,7 +11306,7 @@ type NodeMetricsResponse struct { func (x *NodeMetricsResponse) Reset() { *x = NodeMetricsResponse{} - mi := &file_lightning_proto_msgTypes[121] + mi := &file_lightning_proto_msgTypes[118] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11680,7 +11318,7 @@ func (x *NodeMetricsResponse) String() string { func (*NodeMetricsResponse) ProtoMessage() {} func (x *NodeMetricsResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[121] + mi := &file_lightning_proto_msgTypes[118] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11693,7 +11331,7 @@ func (x *NodeMetricsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use NodeMetricsResponse.ProtoReflect.Descriptor instead. func (*NodeMetricsResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{121} + return file_lightning_proto_rawDescGZIP(), []int{118} } func (x *NodeMetricsResponse) GetBetweennessCentrality() map[string]*FloatMetric { @@ -11715,7 +11353,7 @@ type FloatMetric struct { func (x *FloatMetric) Reset() { *x = FloatMetric{} - mi := &file_lightning_proto_msgTypes[122] + mi := &file_lightning_proto_msgTypes[119] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11727,7 +11365,7 @@ func (x *FloatMetric) String() string { func (*FloatMetric) ProtoMessage() {} func (x *FloatMetric) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[122] + mi := &file_lightning_proto_msgTypes[119] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11740,7 +11378,7 @@ func (x *FloatMetric) ProtoReflect() protoreflect.Message { // Deprecated: Use FloatMetric.ProtoReflect.Descriptor instead. func (*FloatMetric) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{122} + return file_lightning_proto_rawDescGZIP(), []int{119} } func (x *FloatMetric) GetValue() float64 { @@ -11774,7 +11412,7 @@ type ChanInfoRequest struct { func (x *ChanInfoRequest) Reset() { *x = ChanInfoRequest{} - mi := &file_lightning_proto_msgTypes[123] + mi := &file_lightning_proto_msgTypes[120] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11786,7 +11424,7 @@ func (x *ChanInfoRequest) String() string { func (*ChanInfoRequest) ProtoMessage() {} func (x *ChanInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[123] + mi := &file_lightning_proto_msgTypes[120] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11799,7 +11437,7 @@ func (x *ChanInfoRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ChanInfoRequest.ProtoReflect.Descriptor instead. func (*ChanInfoRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{123} + return file_lightning_proto_rawDescGZIP(), []int{120} } func (x *ChanInfoRequest) GetChanId() uint64 { @@ -11831,7 +11469,7 @@ type NetworkInfoRequest struct { func (x *NetworkInfoRequest) Reset() { *x = NetworkInfoRequest{} - mi := &file_lightning_proto_msgTypes[124] + mi := &file_lightning_proto_msgTypes[121] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11843,7 +11481,7 @@ func (x *NetworkInfoRequest) String() string { func (*NetworkInfoRequest) ProtoMessage() {} func (x *NetworkInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[124] + mi := &file_lightning_proto_msgTypes[121] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11856,7 +11494,7 @@ func (x *NetworkInfoRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use NetworkInfoRequest.ProtoReflect.Descriptor instead. func (*NetworkInfoRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{124} + return file_lightning_proto_rawDescGZIP(), []int{121} } type NetworkInfo struct { @@ -11879,7 +11517,7 @@ type NetworkInfo struct { func (x *NetworkInfo) Reset() { *x = NetworkInfo{} - mi := &file_lightning_proto_msgTypes[125] + mi := &file_lightning_proto_msgTypes[122] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11891,7 +11529,7 @@ func (x *NetworkInfo) String() string { func (*NetworkInfo) ProtoMessage() {} func (x *NetworkInfo) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[125] + mi := &file_lightning_proto_msgTypes[122] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11904,7 +11542,7 @@ func (x *NetworkInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use NetworkInfo.ProtoReflect.Descriptor instead. func (*NetworkInfo) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{125} + return file_lightning_proto_rawDescGZIP(), []int{122} } func (x *NetworkInfo) GetGraphDiameter() uint32 { @@ -11992,7 +11630,7 @@ type StopRequest struct { func (x *StopRequest) Reset() { *x = StopRequest{} - mi := &file_lightning_proto_msgTypes[126] + mi := &file_lightning_proto_msgTypes[123] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12004,7 +11642,7 @@ func (x *StopRequest) String() string { func (*StopRequest) ProtoMessage() {} func (x *StopRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[126] + mi := &file_lightning_proto_msgTypes[123] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12017,7 +11655,7 @@ func (x *StopRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StopRequest.ProtoReflect.Descriptor instead. func (*StopRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{126} + return file_lightning_proto_rawDescGZIP(), []int{123} } type StopResponse struct { @@ -12030,7 +11668,7 @@ type StopResponse struct { func (x *StopResponse) Reset() { *x = StopResponse{} - mi := &file_lightning_proto_msgTypes[127] + mi := &file_lightning_proto_msgTypes[124] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12042,7 +11680,7 @@ func (x *StopResponse) String() string { func (*StopResponse) ProtoMessage() {} func (x *StopResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[127] + mi := &file_lightning_proto_msgTypes[124] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12055,7 +11693,7 @@ func (x *StopResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StopResponse.ProtoReflect.Descriptor instead. func (*StopResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{127} + return file_lightning_proto_rawDescGZIP(), []int{124} } func (x *StopResponse) GetStatus() string { @@ -12073,7 +11711,7 @@ type GraphTopologySubscription struct { func (x *GraphTopologySubscription) Reset() { *x = GraphTopologySubscription{} - mi := &file_lightning_proto_msgTypes[128] + mi := &file_lightning_proto_msgTypes[125] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12085,7 +11723,7 @@ func (x *GraphTopologySubscription) String() string { func (*GraphTopologySubscription) ProtoMessage() {} func (x *GraphTopologySubscription) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[128] + mi := &file_lightning_proto_msgTypes[125] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12098,7 +11736,7 @@ func (x *GraphTopologySubscription) ProtoReflect() protoreflect.Message { // Deprecated: Use GraphTopologySubscription.ProtoReflect.Descriptor instead. func (*GraphTopologySubscription) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{128} + return file_lightning_proto_rawDescGZIP(), []int{125} } type GraphTopologyUpdate struct { @@ -12112,7 +11750,7 @@ type GraphTopologyUpdate struct { func (x *GraphTopologyUpdate) Reset() { *x = GraphTopologyUpdate{} - mi := &file_lightning_proto_msgTypes[129] + mi := &file_lightning_proto_msgTypes[126] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12124,7 +11762,7 @@ func (x *GraphTopologyUpdate) String() string { func (*GraphTopologyUpdate) ProtoMessage() {} func (x *GraphTopologyUpdate) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[129] + mi := &file_lightning_proto_msgTypes[126] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12137,7 +11775,7 @@ func (x *GraphTopologyUpdate) ProtoReflect() protoreflect.Message { // Deprecated: Use GraphTopologyUpdate.ProtoReflect.Descriptor instead. func (*GraphTopologyUpdate) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{129} + return file_lightning_proto_rawDescGZIP(), []int{126} } func (x *GraphTopologyUpdate) GetNodeUpdates() []*NodeUpdate { @@ -12184,7 +11822,7 @@ type NodeUpdate struct { func (x *NodeUpdate) Reset() { *x = NodeUpdate{} - mi := &file_lightning_proto_msgTypes[130] + mi := &file_lightning_proto_msgTypes[127] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12196,7 +11834,7 @@ func (x *NodeUpdate) String() string { func (*NodeUpdate) ProtoMessage() {} func (x *NodeUpdate) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[130] + mi := &file_lightning_proto_msgTypes[127] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12209,7 +11847,7 @@ func (x *NodeUpdate) ProtoReflect() protoreflect.Message { // Deprecated: Use NodeUpdate.ProtoReflect.Descriptor instead. func (*NodeUpdate) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{130} + return file_lightning_proto_rawDescGZIP(), []int{127} } // Deprecated: Marked as deprecated in lightning.proto. @@ -12280,7 +11918,7 @@ type ChannelEdgeUpdate struct { func (x *ChannelEdgeUpdate) Reset() { *x = ChannelEdgeUpdate{} - mi := &file_lightning_proto_msgTypes[131] + mi := &file_lightning_proto_msgTypes[128] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12292,7 +11930,7 @@ func (x *ChannelEdgeUpdate) String() string { func (*ChannelEdgeUpdate) ProtoMessage() {} func (x *ChannelEdgeUpdate) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[131] + mi := &file_lightning_proto_msgTypes[128] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12305,7 +11943,7 @@ func (x *ChannelEdgeUpdate) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelEdgeUpdate.ProtoReflect.Descriptor instead. func (*ChannelEdgeUpdate) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{131} + return file_lightning_proto_rawDescGZIP(), []int{128} } func (x *ChannelEdgeUpdate) GetChanId() uint64 { @@ -12365,7 +12003,7 @@ type ClosedChannelUpdate struct { func (x *ClosedChannelUpdate) Reset() { *x = ClosedChannelUpdate{} - mi := &file_lightning_proto_msgTypes[132] + mi := &file_lightning_proto_msgTypes[129] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12377,7 +12015,7 @@ func (x *ClosedChannelUpdate) String() string { func (*ClosedChannelUpdate) ProtoMessage() {} func (x *ClosedChannelUpdate) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[132] + mi := &file_lightning_proto_msgTypes[129] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12390,7 +12028,7 @@ func (x *ClosedChannelUpdate) ProtoReflect() protoreflect.Message { // Deprecated: Use ClosedChannelUpdate.ProtoReflect.Descriptor instead. func (*ClosedChannelUpdate) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{132} + return file_lightning_proto_rawDescGZIP(), []int{129} } func (x *ClosedChannelUpdate) GetChanId() uint64 { @@ -12440,7 +12078,7 @@ type HopHint struct { func (x *HopHint) Reset() { *x = HopHint{} - mi := &file_lightning_proto_msgTypes[133] + mi := &file_lightning_proto_msgTypes[130] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12452,7 +12090,7 @@ func (x *HopHint) String() string { func (*HopHint) ProtoMessage() {} func (x *HopHint) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[133] + mi := &file_lightning_proto_msgTypes[130] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12465,7 +12103,7 @@ func (x *HopHint) ProtoReflect() protoreflect.Message { // Deprecated: Use HopHint.ProtoReflect.Descriptor instead. func (*HopHint) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{133} + return file_lightning_proto_rawDescGZIP(), []int{130} } func (x *HopHint) GetNodeId() string { @@ -12512,7 +12150,7 @@ type SetID struct { func (x *SetID) Reset() { *x = SetID{} - mi := &file_lightning_proto_msgTypes[134] + mi := &file_lightning_proto_msgTypes[131] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12524,7 +12162,7 @@ func (x *SetID) String() string { func (*SetID) ProtoMessage() {} func (x *SetID) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[134] + mi := &file_lightning_proto_msgTypes[131] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12537,7 +12175,7 @@ func (x *SetID) ProtoReflect() protoreflect.Message { // Deprecated: Use SetID.ProtoReflect.Descriptor instead. func (*SetID) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{134} + return file_lightning_proto_rawDescGZIP(), []int{131} } func (x *SetID) GetSetId() []byte { @@ -12558,7 +12196,7 @@ type RouteHint struct { func (x *RouteHint) Reset() { *x = RouteHint{} - mi := &file_lightning_proto_msgTypes[135] + mi := &file_lightning_proto_msgTypes[132] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12570,7 +12208,7 @@ func (x *RouteHint) String() string { func (*RouteHint) ProtoMessage() {} func (x *RouteHint) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[135] + mi := &file_lightning_proto_msgTypes[132] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12583,7 +12221,7 @@ func (x *RouteHint) ProtoReflect() protoreflect.Message { // Deprecated: Use RouteHint.ProtoReflect.Descriptor instead. func (*RouteHint) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{135} + return file_lightning_proto_rawDescGZIP(), []int{132} } func (x *RouteHint) GetHopHints() []*HopHint { @@ -12619,7 +12257,7 @@ type BlindedPaymentPath struct { func (x *BlindedPaymentPath) Reset() { *x = BlindedPaymentPath{} - mi := &file_lightning_proto_msgTypes[136] + mi := &file_lightning_proto_msgTypes[133] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12631,7 +12269,7 @@ func (x *BlindedPaymentPath) String() string { func (*BlindedPaymentPath) ProtoMessage() {} func (x *BlindedPaymentPath) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[136] + mi := &file_lightning_proto_msgTypes[133] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12644,7 +12282,7 @@ func (x *BlindedPaymentPath) ProtoReflect() protoreflect.Message { // Deprecated: Use BlindedPaymentPath.ProtoReflect.Descriptor instead. func (*BlindedPaymentPath) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{136} + return file_lightning_proto_rawDescGZIP(), []int{133} } func (x *BlindedPaymentPath) GetBlindedPath() *BlindedPath { @@ -12712,7 +12350,7 @@ type BlindedPath struct { func (x *BlindedPath) Reset() { *x = BlindedPath{} - mi := &file_lightning_proto_msgTypes[137] + mi := &file_lightning_proto_msgTypes[134] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12724,7 +12362,7 @@ func (x *BlindedPath) String() string { func (*BlindedPath) ProtoMessage() {} func (x *BlindedPath) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[137] + mi := &file_lightning_proto_msgTypes[134] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12737,7 +12375,7 @@ func (x *BlindedPath) ProtoReflect() protoreflect.Message { // Deprecated: Use BlindedPath.ProtoReflect.Descriptor instead. func (*BlindedPath) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{137} + return file_lightning_proto_rawDescGZIP(), []int{134} } func (x *BlindedPath) GetIntroductionNode() []byte { @@ -12773,7 +12411,7 @@ type BlindedHop struct { func (x *BlindedHop) Reset() { *x = BlindedHop{} - mi := &file_lightning_proto_msgTypes[138] + mi := &file_lightning_proto_msgTypes[135] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12785,7 +12423,7 @@ func (x *BlindedHop) String() string { func (*BlindedHop) ProtoMessage() {} func (x *BlindedHop) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[138] + mi := &file_lightning_proto_msgTypes[135] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12798,7 +12436,7 @@ func (x *BlindedHop) ProtoReflect() protoreflect.Message { // Deprecated: Use BlindedHop.ProtoReflect.Descriptor instead. func (*BlindedHop) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{138} + return file_lightning_proto_rawDescGZIP(), []int{135} } func (x *BlindedHop) GetBlindedNode() []byte { @@ -12831,7 +12469,7 @@ type AMPInvoiceState struct { func (x *AMPInvoiceState) Reset() { *x = AMPInvoiceState{} - mi := &file_lightning_proto_msgTypes[139] + mi := &file_lightning_proto_msgTypes[136] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12843,7 +12481,7 @@ func (x *AMPInvoiceState) String() string { func (*AMPInvoiceState) ProtoMessage() {} func (x *AMPInvoiceState) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[139] + mi := &file_lightning_proto_msgTypes[136] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12856,7 +12494,7 @@ func (x *AMPInvoiceState) ProtoReflect() protoreflect.Message { // Deprecated: Use AMPInvoiceState.ProtoReflect.Descriptor instead. func (*AMPInvoiceState) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{139} + return file_lightning_proto_rawDescGZIP(), []int{136} } func (x *AMPInvoiceState) GetState() InvoiceHTLCState { @@ -13021,7 +12659,7 @@ type Invoice struct { func (x *Invoice) Reset() { *x = Invoice{} - mi := &file_lightning_proto_msgTypes[140] + mi := &file_lightning_proto_msgTypes[137] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13033,7 +12671,7 @@ func (x *Invoice) String() string { func (*Invoice) ProtoMessage() {} func (x *Invoice) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[140] + mi := &file_lightning_proto_msgTypes[137] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13046,7 +12684,7 @@ func (x *Invoice) ProtoReflect() protoreflect.Message { // Deprecated: Use Invoice.ProtoReflect.Descriptor instead. func (*Invoice) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{140} + return file_lightning_proto_rawDescGZIP(), []int{137} } func (x *Invoice) GetMemo() string { @@ -13280,7 +12918,7 @@ type BlindedPathConfig struct { func (x *BlindedPathConfig) Reset() { *x = BlindedPathConfig{} - mi := &file_lightning_proto_msgTypes[141] + mi := &file_lightning_proto_msgTypes[138] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13292,7 +12930,7 @@ func (x *BlindedPathConfig) String() string { func (*BlindedPathConfig) ProtoMessage() {} func (x *BlindedPathConfig) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[141] + mi := &file_lightning_proto_msgTypes[138] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13305,7 +12943,7 @@ func (x *BlindedPathConfig) ProtoReflect() protoreflect.Message { // Deprecated: Use BlindedPathConfig.ProtoReflect.Descriptor instead. func (*BlindedPathConfig) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{141} + return file_lightning_proto_rawDescGZIP(), []int{138} } func (x *BlindedPathConfig) GetMinNumRealHops() uint32 { @@ -13376,7 +13014,7 @@ type InvoiceHTLC struct { func (x *InvoiceHTLC) Reset() { *x = InvoiceHTLC{} - mi := &file_lightning_proto_msgTypes[142] + mi := &file_lightning_proto_msgTypes[139] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13388,7 +13026,7 @@ func (x *InvoiceHTLC) String() string { func (*InvoiceHTLC) ProtoMessage() {} func (x *InvoiceHTLC) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[142] + mi := &file_lightning_proto_msgTypes[139] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13401,7 +13039,7 @@ func (x *InvoiceHTLC) ProtoReflect() protoreflect.Message { // Deprecated: Use InvoiceHTLC.ProtoReflect.Descriptor instead. func (*InvoiceHTLC) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{142} + return file_lightning_proto_rawDescGZIP(), []int{139} } func (x *InvoiceHTLC) GetChanId() uint64 { @@ -13511,7 +13149,7 @@ type AMP struct { func (x *AMP) Reset() { *x = AMP{} - mi := &file_lightning_proto_msgTypes[143] + mi := &file_lightning_proto_msgTypes[140] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13523,7 +13161,7 @@ func (x *AMP) String() string { func (*AMP) ProtoMessage() {} func (x *AMP) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[143] + mi := &file_lightning_proto_msgTypes[140] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13536,7 +13174,7 @@ func (x *AMP) ProtoReflect() protoreflect.Message { // Deprecated: Use AMP.ProtoReflect.Descriptor instead. func (*AMP) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{143} + return file_lightning_proto_rawDescGZIP(), []int{140} } func (x *AMP) GetRootShare() []byte { @@ -13596,7 +13234,7 @@ type AddInvoiceResponse struct { func (x *AddInvoiceResponse) Reset() { *x = AddInvoiceResponse{} - mi := &file_lightning_proto_msgTypes[144] + mi := &file_lightning_proto_msgTypes[141] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13608,7 +13246,7 @@ func (x *AddInvoiceResponse) String() string { func (*AddInvoiceResponse) ProtoMessage() {} func (x *AddInvoiceResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[144] + mi := &file_lightning_proto_msgTypes[141] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13621,7 +13259,7 @@ func (x *AddInvoiceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AddInvoiceResponse.ProtoReflect.Descriptor instead. func (*AddInvoiceResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{144} + return file_lightning_proto_rawDescGZIP(), []int{141} } func (x *AddInvoiceResponse) GetRHash() []byte { @@ -13670,7 +13308,7 @@ type PaymentHash struct { func (x *PaymentHash) Reset() { *x = PaymentHash{} - mi := &file_lightning_proto_msgTypes[145] + mi := &file_lightning_proto_msgTypes[142] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13682,7 +13320,7 @@ func (x *PaymentHash) String() string { func (*PaymentHash) ProtoMessage() {} func (x *PaymentHash) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[145] + mi := &file_lightning_proto_msgTypes[142] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13695,7 +13333,7 @@ func (x *PaymentHash) ProtoReflect() protoreflect.Message { // Deprecated: Use PaymentHash.ProtoReflect.Descriptor instead. func (*PaymentHash) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{145} + return file_lightning_proto_rawDescGZIP(), []int{142} } // Deprecated: Marked as deprecated in lightning.proto. @@ -13738,7 +13376,7 @@ type ListInvoiceRequest struct { func (x *ListInvoiceRequest) Reset() { *x = ListInvoiceRequest{} - mi := &file_lightning_proto_msgTypes[146] + mi := &file_lightning_proto_msgTypes[143] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13750,7 +13388,7 @@ func (x *ListInvoiceRequest) String() string { func (*ListInvoiceRequest) ProtoMessage() {} func (x *ListInvoiceRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[146] + mi := &file_lightning_proto_msgTypes[143] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13763,7 +13401,7 @@ func (x *ListInvoiceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListInvoiceRequest.ProtoReflect.Descriptor instead. func (*ListInvoiceRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{146} + return file_lightning_proto_rawDescGZIP(), []int{143} } func (x *ListInvoiceRequest) GetPendingOnly() bool { @@ -13825,7 +13463,7 @@ type ListInvoiceResponse struct { func (x *ListInvoiceResponse) Reset() { *x = ListInvoiceResponse{} - mi := &file_lightning_proto_msgTypes[147] + mi := &file_lightning_proto_msgTypes[144] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13837,7 +13475,7 @@ func (x *ListInvoiceResponse) String() string { func (*ListInvoiceResponse) ProtoMessage() {} func (x *ListInvoiceResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[147] + mi := &file_lightning_proto_msgTypes[144] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13850,7 +13488,7 @@ func (x *ListInvoiceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListInvoiceResponse.ProtoReflect.Descriptor instead. func (*ListInvoiceResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{147} + return file_lightning_proto_rawDescGZIP(), []int{144} } func (x *ListInvoiceResponse) GetInvoices() []*Invoice { @@ -13892,7 +13530,7 @@ type InvoiceSubscription struct { func (x *InvoiceSubscription) Reset() { *x = InvoiceSubscription{} - mi := &file_lightning_proto_msgTypes[148] + mi := &file_lightning_proto_msgTypes[145] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13904,7 +13542,7 @@ func (x *InvoiceSubscription) String() string { func (*InvoiceSubscription) ProtoMessage() {} func (x *InvoiceSubscription) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[148] + mi := &file_lightning_proto_msgTypes[145] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13917,7 +13555,7 @@ func (x *InvoiceSubscription) ProtoReflect() protoreflect.Message { // Deprecated: Use InvoiceSubscription.ProtoReflect.Descriptor instead. func (*InvoiceSubscription) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{148} + return file_lightning_proto_rawDescGZIP(), []int{145} } func (x *InvoiceSubscription) GetAddIndex() uint64 { @@ -13944,7 +13582,7 @@ type DelCanceledInvoiceReq struct { func (x *DelCanceledInvoiceReq) Reset() { *x = DelCanceledInvoiceReq{} - mi := &file_lightning_proto_msgTypes[149] + mi := &file_lightning_proto_msgTypes[146] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13956,7 +13594,7 @@ func (x *DelCanceledInvoiceReq) String() string { func (*DelCanceledInvoiceReq) ProtoMessage() {} func (x *DelCanceledInvoiceReq) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[149] + mi := &file_lightning_proto_msgTypes[146] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13969,7 +13607,7 @@ func (x *DelCanceledInvoiceReq) ProtoReflect() protoreflect.Message { // Deprecated: Use DelCanceledInvoiceReq.ProtoReflect.Descriptor instead. func (*DelCanceledInvoiceReq) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{149} + return file_lightning_proto_rawDescGZIP(), []int{146} } func (x *DelCanceledInvoiceReq) GetInvoiceHash() string { @@ -13989,7 +13627,7 @@ type DelCanceledInvoiceResp struct { func (x *DelCanceledInvoiceResp) Reset() { *x = DelCanceledInvoiceResp{} - mi := &file_lightning_proto_msgTypes[150] + mi := &file_lightning_proto_msgTypes[147] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14001,7 +13639,7 @@ func (x *DelCanceledInvoiceResp) String() string { func (*DelCanceledInvoiceResp) ProtoMessage() {} func (x *DelCanceledInvoiceResp) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[150] + mi := &file_lightning_proto_msgTypes[147] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14014,7 +13652,7 @@ func (x *DelCanceledInvoiceResp) ProtoReflect() protoreflect.Message { // Deprecated: Use DelCanceledInvoiceResp.ProtoReflect.Descriptor instead. func (*DelCanceledInvoiceResp) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{150} + return file_lightning_proto_rawDescGZIP(), []int{147} } func (x *DelCanceledInvoiceResp) GetStatus() string { @@ -14072,7 +13710,7 @@ type Payment struct { func (x *Payment) Reset() { *x = Payment{} - mi := &file_lightning_proto_msgTypes[151] + mi := &file_lightning_proto_msgTypes[148] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14084,7 +13722,7 @@ func (x *Payment) String() string { func (*Payment) ProtoMessage() {} func (x *Payment) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[151] + mi := &file_lightning_proto_msgTypes[148] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14097,7 +13735,7 @@ func (x *Payment) ProtoReflect() protoreflect.Message { // Deprecated: Use Payment.ProtoReflect.Descriptor instead. func (*Payment) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{151} + return file_lightning_proto_rawDescGZIP(), []int{148} } func (x *Payment) GetPaymentHash() string { @@ -14238,7 +13876,7 @@ type HTLCAttempt struct { func (x *HTLCAttempt) Reset() { *x = HTLCAttempt{} - mi := &file_lightning_proto_msgTypes[152] + mi := &file_lightning_proto_msgTypes[149] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14250,7 +13888,7 @@ func (x *HTLCAttempt) String() string { func (*HTLCAttempt) ProtoMessage() {} func (x *HTLCAttempt) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[152] + mi := &file_lightning_proto_msgTypes[149] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14263,7 +13901,7 @@ func (x *HTLCAttempt) ProtoReflect() protoreflect.Message { // Deprecated: Use HTLCAttempt.ProtoReflect.Descriptor instead. func (*HTLCAttempt) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{152} + return file_lightning_proto_rawDescGZIP(), []int{149} } func (x *HTLCAttempt) GetAttemptId() uint64 { @@ -14354,7 +13992,7 @@ type ListPaymentsRequest struct { func (x *ListPaymentsRequest) Reset() { *x = ListPaymentsRequest{} - mi := &file_lightning_proto_msgTypes[153] + mi := &file_lightning_proto_msgTypes[150] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14366,7 +14004,7 @@ func (x *ListPaymentsRequest) String() string { func (*ListPaymentsRequest) ProtoMessage() {} func (x *ListPaymentsRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[153] + mi := &file_lightning_proto_msgTypes[150] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14379,7 +14017,7 @@ func (x *ListPaymentsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPaymentsRequest.ProtoReflect.Descriptor instead. func (*ListPaymentsRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{153} + return file_lightning_proto_rawDescGZIP(), []int{150} } func (x *ListPaymentsRequest) GetIncludeIncomplete() bool { @@ -14459,7 +14097,7 @@ type ListPaymentsResponse struct { func (x *ListPaymentsResponse) Reset() { *x = ListPaymentsResponse{} - mi := &file_lightning_proto_msgTypes[154] + mi := &file_lightning_proto_msgTypes[151] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14471,7 +14109,7 @@ func (x *ListPaymentsResponse) String() string { func (*ListPaymentsResponse) ProtoMessage() {} func (x *ListPaymentsResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[154] + mi := &file_lightning_proto_msgTypes[151] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14484,7 +14122,7 @@ func (x *ListPaymentsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPaymentsResponse.ProtoReflect.Descriptor instead. func (*ListPaymentsResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{154} + return file_lightning_proto_rawDescGZIP(), []int{151} } func (x *ListPaymentsResponse) GetPayments() []*Payment { @@ -14527,7 +14165,7 @@ type DeletePaymentRequest struct { func (x *DeletePaymentRequest) Reset() { *x = DeletePaymentRequest{} - mi := &file_lightning_proto_msgTypes[155] + mi := &file_lightning_proto_msgTypes[152] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14539,7 +14177,7 @@ func (x *DeletePaymentRequest) String() string { func (*DeletePaymentRequest) ProtoMessage() {} func (x *DeletePaymentRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[155] + mi := &file_lightning_proto_msgTypes[152] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14552,7 +14190,7 @@ func (x *DeletePaymentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePaymentRequest.ProtoReflect.Descriptor instead. func (*DeletePaymentRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{155} + return file_lightning_proto_rawDescGZIP(), []int{152} } func (x *DeletePaymentRequest) GetPaymentHash() []byte { @@ -14584,7 +14222,7 @@ type DeleteAllPaymentsRequest struct { func (x *DeleteAllPaymentsRequest) Reset() { *x = DeleteAllPaymentsRequest{} - mi := &file_lightning_proto_msgTypes[156] + mi := &file_lightning_proto_msgTypes[153] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14596,7 +14234,7 @@ func (x *DeleteAllPaymentsRequest) String() string { func (*DeleteAllPaymentsRequest) ProtoMessage() {} func (x *DeleteAllPaymentsRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[156] + mi := &file_lightning_proto_msgTypes[153] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14609,7 +14247,7 @@ func (x *DeleteAllPaymentsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteAllPaymentsRequest.ProtoReflect.Descriptor instead. func (*DeleteAllPaymentsRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{156} + return file_lightning_proto_rawDescGZIP(), []int{153} } func (x *DeleteAllPaymentsRequest) GetFailedPaymentsOnly() bool { @@ -14643,7 +14281,7 @@ type DeletePaymentResponse struct { func (x *DeletePaymentResponse) Reset() { *x = DeletePaymentResponse{} - mi := &file_lightning_proto_msgTypes[157] + mi := &file_lightning_proto_msgTypes[154] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14655,7 +14293,7 @@ func (x *DeletePaymentResponse) String() string { func (*DeletePaymentResponse) ProtoMessage() {} func (x *DeletePaymentResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[157] + mi := &file_lightning_proto_msgTypes[154] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14668,7 +14306,7 @@ func (x *DeletePaymentResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePaymentResponse.ProtoReflect.Descriptor instead. func (*DeletePaymentResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{157} + return file_lightning_proto_rawDescGZIP(), []int{154} } func (x *DeletePaymentResponse) GetStatus() string { @@ -14688,7 +14326,7 @@ type DeleteAllPaymentsResponse struct { func (x *DeleteAllPaymentsResponse) Reset() { *x = DeleteAllPaymentsResponse{} - mi := &file_lightning_proto_msgTypes[158] + mi := &file_lightning_proto_msgTypes[155] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14700,7 +14338,7 @@ func (x *DeleteAllPaymentsResponse) String() string { func (*DeleteAllPaymentsResponse) ProtoMessage() {} func (x *DeleteAllPaymentsResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[158] + mi := &file_lightning_proto_msgTypes[155] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14713,7 +14351,7 @@ func (x *DeleteAllPaymentsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteAllPaymentsResponse.ProtoReflect.Descriptor instead. func (*DeleteAllPaymentsResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{158} + return file_lightning_proto_rawDescGZIP(), []int{155} } func (x *DeleteAllPaymentsResponse) GetStatus() string { @@ -14737,7 +14375,7 @@ type AbandonChannelRequest struct { func (x *AbandonChannelRequest) Reset() { *x = AbandonChannelRequest{} - mi := &file_lightning_proto_msgTypes[159] + mi := &file_lightning_proto_msgTypes[156] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14749,7 +14387,7 @@ func (x *AbandonChannelRequest) String() string { func (*AbandonChannelRequest) ProtoMessage() {} func (x *AbandonChannelRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[159] + mi := &file_lightning_proto_msgTypes[156] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14762,7 +14400,7 @@ func (x *AbandonChannelRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AbandonChannelRequest.ProtoReflect.Descriptor instead. func (*AbandonChannelRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{159} + return file_lightning_proto_rawDescGZIP(), []int{156} } func (x *AbandonChannelRequest) GetChannelPoint() *ChannelPoint { @@ -14796,7 +14434,7 @@ type AbandonChannelResponse struct { func (x *AbandonChannelResponse) Reset() { *x = AbandonChannelResponse{} - mi := &file_lightning_proto_msgTypes[160] + mi := &file_lightning_proto_msgTypes[157] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14808,7 +14446,7 @@ func (x *AbandonChannelResponse) String() string { func (*AbandonChannelResponse) ProtoMessage() {} func (x *AbandonChannelResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[160] + mi := &file_lightning_proto_msgTypes[157] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14821,7 +14459,7 @@ func (x *AbandonChannelResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AbandonChannelResponse.ProtoReflect.Descriptor instead. func (*AbandonChannelResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{160} + return file_lightning_proto_rawDescGZIP(), []int{157} } func (x *AbandonChannelResponse) GetStatus() string { @@ -14841,7 +14479,7 @@ type DebugLevelRequest struct { func (x *DebugLevelRequest) Reset() { *x = DebugLevelRequest{} - mi := &file_lightning_proto_msgTypes[161] + mi := &file_lightning_proto_msgTypes[158] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14853,7 +14491,7 @@ func (x *DebugLevelRequest) String() string { func (*DebugLevelRequest) ProtoMessage() {} func (x *DebugLevelRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[161] + mi := &file_lightning_proto_msgTypes[158] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14866,7 +14504,7 @@ func (x *DebugLevelRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DebugLevelRequest.ProtoReflect.Descriptor instead. func (*DebugLevelRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{161} + return file_lightning_proto_rawDescGZIP(), []int{158} } func (x *DebugLevelRequest) GetShow() bool { @@ -14892,7 +14530,7 @@ type DebugLevelResponse struct { func (x *DebugLevelResponse) Reset() { *x = DebugLevelResponse{} - mi := &file_lightning_proto_msgTypes[162] + mi := &file_lightning_proto_msgTypes[159] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14904,7 +14542,7 @@ func (x *DebugLevelResponse) String() string { func (*DebugLevelResponse) ProtoMessage() {} func (x *DebugLevelResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[162] + mi := &file_lightning_proto_msgTypes[159] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14917,7 +14555,7 @@ func (x *DebugLevelResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DebugLevelResponse.ProtoReflect.Descriptor instead. func (*DebugLevelResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{162} + return file_lightning_proto_rawDescGZIP(), []int{159} } func (x *DebugLevelResponse) GetSubSystems() string { @@ -14937,7 +14575,7 @@ type PayReqString struct { func (x *PayReqString) Reset() { *x = PayReqString{} - mi := &file_lightning_proto_msgTypes[163] + mi := &file_lightning_proto_msgTypes[160] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14949,7 +14587,7 @@ func (x *PayReqString) String() string { func (*PayReqString) ProtoMessage() {} func (x *PayReqString) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[163] + mi := &file_lightning_proto_msgTypes[160] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14962,7 +14600,7 @@ func (x *PayReqString) ProtoReflect() protoreflect.Message { // Deprecated: Use PayReqString.ProtoReflect.Descriptor instead. func (*PayReqString) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{163} + return file_lightning_proto_rawDescGZIP(), []int{160} } func (x *PayReqString) GetPayReq() string { @@ -14994,7 +14632,7 @@ type PayReq struct { func (x *PayReq) Reset() { *x = PayReq{} - mi := &file_lightning_proto_msgTypes[164] + mi := &file_lightning_proto_msgTypes[161] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15006,7 +14644,7 @@ func (x *PayReq) String() string { func (*PayReq) ProtoMessage() {} func (x *PayReq) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[164] + mi := &file_lightning_proto_msgTypes[161] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15019,7 +14657,7 @@ func (x *PayReq) ProtoReflect() protoreflect.Message { // Deprecated: Use PayReq.ProtoReflect.Descriptor instead. func (*PayReq) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{164} + return file_lightning_proto_rawDescGZIP(), []int{161} } func (x *PayReq) GetDestination() string { @@ -15131,7 +14769,7 @@ type Feature struct { func (x *Feature) Reset() { *x = Feature{} - mi := &file_lightning_proto_msgTypes[165] + mi := &file_lightning_proto_msgTypes[162] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15143,7 +14781,7 @@ func (x *Feature) String() string { func (*Feature) ProtoMessage() {} func (x *Feature) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[165] + mi := &file_lightning_proto_msgTypes[162] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15156,7 +14794,7 @@ func (x *Feature) ProtoReflect() protoreflect.Message { // Deprecated: Use Feature.ProtoReflect.Descriptor instead. func (*Feature) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{165} + return file_lightning_proto_rawDescGZIP(), []int{162} } func (x *Feature) GetName() string { @@ -15188,7 +14826,7 @@ type FeeReportRequest struct { func (x *FeeReportRequest) Reset() { *x = FeeReportRequest{} - mi := &file_lightning_proto_msgTypes[166] + mi := &file_lightning_proto_msgTypes[163] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15200,7 +14838,7 @@ func (x *FeeReportRequest) String() string { func (*FeeReportRequest) ProtoMessage() {} func (x *FeeReportRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[166] + mi := &file_lightning_proto_msgTypes[163] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15213,7 +14851,7 @@ func (x *FeeReportRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use FeeReportRequest.ProtoReflect.Descriptor instead. func (*FeeReportRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{166} + return file_lightning_proto_rawDescGZIP(), []int{163} } type ChannelFeeReport struct { @@ -15241,7 +14879,7 @@ type ChannelFeeReport struct { func (x *ChannelFeeReport) Reset() { *x = ChannelFeeReport{} - mi := &file_lightning_proto_msgTypes[167] + mi := &file_lightning_proto_msgTypes[164] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15253,7 +14891,7 @@ func (x *ChannelFeeReport) String() string { func (*ChannelFeeReport) ProtoMessage() {} func (x *ChannelFeeReport) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[167] + mi := &file_lightning_proto_msgTypes[164] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15266,7 +14904,7 @@ func (x *ChannelFeeReport) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelFeeReport.ProtoReflect.Descriptor instead. func (*ChannelFeeReport) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{167} + return file_lightning_proto_rawDescGZIP(), []int{164} } func (x *ChannelFeeReport) GetChanId() uint64 { @@ -15338,7 +14976,7 @@ type FeeReportResponse struct { func (x *FeeReportResponse) Reset() { *x = FeeReportResponse{} - mi := &file_lightning_proto_msgTypes[168] + mi := &file_lightning_proto_msgTypes[165] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15350,7 +14988,7 @@ func (x *FeeReportResponse) String() string { func (*FeeReportResponse) ProtoMessage() {} func (x *FeeReportResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[168] + mi := &file_lightning_proto_msgTypes[165] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15363,7 +15001,7 @@ func (x *FeeReportResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use FeeReportResponse.ProtoReflect.Descriptor instead. func (*FeeReportResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{168} + return file_lightning_proto_rawDescGZIP(), []int{165} } func (x *FeeReportResponse) GetChannelFees() []*ChannelFeeReport { @@ -15408,7 +15046,7 @@ type InboundFee struct { func (x *InboundFee) Reset() { *x = InboundFee{} - mi := &file_lightning_proto_msgTypes[169] + mi := &file_lightning_proto_msgTypes[166] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15420,7 +15058,7 @@ func (x *InboundFee) String() string { func (*InboundFee) ProtoMessage() {} func (x *InboundFee) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[169] + mi := &file_lightning_proto_msgTypes[166] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15433,7 +15071,7 @@ func (x *InboundFee) ProtoReflect() protoreflect.Message { // Deprecated: Use InboundFee.ProtoReflect.Descriptor instead. func (*InboundFee) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{169} + return file_lightning_proto_rawDescGZIP(), []int{166} } func (x *InboundFee) GetBaseFeeMsat() int32 { @@ -15491,7 +15129,7 @@ type PolicyUpdateRequest struct { func (x *PolicyUpdateRequest) Reset() { *x = PolicyUpdateRequest{} - mi := &file_lightning_proto_msgTypes[170] + mi := &file_lightning_proto_msgTypes[167] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15503,7 +15141,7 @@ func (x *PolicyUpdateRequest) String() string { func (*PolicyUpdateRequest) ProtoMessage() {} func (x *PolicyUpdateRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[170] + mi := &file_lightning_proto_msgTypes[167] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15516,7 +15154,7 @@ func (x *PolicyUpdateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PolicyUpdateRequest.ProtoReflect.Descriptor instead. func (*PolicyUpdateRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{170} + return file_lightning_proto_rawDescGZIP(), []int{167} } func (x *PolicyUpdateRequest) GetScope() isPolicyUpdateRequest_Scope { @@ -15639,7 +15277,7 @@ type FailedUpdate struct { func (x *FailedUpdate) Reset() { *x = FailedUpdate{} - mi := &file_lightning_proto_msgTypes[171] + mi := &file_lightning_proto_msgTypes[168] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15651,7 +15289,7 @@ func (x *FailedUpdate) String() string { func (*FailedUpdate) ProtoMessage() {} func (x *FailedUpdate) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[171] + mi := &file_lightning_proto_msgTypes[168] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15664,7 +15302,7 @@ func (x *FailedUpdate) ProtoReflect() protoreflect.Message { // Deprecated: Use FailedUpdate.ProtoReflect.Descriptor instead. func (*FailedUpdate) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{171} + return file_lightning_proto_rawDescGZIP(), []int{168} } func (x *FailedUpdate) GetOutpoint() *OutPoint { @@ -15698,7 +15336,7 @@ type PolicyUpdateResponse struct { func (x *PolicyUpdateResponse) Reset() { *x = PolicyUpdateResponse{} - mi := &file_lightning_proto_msgTypes[172] + mi := &file_lightning_proto_msgTypes[169] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15710,7 +15348,7 @@ func (x *PolicyUpdateResponse) String() string { func (*PolicyUpdateResponse) ProtoMessage() {} func (x *PolicyUpdateResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[172] + mi := &file_lightning_proto_msgTypes[169] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15723,7 +15361,7 @@ func (x *PolicyUpdateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PolicyUpdateResponse.ProtoReflect.Descriptor instead. func (*PolicyUpdateResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{172} + return file_lightning_proto_rawDescGZIP(), []int{169} } func (x *PolicyUpdateResponse) GetFailedUpdates() []*FailedUpdate { @@ -15764,7 +15402,7 @@ type ForwardingHistoryRequest struct { func (x *ForwardingHistoryRequest) Reset() { *x = ForwardingHistoryRequest{} - mi := &file_lightning_proto_msgTypes[173] + mi := &file_lightning_proto_msgTypes[170] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15776,7 +15414,7 @@ func (x *ForwardingHistoryRequest) String() string { func (*ForwardingHistoryRequest) ProtoMessage() {} func (x *ForwardingHistoryRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[173] + mi := &file_lightning_proto_msgTypes[170] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15789,7 +15427,7 @@ func (x *ForwardingHistoryRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ForwardingHistoryRequest.ProtoReflect.Descriptor instead. func (*ForwardingHistoryRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{173} + return file_lightning_proto_rawDescGZIP(), []int{170} } func (x *ForwardingHistoryRequest) GetStartTime() uint64 { @@ -15888,7 +15526,7 @@ type ForwardingEvent struct { func (x *ForwardingEvent) Reset() { *x = ForwardingEvent{} - mi := &file_lightning_proto_msgTypes[174] + mi := &file_lightning_proto_msgTypes[171] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15900,7 +15538,7 @@ func (x *ForwardingEvent) String() string { func (*ForwardingEvent) ProtoMessage() {} func (x *ForwardingEvent) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[174] + mi := &file_lightning_proto_msgTypes[171] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15913,7 +15551,7 @@ func (x *ForwardingEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use ForwardingEvent.ProtoReflect.Descriptor instead. func (*ForwardingEvent) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{174} + return file_lightning_proto_rawDescGZIP(), []int{171} } // Deprecated: Marked as deprecated in lightning.proto. @@ -16029,7 +15667,7 @@ type ForwardingHistoryResponse struct { func (x *ForwardingHistoryResponse) Reset() { *x = ForwardingHistoryResponse{} - mi := &file_lightning_proto_msgTypes[175] + mi := &file_lightning_proto_msgTypes[172] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16041,7 +15679,7 @@ func (x *ForwardingHistoryResponse) String() string { func (*ForwardingHistoryResponse) ProtoMessage() {} func (x *ForwardingHistoryResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[175] + mi := &file_lightning_proto_msgTypes[172] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16054,7 +15692,7 @@ func (x *ForwardingHistoryResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ForwardingHistoryResponse.ProtoReflect.Descriptor instead. func (*ForwardingHistoryResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{175} + return file_lightning_proto_rawDescGZIP(), []int{172} } func (x *ForwardingHistoryResponse) GetForwardingEvents() []*ForwardingEvent { @@ -16081,7 +15719,7 @@ type ExportChannelBackupRequest struct { func (x *ExportChannelBackupRequest) Reset() { *x = ExportChannelBackupRequest{} - mi := &file_lightning_proto_msgTypes[176] + mi := &file_lightning_proto_msgTypes[173] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16093,7 +15731,7 @@ func (x *ExportChannelBackupRequest) String() string { func (*ExportChannelBackupRequest) ProtoMessage() {} func (x *ExportChannelBackupRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[176] + mi := &file_lightning_proto_msgTypes[173] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16106,7 +15744,7 @@ func (x *ExportChannelBackupRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ExportChannelBackupRequest.ProtoReflect.Descriptor instead. func (*ExportChannelBackupRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{176} + return file_lightning_proto_rawDescGZIP(), []int{173} } func (x *ExportChannelBackupRequest) GetChanPoint() *ChannelPoint { @@ -16131,7 +15769,7 @@ type ChannelBackup struct { func (x *ChannelBackup) Reset() { *x = ChannelBackup{} - mi := &file_lightning_proto_msgTypes[177] + mi := &file_lightning_proto_msgTypes[174] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16143,7 +15781,7 @@ func (x *ChannelBackup) String() string { func (*ChannelBackup) ProtoMessage() {} func (x *ChannelBackup) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[177] + mi := &file_lightning_proto_msgTypes[174] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16156,7 +15794,7 @@ func (x *ChannelBackup) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelBackup.ProtoReflect.Descriptor instead. func (*ChannelBackup) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{177} + return file_lightning_proto_rawDescGZIP(), []int{174} } func (x *ChannelBackup) GetChanPoint() *ChannelPoint { @@ -16188,7 +15826,7 @@ type MultiChanBackup struct { func (x *MultiChanBackup) Reset() { *x = MultiChanBackup{} - mi := &file_lightning_proto_msgTypes[178] + mi := &file_lightning_proto_msgTypes[175] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16200,7 +15838,7 @@ func (x *MultiChanBackup) String() string { func (*MultiChanBackup) ProtoMessage() {} func (x *MultiChanBackup) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[178] + mi := &file_lightning_proto_msgTypes[175] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16213,7 +15851,7 @@ func (x *MultiChanBackup) ProtoReflect() protoreflect.Message { // Deprecated: Use MultiChanBackup.ProtoReflect.Descriptor instead. func (*MultiChanBackup) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{178} + return file_lightning_proto_rawDescGZIP(), []int{175} } func (x *MultiChanBackup) GetChanPoints() []*ChannelPoint { @@ -16238,7 +15876,7 @@ type ChanBackupExportRequest struct { func (x *ChanBackupExportRequest) Reset() { *x = ChanBackupExportRequest{} - mi := &file_lightning_proto_msgTypes[179] + mi := &file_lightning_proto_msgTypes[176] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16250,7 +15888,7 @@ func (x *ChanBackupExportRequest) String() string { func (*ChanBackupExportRequest) ProtoMessage() {} func (x *ChanBackupExportRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[179] + mi := &file_lightning_proto_msgTypes[176] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16263,7 +15901,7 @@ func (x *ChanBackupExportRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ChanBackupExportRequest.ProtoReflect.Descriptor instead. func (*ChanBackupExportRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{179} + return file_lightning_proto_rawDescGZIP(), []int{176} } type ChanBackupSnapshot struct { @@ -16280,7 +15918,7 @@ type ChanBackupSnapshot struct { func (x *ChanBackupSnapshot) Reset() { *x = ChanBackupSnapshot{} - mi := &file_lightning_proto_msgTypes[180] + mi := &file_lightning_proto_msgTypes[177] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16292,7 +15930,7 @@ func (x *ChanBackupSnapshot) String() string { func (*ChanBackupSnapshot) ProtoMessage() {} func (x *ChanBackupSnapshot) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[180] + mi := &file_lightning_proto_msgTypes[177] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16305,7 +15943,7 @@ func (x *ChanBackupSnapshot) ProtoReflect() protoreflect.Message { // Deprecated: Use ChanBackupSnapshot.ProtoReflect.Descriptor instead. func (*ChanBackupSnapshot) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{180} + return file_lightning_proto_rawDescGZIP(), []int{177} } func (x *ChanBackupSnapshot) GetSingleChanBackups() *ChannelBackups { @@ -16332,7 +15970,7 @@ type ChannelBackups struct { func (x *ChannelBackups) Reset() { *x = ChannelBackups{} - mi := &file_lightning_proto_msgTypes[181] + mi := &file_lightning_proto_msgTypes[178] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16344,7 +15982,7 @@ func (x *ChannelBackups) String() string { func (*ChannelBackups) ProtoMessage() {} func (x *ChannelBackups) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[181] + mi := &file_lightning_proto_msgTypes[178] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16357,7 +15995,7 @@ func (x *ChannelBackups) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelBackups.ProtoReflect.Descriptor instead. func (*ChannelBackups) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{181} + return file_lightning_proto_rawDescGZIP(), []int{178} } func (x *ChannelBackups) GetChanBackups() []*ChannelBackup { @@ -16380,7 +16018,7 @@ type RestoreChanBackupRequest struct { func (x *RestoreChanBackupRequest) Reset() { *x = RestoreChanBackupRequest{} - mi := &file_lightning_proto_msgTypes[182] + mi := &file_lightning_proto_msgTypes[179] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16392,7 +16030,7 @@ func (x *RestoreChanBackupRequest) String() string { func (*RestoreChanBackupRequest) ProtoMessage() {} func (x *RestoreChanBackupRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[182] + mi := &file_lightning_proto_msgTypes[179] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16405,7 +16043,7 @@ func (x *RestoreChanBackupRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RestoreChanBackupRequest.ProtoReflect.Descriptor instead. func (*RestoreChanBackupRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{182} + return file_lightning_proto_rawDescGZIP(), []int{179} } func (x *RestoreChanBackupRequest) GetBackup() isRestoreChanBackupRequest_Backup { @@ -16462,7 +16100,7 @@ type RestoreBackupResponse struct { func (x *RestoreBackupResponse) Reset() { *x = RestoreBackupResponse{} - mi := &file_lightning_proto_msgTypes[183] + mi := &file_lightning_proto_msgTypes[180] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16474,7 +16112,7 @@ func (x *RestoreBackupResponse) String() string { func (*RestoreBackupResponse) ProtoMessage() {} func (x *RestoreBackupResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[183] + mi := &file_lightning_proto_msgTypes[180] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16487,7 +16125,7 @@ func (x *RestoreBackupResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RestoreBackupResponse.ProtoReflect.Descriptor instead. func (*RestoreBackupResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{183} + return file_lightning_proto_rawDescGZIP(), []int{180} } func (x *RestoreBackupResponse) GetNumRestored() uint32 { @@ -16505,7 +16143,7 @@ type ChannelBackupSubscription struct { func (x *ChannelBackupSubscription) Reset() { *x = ChannelBackupSubscription{} - mi := &file_lightning_proto_msgTypes[184] + mi := &file_lightning_proto_msgTypes[181] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16517,7 +16155,7 @@ func (x *ChannelBackupSubscription) String() string { func (*ChannelBackupSubscription) ProtoMessage() {} func (x *ChannelBackupSubscription) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[184] + mi := &file_lightning_proto_msgTypes[181] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16530,7 +16168,7 @@ func (x *ChannelBackupSubscription) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelBackupSubscription.ProtoReflect.Descriptor instead. func (*ChannelBackupSubscription) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{184} + return file_lightning_proto_rawDescGZIP(), []int{181} } type VerifyChanBackupResponse struct { @@ -16542,7 +16180,7 @@ type VerifyChanBackupResponse struct { func (x *VerifyChanBackupResponse) Reset() { *x = VerifyChanBackupResponse{} - mi := &file_lightning_proto_msgTypes[185] + mi := &file_lightning_proto_msgTypes[182] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16554,7 +16192,7 @@ func (x *VerifyChanBackupResponse) String() string { func (*VerifyChanBackupResponse) ProtoMessage() {} func (x *VerifyChanBackupResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[185] + mi := &file_lightning_proto_msgTypes[182] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16567,7 +16205,7 @@ func (x *VerifyChanBackupResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use VerifyChanBackupResponse.ProtoReflect.Descriptor instead. func (*VerifyChanBackupResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{185} + return file_lightning_proto_rawDescGZIP(), []int{182} } func (x *VerifyChanBackupResponse) GetChanPoints() []string { @@ -16589,7 +16227,7 @@ type MacaroonPermission struct { func (x *MacaroonPermission) Reset() { *x = MacaroonPermission{} - mi := &file_lightning_proto_msgTypes[186] + mi := &file_lightning_proto_msgTypes[183] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16601,7 +16239,7 @@ func (x *MacaroonPermission) String() string { func (*MacaroonPermission) ProtoMessage() {} func (x *MacaroonPermission) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[186] + mi := &file_lightning_proto_msgTypes[183] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16614,7 +16252,7 @@ func (x *MacaroonPermission) ProtoReflect() protoreflect.Message { // Deprecated: Use MacaroonPermission.ProtoReflect.Descriptor instead. func (*MacaroonPermission) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{186} + return file_lightning_proto_rawDescGZIP(), []int{183} } func (x *MacaroonPermission) GetEntity() string { @@ -16646,7 +16284,7 @@ type BakeMacaroonRequest struct { func (x *BakeMacaroonRequest) Reset() { *x = BakeMacaroonRequest{} - mi := &file_lightning_proto_msgTypes[187] + mi := &file_lightning_proto_msgTypes[184] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16658,7 +16296,7 @@ func (x *BakeMacaroonRequest) String() string { func (*BakeMacaroonRequest) ProtoMessage() {} func (x *BakeMacaroonRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[187] + mi := &file_lightning_proto_msgTypes[184] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16671,7 +16309,7 @@ func (x *BakeMacaroonRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BakeMacaroonRequest.ProtoReflect.Descriptor instead. func (*BakeMacaroonRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{187} + return file_lightning_proto_rawDescGZIP(), []int{184} } func (x *BakeMacaroonRequest) GetPermissions() []*MacaroonPermission { @@ -16705,7 +16343,7 @@ type BakeMacaroonResponse struct { func (x *BakeMacaroonResponse) Reset() { *x = BakeMacaroonResponse{} - mi := &file_lightning_proto_msgTypes[188] + mi := &file_lightning_proto_msgTypes[185] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16717,7 +16355,7 @@ func (x *BakeMacaroonResponse) String() string { func (*BakeMacaroonResponse) ProtoMessage() {} func (x *BakeMacaroonResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[188] + mi := &file_lightning_proto_msgTypes[185] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16730,7 +16368,7 @@ func (x *BakeMacaroonResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use BakeMacaroonResponse.ProtoReflect.Descriptor instead. func (*BakeMacaroonResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{188} + return file_lightning_proto_rawDescGZIP(), []int{185} } func (x *BakeMacaroonResponse) GetMacaroon() string { @@ -16748,7 +16386,7 @@ type ListMacaroonIDsRequest struct { func (x *ListMacaroonIDsRequest) Reset() { *x = ListMacaroonIDsRequest{} - mi := &file_lightning_proto_msgTypes[189] + mi := &file_lightning_proto_msgTypes[186] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16760,7 +16398,7 @@ func (x *ListMacaroonIDsRequest) String() string { func (*ListMacaroonIDsRequest) ProtoMessage() {} func (x *ListMacaroonIDsRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[189] + mi := &file_lightning_proto_msgTypes[186] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16773,7 +16411,7 @@ func (x *ListMacaroonIDsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListMacaroonIDsRequest.ProtoReflect.Descriptor instead. func (*ListMacaroonIDsRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{189} + return file_lightning_proto_rawDescGZIP(), []int{186} } type ListMacaroonIDsResponse struct { @@ -16786,7 +16424,7 @@ type ListMacaroonIDsResponse struct { func (x *ListMacaroonIDsResponse) Reset() { *x = ListMacaroonIDsResponse{} - mi := &file_lightning_proto_msgTypes[190] + mi := &file_lightning_proto_msgTypes[187] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16798,7 +16436,7 @@ func (x *ListMacaroonIDsResponse) String() string { func (*ListMacaroonIDsResponse) ProtoMessage() {} func (x *ListMacaroonIDsResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[190] + mi := &file_lightning_proto_msgTypes[187] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16811,7 +16449,7 @@ func (x *ListMacaroonIDsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListMacaroonIDsResponse.ProtoReflect.Descriptor instead. func (*ListMacaroonIDsResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{190} + return file_lightning_proto_rawDescGZIP(), []int{187} } func (x *ListMacaroonIDsResponse) GetRootKeyIds() []uint64 { @@ -16831,7 +16469,7 @@ type DeleteMacaroonIDRequest struct { func (x *DeleteMacaroonIDRequest) Reset() { *x = DeleteMacaroonIDRequest{} - mi := &file_lightning_proto_msgTypes[191] + mi := &file_lightning_proto_msgTypes[188] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16843,7 +16481,7 @@ func (x *DeleteMacaroonIDRequest) String() string { func (*DeleteMacaroonIDRequest) ProtoMessage() {} func (x *DeleteMacaroonIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[191] + mi := &file_lightning_proto_msgTypes[188] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16856,7 +16494,7 @@ func (x *DeleteMacaroonIDRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteMacaroonIDRequest.ProtoReflect.Descriptor instead. func (*DeleteMacaroonIDRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{191} + return file_lightning_proto_rawDescGZIP(), []int{188} } func (x *DeleteMacaroonIDRequest) GetRootKeyId() uint64 { @@ -16876,7 +16514,7 @@ type DeleteMacaroonIDResponse struct { func (x *DeleteMacaroonIDResponse) Reset() { *x = DeleteMacaroonIDResponse{} - mi := &file_lightning_proto_msgTypes[192] + mi := &file_lightning_proto_msgTypes[189] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16888,7 +16526,7 @@ func (x *DeleteMacaroonIDResponse) String() string { func (*DeleteMacaroonIDResponse) ProtoMessage() {} func (x *DeleteMacaroonIDResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[192] + mi := &file_lightning_proto_msgTypes[189] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16901,7 +16539,7 @@ func (x *DeleteMacaroonIDResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteMacaroonIDResponse.ProtoReflect.Descriptor instead. func (*DeleteMacaroonIDResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{192} + return file_lightning_proto_rawDescGZIP(), []int{189} } func (x *DeleteMacaroonIDResponse) GetDeleted() bool { @@ -16921,7 +16559,7 @@ type MacaroonPermissionList struct { func (x *MacaroonPermissionList) Reset() { *x = MacaroonPermissionList{} - mi := &file_lightning_proto_msgTypes[193] + mi := &file_lightning_proto_msgTypes[190] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16933,7 +16571,7 @@ func (x *MacaroonPermissionList) String() string { func (*MacaroonPermissionList) ProtoMessage() {} func (x *MacaroonPermissionList) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[193] + mi := &file_lightning_proto_msgTypes[190] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16946,7 +16584,7 @@ func (x *MacaroonPermissionList) ProtoReflect() protoreflect.Message { // Deprecated: Use MacaroonPermissionList.ProtoReflect.Descriptor instead. func (*MacaroonPermissionList) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{193} + return file_lightning_proto_rawDescGZIP(), []int{190} } func (x *MacaroonPermissionList) GetPermissions() []*MacaroonPermission { @@ -16964,7 +16602,7 @@ type ListPermissionsRequest struct { func (x *ListPermissionsRequest) Reset() { *x = ListPermissionsRequest{} - mi := &file_lightning_proto_msgTypes[194] + mi := &file_lightning_proto_msgTypes[191] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16976,7 +16614,7 @@ func (x *ListPermissionsRequest) String() string { func (*ListPermissionsRequest) ProtoMessage() {} func (x *ListPermissionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[194] + mi := &file_lightning_proto_msgTypes[191] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16989,7 +16627,7 @@ func (x *ListPermissionsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPermissionsRequest.ProtoReflect.Descriptor instead. func (*ListPermissionsRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{194} + return file_lightning_proto_rawDescGZIP(), []int{191} } type ListPermissionsResponse struct { @@ -17003,7 +16641,7 @@ type ListPermissionsResponse struct { func (x *ListPermissionsResponse) Reset() { *x = ListPermissionsResponse{} - mi := &file_lightning_proto_msgTypes[195] + mi := &file_lightning_proto_msgTypes[192] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17015,7 +16653,7 @@ func (x *ListPermissionsResponse) String() string { func (*ListPermissionsResponse) ProtoMessage() {} func (x *ListPermissionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[195] + mi := &file_lightning_proto_msgTypes[192] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17028,7 +16666,7 @@ func (x *ListPermissionsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPermissionsResponse.ProtoReflect.Descriptor instead. func (*ListPermissionsResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{195} + return file_lightning_proto_rawDescGZIP(), []int{192} } func (x *ListPermissionsResponse) GetMethodPermissions() map[string]*MacaroonPermissionList { @@ -17063,7 +16701,7 @@ type Failure struct { func (x *Failure) Reset() { *x = Failure{} - mi := &file_lightning_proto_msgTypes[196] + mi := &file_lightning_proto_msgTypes[193] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17075,7 +16713,7 @@ func (x *Failure) String() string { func (*Failure) ProtoMessage() {} func (x *Failure) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[196] + mi := &file_lightning_proto_msgTypes[193] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17088,7 +16726,7 @@ func (x *Failure) ProtoReflect() protoreflect.Message { // Deprecated: Use Failure.ProtoReflect.Descriptor instead. func (*Failure) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{196} + return file_lightning_proto_rawDescGZIP(), []int{193} } func (x *Failure) GetCode() Failure_FailureCode { @@ -17200,7 +16838,7 @@ type ChannelUpdate struct { func (x *ChannelUpdate) Reset() { *x = ChannelUpdate{} - mi := &file_lightning_proto_msgTypes[197] + mi := &file_lightning_proto_msgTypes[194] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17212,7 +16850,7 @@ func (x *ChannelUpdate) String() string { func (*ChannelUpdate) ProtoMessage() {} func (x *ChannelUpdate) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[197] + mi := &file_lightning_proto_msgTypes[194] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17225,7 +16863,7 @@ func (x *ChannelUpdate) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelUpdate.ProtoReflect.Descriptor instead. func (*ChannelUpdate) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{197} + return file_lightning_proto_rawDescGZIP(), []int{194} } func (x *ChannelUpdate) GetSignature() []byte { @@ -17323,7 +16961,7 @@ type MacaroonId struct { func (x *MacaroonId) Reset() { *x = MacaroonId{} - mi := &file_lightning_proto_msgTypes[198] + mi := &file_lightning_proto_msgTypes[195] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17335,7 +16973,7 @@ func (x *MacaroonId) String() string { func (*MacaroonId) ProtoMessage() {} func (x *MacaroonId) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[198] + mi := &file_lightning_proto_msgTypes[195] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17348,7 +16986,7 @@ func (x *MacaroonId) ProtoReflect() protoreflect.Message { // Deprecated: Use MacaroonId.ProtoReflect.Descriptor instead. func (*MacaroonId) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{198} + return file_lightning_proto_rawDescGZIP(), []int{195} } func (x *MacaroonId) GetNonce() []byte { @@ -17382,7 +17020,7 @@ type Op struct { func (x *Op) Reset() { *x = Op{} - mi := &file_lightning_proto_msgTypes[199] + mi := &file_lightning_proto_msgTypes[196] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17394,7 +17032,7 @@ func (x *Op) String() string { func (*Op) ProtoMessage() {} func (x *Op) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[199] + mi := &file_lightning_proto_msgTypes[196] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17407,7 +17045,7 @@ func (x *Op) ProtoReflect() protoreflect.Message { // Deprecated: Use Op.ProtoReflect.Descriptor instead. func (*Op) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{199} + return file_lightning_proto_rawDescGZIP(), []int{196} } func (x *Op) GetEntity() string { @@ -17460,7 +17098,7 @@ type CheckMacPermRequest struct { func (x *CheckMacPermRequest) Reset() { *x = CheckMacPermRequest{} - mi := &file_lightning_proto_msgTypes[200] + mi := &file_lightning_proto_msgTypes[197] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17472,7 +17110,7 @@ func (x *CheckMacPermRequest) String() string { func (*CheckMacPermRequest) ProtoMessage() {} func (x *CheckMacPermRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[200] + mi := &file_lightning_proto_msgTypes[197] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17485,7 +17123,7 @@ func (x *CheckMacPermRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CheckMacPermRequest.ProtoReflect.Descriptor instead. func (*CheckMacPermRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{200} + return file_lightning_proto_rawDescGZIP(), []int{197} } func (x *CheckMacPermRequest) GetMacaroon() []byte { @@ -17525,7 +17163,7 @@ type CheckMacPermResponse struct { func (x *CheckMacPermResponse) Reset() { *x = CheckMacPermResponse{} - mi := &file_lightning_proto_msgTypes[201] + mi := &file_lightning_proto_msgTypes[198] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17537,7 +17175,7 @@ func (x *CheckMacPermResponse) String() string { func (*CheckMacPermResponse) ProtoMessage() {} func (x *CheckMacPermResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[201] + mi := &file_lightning_proto_msgTypes[198] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17550,7 +17188,7 @@ func (x *CheckMacPermResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CheckMacPermResponse.ProtoReflect.Descriptor instead. func (*CheckMacPermResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{201} + return file_lightning_proto_rawDescGZIP(), []int{198} } func (x *CheckMacPermResponse) GetValid() bool { @@ -17608,7 +17246,7 @@ type RPCMiddlewareRequest struct { func (x *RPCMiddlewareRequest) Reset() { *x = RPCMiddlewareRequest{} - mi := &file_lightning_proto_msgTypes[202] + mi := &file_lightning_proto_msgTypes[199] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17620,7 +17258,7 @@ func (x *RPCMiddlewareRequest) String() string { func (*RPCMiddlewareRequest) ProtoMessage() {} func (x *RPCMiddlewareRequest) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[202] + mi := &file_lightning_proto_msgTypes[199] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17633,7 +17271,7 @@ func (x *RPCMiddlewareRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RPCMiddlewareRequest.ProtoReflect.Descriptor instead. func (*RPCMiddlewareRequest) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{202} + return file_lightning_proto_rawDescGZIP(), []int{199} } func (x *RPCMiddlewareRequest) GetRequestId() uint64 { @@ -17772,7 +17410,7 @@ type MetadataValues struct { func (x *MetadataValues) Reset() { *x = MetadataValues{} - mi := &file_lightning_proto_msgTypes[203] + mi := &file_lightning_proto_msgTypes[200] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17784,7 +17422,7 @@ func (x *MetadataValues) String() string { func (*MetadataValues) ProtoMessage() {} func (x *MetadataValues) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[203] + mi := &file_lightning_proto_msgTypes[200] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17797,7 +17435,7 @@ func (x *MetadataValues) ProtoReflect() protoreflect.Message { // Deprecated: Use MetadataValues.ProtoReflect.Descriptor instead. func (*MetadataValues) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{203} + return file_lightning_proto_rawDescGZIP(), []int{200} } func (x *MetadataValues) GetValues() []string { @@ -17819,7 +17457,7 @@ type StreamAuth struct { func (x *StreamAuth) Reset() { *x = StreamAuth{} - mi := &file_lightning_proto_msgTypes[204] + mi := &file_lightning_proto_msgTypes[201] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17831,7 +17469,7 @@ func (x *StreamAuth) String() string { func (*StreamAuth) ProtoMessage() {} func (x *StreamAuth) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[204] + mi := &file_lightning_proto_msgTypes[201] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17844,7 +17482,7 @@ func (x *StreamAuth) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamAuth.ProtoReflect.Descriptor instead. func (*StreamAuth) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{204} + return file_lightning_proto_rawDescGZIP(), []int{201} } func (x *StreamAuth) GetMethodFullUri() string { @@ -17879,7 +17517,7 @@ type RPCMessage struct { func (x *RPCMessage) Reset() { *x = RPCMessage{} - mi := &file_lightning_proto_msgTypes[205] + mi := &file_lightning_proto_msgTypes[202] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17891,7 +17529,7 @@ func (x *RPCMessage) String() string { func (*RPCMessage) ProtoMessage() {} func (x *RPCMessage) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[205] + mi := &file_lightning_proto_msgTypes[202] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17904,7 +17542,7 @@ func (x *RPCMessage) ProtoReflect() protoreflect.Message { // Deprecated: Use RPCMessage.ProtoReflect.Descriptor instead. func (*RPCMessage) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{205} + return file_lightning_proto_rawDescGZIP(), []int{202} } func (x *RPCMessage) GetMethodFullUri() string { @@ -17963,7 +17601,7 @@ type RPCMiddlewareResponse struct { func (x *RPCMiddlewareResponse) Reset() { *x = RPCMiddlewareResponse{} - mi := &file_lightning_proto_msgTypes[206] + mi := &file_lightning_proto_msgTypes[203] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17975,7 +17613,7 @@ func (x *RPCMiddlewareResponse) String() string { func (*RPCMiddlewareResponse) ProtoMessage() {} func (x *RPCMiddlewareResponse) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[206] + mi := &file_lightning_proto_msgTypes[203] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17988,7 +17626,7 @@ func (x *RPCMiddlewareResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RPCMiddlewareResponse.ProtoReflect.Descriptor instead. func (*RPCMiddlewareResponse) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{206} + return file_lightning_proto_rawDescGZIP(), []int{203} } func (x *RPCMiddlewareResponse) GetRefMsgId() uint64 { @@ -18076,7 +17714,7 @@ type MiddlewareRegistration struct { func (x *MiddlewareRegistration) Reset() { *x = MiddlewareRegistration{} - mi := &file_lightning_proto_msgTypes[207] + mi := &file_lightning_proto_msgTypes[204] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18088,7 +17726,7 @@ func (x *MiddlewareRegistration) String() string { func (*MiddlewareRegistration) ProtoMessage() {} func (x *MiddlewareRegistration) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[207] + mi := &file_lightning_proto_msgTypes[204] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18101,7 +17739,7 @@ func (x *MiddlewareRegistration) ProtoReflect() protoreflect.Message { // Deprecated: Use MiddlewareRegistration.ProtoReflect.Descriptor instead. func (*MiddlewareRegistration) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{207} + return file_lightning_proto_rawDescGZIP(), []int{204} } func (x *MiddlewareRegistration) GetMiddlewareName() string { @@ -18146,7 +17784,7 @@ type InterceptFeedback struct { func (x *InterceptFeedback) Reset() { *x = InterceptFeedback{} - mi := &file_lightning_proto_msgTypes[208] + mi := &file_lightning_proto_msgTypes[205] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18158,7 +17796,7 @@ func (x *InterceptFeedback) String() string { func (*InterceptFeedback) ProtoMessage() {} func (x *InterceptFeedback) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[208] + mi := &file_lightning_proto_msgTypes[205] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18171,7 +17809,7 @@ func (x *InterceptFeedback) ProtoReflect() protoreflect.Message { // Deprecated: Use InterceptFeedback.ProtoReflect.Descriptor instead. func (*InterceptFeedback) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{208} + return file_lightning_proto_rawDescGZIP(), []int{205} } func (x *InterceptFeedback) GetError() string { @@ -18230,7 +17868,7 @@ type PendingChannelsResponse_PendingChannel struct { func (x *PendingChannelsResponse_PendingChannel) Reset() { *x = PendingChannelsResponse_PendingChannel{} - mi := &file_lightning_proto_msgTypes[216] + mi := &file_lightning_proto_msgTypes[212] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18242,7 +17880,7 @@ func (x *PendingChannelsResponse_PendingChannel) String() string { func (*PendingChannelsResponse_PendingChannel) ProtoMessage() {} func (x *PendingChannelsResponse_PendingChannel) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[216] + mi := &file_lightning_proto_msgTypes[212] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18255,7 +17893,7 @@ func (x *PendingChannelsResponse_PendingChannel) ProtoReflect() protoreflect.Mes // Deprecated: Use PendingChannelsResponse_PendingChannel.ProtoReflect.Descriptor instead. func (*PendingChannelsResponse_PendingChannel) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{93, 0} + return file_lightning_proto_rawDescGZIP(), []int{90, 0} } func (x *PendingChannelsResponse_PendingChannel) GetRemoteNodePub() string { @@ -18405,7 +18043,7 @@ type PendingChannelsResponse_PendingOpenChannel struct { func (x *PendingChannelsResponse_PendingOpenChannel) Reset() { *x = PendingChannelsResponse_PendingOpenChannel{} - mi := &file_lightning_proto_msgTypes[217] + mi := &file_lightning_proto_msgTypes[213] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18417,7 +18055,7 @@ func (x *PendingChannelsResponse_PendingOpenChannel) String() string { func (*PendingChannelsResponse_PendingOpenChannel) ProtoMessage() {} func (x *PendingChannelsResponse_PendingOpenChannel) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[217] + mi := &file_lightning_proto_msgTypes[213] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18430,7 +18068,7 @@ func (x *PendingChannelsResponse_PendingOpenChannel) ProtoReflect() protoreflect // Deprecated: Use PendingChannelsResponse_PendingOpenChannel.ProtoReflect.Descriptor instead. func (*PendingChannelsResponse_PendingOpenChannel) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{93, 1} + return file_lightning_proto_rawDescGZIP(), []int{90, 1} } func (x *PendingChannelsResponse_PendingOpenChannel) GetChannel() *PendingChannelsResponse_PendingChannel { @@ -18514,7 +18152,7 @@ type PendingChannelsResponse_WaitingCloseChannel struct { func (x *PendingChannelsResponse_WaitingCloseChannel) Reset() { *x = PendingChannelsResponse_WaitingCloseChannel{} - mi := &file_lightning_proto_msgTypes[218] + mi := &file_lightning_proto_msgTypes[214] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18526,7 +18164,7 @@ func (x *PendingChannelsResponse_WaitingCloseChannel) String() string { func (*PendingChannelsResponse_WaitingCloseChannel) ProtoMessage() {} func (x *PendingChannelsResponse_WaitingCloseChannel) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[218] + mi := &file_lightning_proto_msgTypes[214] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18539,7 +18177,7 @@ func (x *PendingChannelsResponse_WaitingCloseChannel) ProtoReflect() protoreflec // Deprecated: Use PendingChannelsResponse_WaitingCloseChannel.ProtoReflect.Descriptor instead. func (*PendingChannelsResponse_WaitingCloseChannel) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{93, 2} + return file_lightning_proto_rawDescGZIP(), []int{90, 2} } func (x *PendingChannelsResponse_WaitingCloseChannel) GetChannel() *PendingChannelsResponse_PendingChannel { @@ -18614,7 +18252,7 @@ type PendingChannelsResponse_Commitments struct { func (x *PendingChannelsResponse_Commitments) Reset() { *x = PendingChannelsResponse_Commitments{} - mi := &file_lightning_proto_msgTypes[219] + mi := &file_lightning_proto_msgTypes[215] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18626,7 +18264,7 @@ func (x *PendingChannelsResponse_Commitments) String() string { func (*PendingChannelsResponse_Commitments) ProtoMessage() {} func (x *PendingChannelsResponse_Commitments) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[219] + mi := &file_lightning_proto_msgTypes[215] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18639,7 +18277,7 @@ func (x *PendingChannelsResponse_Commitments) ProtoReflect() protoreflect.Messag // Deprecated: Use PendingChannelsResponse_Commitments.ProtoReflect.Descriptor instead. func (*PendingChannelsResponse_Commitments) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{93, 3} + return file_lightning_proto_rawDescGZIP(), []int{90, 3} } func (x *PendingChannelsResponse_Commitments) GetLocalTxid() string { @@ -18696,7 +18334,7 @@ type PendingChannelsResponse_ClosedChannel struct { func (x *PendingChannelsResponse_ClosedChannel) Reset() { *x = PendingChannelsResponse_ClosedChannel{} - mi := &file_lightning_proto_msgTypes[220] + mi := &file_lightning_proto_msgTypes[216] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18708,7 +18346,7 @@ func (x *PendingChannelsResponse_ClosedChannel) String() string { func (*PendingChannelsResponse_ClosedChannel) ProtoMessage() {} func (x *PendingChannelsResponse_ClosedChannel) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[220] + mi := &file_lightning_proto_msgTypes[216] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18721,7 +18359,7 @@ func (x *PendingChannelsResponse_ClosedChannel) ProtoReflect() protoreflect.Mess // Deprecated: Use PendingChannelsResponse_ClosedChannel.ProtoReflect.Descriptor instead. func (*PendingChannelsResponse_ClosedChannel) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{93, 4} + return file_lightning_proto_rawDescGZIP(), []int{90, 4} } func (x *PendingChannelsResponse_ClosedChannel) GetChannel() *PendingChannelsResponse_PendingChannel { @@ -18762,7 +18400,7 @@ type PendingChannelsResponse_ForceClosedChannel struct { func (x *PendingChannelsResponse_ForceClosedChannel) Reset() { *x = PendingChannelsResponse_ForceClosedChannel{} - mi := &file_lightning_proto_msgTypes[221] + mi := &file_lightning_proto_msgTypes[217] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18774,7 +18412,7 @@ func (x *PendingChannelsResponse_ForceClosedChannel) String() string { func (*PendingChannelsResponse_ForceClosedChannel) ProtoMessage() {} func (x *PendingChannelsResponse_ForceClosedChannel) ProtoReflect() protoreflect.Message { - mi := &file_lightning_proto_msgTypes[221] + mi := &file_lightning_proto_msgTypes[217] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18787,7 +18425,7 @@ func (x *PendingChannelsResponse_ForceClosedChannel) ProtoReflect() protoreflect // Deprecated: Use PendingChannelsResponse_ForceClosedChannel.ProtoReflect.Descriptor instead. func (*PendingChannelsResponse_ForceClosedChannel) Descriptor() ([]byte, []int) { - return file_lightning_proto_rawDescGZIP(), []int{93, 5} + return file_lightning_proto_rawDescGZIP(), []int{90, 5} } func (x *PendingChannelsResponse_ForceClosedChannel) GetChannel() *PendingChannelsResponse_PendingChannel { @@ -18939,39 +18577,7 @@ const file_lightning_proto_rawDesc = "" + "\n" + "fixed_msat\x18\x03 \x01(\x03H\x00R\tfixedMsat\x12\x1a\n" + "\apercent\x18\x02 \x01(\x03H\x00R\apercentB\a\n" + - "\x05limit\"\xea\x05\n" + - "\vSendRequest\x12\x12\n" + - "\x04dest\x18\x01 \x01(\fR\x04dest\x12#\n" + - "\vdest_string\x18\x02 \x01(\tB\x02\x18\x01R\n" + - "destString\x12\x10\n" + - "\x03amt\x18\x03 \x01(\x03R\x03amt\x12\x19\n" + - "\bamt_msat\x18\f \x01(\x03R\aamtMsat\x12!\n" + - "\fpayment_hash\x18\x04 \x01(\fR\vpaymentHash\x122\n" + - "\x13payment_hash_string\x18\x05 \x01(\tB\x02\x18\x01R\x11paymentHashString\x12'\n" + - "\x0fpayment_request\x18\x06 \x01(\tR\x0epaymentRequest\x12(\n" + - "\x10final_cltv_delta\x18\a \x01(\x05R\x0efinalCltvDelta\x12,\n" + - "\tfee_limit\x18\b \x01(\v2\x0f.lnrpc.FeeLimitR\bfeeLimit\x12,\n" + - "\x10outgoing_chan_id\x18\t \x01(\x04B\x020\x01R\x0eoutgoingChanId\x12&\n" + - "\x0flast_hop_pubkey\x18\r \x01(\fR\rlastHopPubkey\x12\x1d\n" + - "\n" + - "cltv_limit\x18\n" + - " \x01(\rR\tcltvLimit\x12Y\n" + - "\x13dest_custom_records\x18\v \x03(\v2).lnrpc.SendRequest.DestCustomRecordsEntryR\x11destCustomRecords\x12,\n" + - "\x12allow_self_payment\x18\x0e \x01(\bR\x10allowSelfPayment\x126\n" + - "\rdest_features\x18\x0f \x03(\x0e2\x11.lnrpc.FeatureBitR\fdestFeatures\x12!\n" + - "\fpayment_addr\x18\x10 \x01(\fR\vpaymentAddr\x1aD\n" + - "\x16DestCustomRecordsEntry\x12\x10\n" + - "\x03key\x18\x01 \x01(\x04R\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\fR\x05value:\x028\x01\"\xb4\x01\n" + - "\fSendResponse\x12#\n" + - "\rpayment_error\x18\x01 \x01(\tR\fpaymentError\x12)\n" + - "\x10payment_preimage\x18\x02 \x01(\fR\x0fpaymentPreimage\x121\n" + - "\rpayment_route\x18\x03 \x01(\v2\f.lnrpc.RouteR\fpaymentRoute\x12!\n" + - "\fpayment_hash\x18\x04 \x01(\fR\vpaymentHash\"\x95\x01\n" + - "\x12SendToRouteRequest\x12!\n" + - "\fpayment_hash\x18\x01 \x01(\fR\vpaymentHash\x122\n" + - "\x13payment_hash_string\x18\x02 \x01(\tB\x02\x18\x01R\x11paymentHashString\x12\"\n" + - "\x05route\x18\x04 \x01(\v2\f.lnrpc.RouteR\x05routeJ\x04\b\x03\x10\x04\"\xec\x04\n" + + "\x05limit\"\xec\x04\n" + "\x14ChannelAcceptRequest\x12\x1f\n" + "\vnode_pubkey\x18\x01 \x01(\fR\n" + "nodePubkey\x12\x1d\n" + @@ -19621,7 +19227,7 @@ const file_lightning_proto_rawDesc = "" + "\x18unsettled_remote_balance\x18\x06 \x01(\v2\r.lnrpc.AmountR\x16unsettledRemoteBalance\x12J\n" + "\x1apending_open_local_balance\x18\a \x01(\v2\r.lnrpc.AmountR\x17pendingOpenLocalBalance\x12L\n" + "\x1bpending_open_remote_balance\x18\b \x01(\v2\r.lnrpc.AmountR\x18pendingOpenRemoteBalance\x12.\n" + - "\x13custom_channel_data\x18\t \x01(\fR\x11customChannelData\"\xc8\a\n" + + "\x13custom_channel_data\x18\t \x01(\fR\x11customChannelData\"\x9e\a\n" + "\x12QueryRoutesRequest\x12\x17\n" + "\apub_key\x18\x01 \x01(\tR\x06pubKey\x12\x10\n" + "\x03amt\x18\x02 \x01(\x03R\x03amt\x12\x19\n" + @@ -19636,8 +19242,7 @@ const file_lightning_proto_rawDesc = "" + " \x03(\v2\x0f.lnrpc.NodePairR\fignoredPairs\x12\x1d\n" + "\n" + "cltv_limit\x18\v \x01(\rR\tcltvLimit\x12`\n" + - "\x13dest_custom_records\x18\r \x03(\v20.lnrpc.QueryRoutesRequest.DestCustomRecordsEntryR\x11destCustomRecords\x12.\n" + - "\x10outgoing_chan_id\x18\x0e \x01(\x04B\x04\x18\x010\x01R\x0eoutgoingChanId\x12&\n" + + "\x13dest_custom_records\x18\r \x03(\v20.lnrpc.QueryRoutesRequest.DestCustomRecordsEntryR\x11destCustomRecords\x12&\n" + "\x0flast_hop_pubkey\x18\x0f \x01(\fR\rlastHopPubkey\x121\n" + "\vroute_hints\x18\x10 \x03(\v2\x10.lnrpc.RouteHintR\n" + "routeHints\x12M\n" + @@ -19647,7 +19252,7 @@ const file_lightning_proto_rawDesc = "" + "\x11outgoing_chan_ids\x18\x14 \x03(\x04R\x0foutgoingChanIds\x1aD\n" + "\x16DestCustomRecordsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\x04R\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\fR\x05value:\x028\x01J\x04\b\x03\x10\x04\".\n" + + "\x05value\x18\x02 \x01(\fR\x05value:\x028\x01J\x04\b\x03\x10\x04J\x04\b\x0e\x10\x0f\".\n" + "\bNodePair\x12\x12\n" + "\x04from\x18\x01 \x01(\fR\x04from\x12\x0e\n" + "\x02to\x18\x02 \x01(\fR\x02to\"]\n" + @@ -20449,7 +20054,7 @@ const file_lightning_proto_rawDesc = "" + "\x16UPDATE_FAILURE_PENDING\x10\x01\x12\x1c\n" + "\x18UPDATE_FAILURE_NOT_FOUND\x10\x02\x12\x1f\n" + "\x1bUPDATE_FAILURE_INTERNAL_ERR\x10\x03\x12$\n" + - " UPDATE_FAILURE_INVALID_PARAMETER\x10\x042\xcb)\n" + + " UPDATE_FAILURE_INVALID_PARAMETER\x10\x042\xb9'\n" + "\tLightning\x12J\n" + "\rWalletBalance\x12\x1b.lnrpc.WalletBalanceRequest\x1a\x1c.lnrpc.WalletBalanceResponse\x12M\n" + "\x0eChannelBalance\x12\x1c.lnrpc.ChannelBalanceRequest\x1a\x1d.lnrpc.ChannelBalanceResponse\x12K\n" + @@ -20480,11 +20085,7 @@ const file_lightning_proto_rawDesc = "" + "\x10FundingStateStep\x12\x1b.lnrpc.FundingTransitionMsg\x1a\x1b.lnrpc.FundingStateStepResp\x12P\n" + "\x0fChannelAcceptor\x12\x1c.lnrpc.ChannelAcceptResponse\x1a\x1b.lnrpc.ChannelAcceptRequest(\x010\x01\x12F\n" + "\fCloseChannel\x12\x1a.lnrpc.CloseChannelRequest\x1a\x18.lnrpc.CloseStatusUpdate0\x01\x12M\n" + - "\x0eAbandonChannel\x12\x1c.lnrpc.AbandonChannelRequest\x1a\x1d.lnrpc.AbandonChannelResponse\x12?\n" + - "\vSendPayment\x12\x12.lnrpc.SendRequest\x1a\x13.lnrpc.SendResponse\"\x03\x88\x02\x01(\x010\x01\x12?\n" + - "\x0fSendPaymentSync\x12\x12.lnrpc.SendRequest\x1a\x13.lnrpc.SendResponse\"\x03\x88\x02\x01\x12F\n" + - "\vSendToRoute\x12\x19.lnrpc.SendToRouteRequest\x1a\x13.lnrpc.SendResponse\"\x03\x88\x02\x01(\x010\x01\x12F\n" + - "\x0fSendToRouteSync\x12\x19.lnrpc.SendToRouteRequest\x1a\x13.lnrpc.SendResponse\"\x03\x88\x02\x01\x127\n" + + "\x0eAbandonChannel\x12\x1c.lnrpc.AbandonChannelRequest\x1a\x1d.lnrpc.AbandonChannelResponse\x127\n" + "\n" + "AddInvoice\x12\x0e.lnrpc.Invoice\x1a\x19.lnrpc.AddInvoiceResponse\x12E\n" + "\fListInvoices\x12\x19.lnrpc.ListInvoiceRequest\x1a\x1a.lnrpc.ListInvoiceResponse\x123\n" + @@ -20540,7 +20141,7 @@ func file_lightning_proto_rawDescGZIP() []byte { } var file_lightning_proto_enumTypes = make([]protoimpl.EnumInfo, 22) -var file_lightning_proto_msgTypes = make([]protoimpl.MessageInfo, 238) +var file_lightning_proto_msgTypes = make([]protoimpl.MessageInfo, 234) var file_lightning_proto_goTypes = []any{ (OutputScriptType)(0), // 0: lnrpc.OutputScriptType (CoinSelectionStrategy)(0), // 1: lnrpc.CoinSelectionStrategy @@ -20580,581 +20181,564 @@ var file_lightning_proto_goTypes = []any{ (*GetTransactionsRequest)(nil), // 35: lnrpc.GetTransactionsRequest (*TransactionDetails)(nil), // 36: lnrpc.TransactionDetails (*FeeLimit)(nil), // 37: lnrpc.FeeLimit - (*SendRequest)(nil), // 38: lnrpc.SendRequest - (*SendResponse)(nil), // 39: lnrpc.SendResponse - (*SendToRouteRequest)(nil), // 40: lnrpc.SendToRouteRequest - (*ChannelAcceptRequest)(nil), // 41: lnrpc.ChannelAcceptRequest - (*ChannelAcceptResponse)(nil), // 42: lnrpc.ChannelAcceptResponse - (*ChannelPoint)(nil), // 43: lnrpc.ChannelPoint - (*OutPoint)(nil), // 44: lnrpc.OutPoint - (*PreviousOutPoint)(nil), // 45: lnrpc.PreviousOutPoint - (*LightningAddress)(nil), // 46: lnrpc.LightningAddress - (*EstimateFeeRequest)(nil), // 47: lnrpc.EstimateFeeRequest - (*EstimateFeeResponse)(nil), // 48: lnrpc.EstimateFeeResponse - (*SendManyRequest)(nil), // 49: lnrpc.SendManyRequest - (*SendManyResponse)(nil), // 50: lnrpc.SendManyResponse - (*SendCoinsRequest)(nil), // 51: lnrpc.SendCoinsRequest - (*SendCoinsResponse)(nil), // 52: lnrpc.SendCoinsResponse - (*ListUnspentRequest)(nil), // 53: lnrpc.ListUnspentRequest - (*ListUnspentResponse)(nil), // 54: lnrpc.ListUnspentResponse - (*NewAddressRequest)(nil), // 55: lnrpc.NewAddressRequest - (*NewAddressResponse)(nil), // 56: lnrpc.NewAddressResponse - (*SignMessageRequest)(nil), // 57: lnrpc.SignMessageRequest - (*SignMessageResponse)(nil), // 58: lnrpc.SignMessageResponse - (*VerifyMessageRequest)(nil), // 59: lnrpc.VerifyMessageRequest - (*VerifyMessageResponse)(nil), // 60: lnrpc.VerifyMessageResponse - (*ConnectPeerRequest)(nil), // 61: lnrpc.ConnectPeerRequest - (*ConnectPeerResponse)(nil), // 62: lnrpc.ConnectPeerResponse - (*DisconnectPeerRequest)(nil), // 63: lnrpc.DisconnectPeerRequest - (*DisconnectPeerResponse)(nil), // 64: lnrpc.DisconnectPeerResponse - (*HTLC)(nil), // 65: lnrpc.HTLC - (*ChannelConstraints)(nil), // 66: lnrpc.ChannelConstraints - (*Channel)(nil), // 67: lnrpc.Channel - (*ListChannelsRequest)(nil), // 68: lnrpc.ListChannelsRequest - (*ListChannelsResponse)(nil), // 69: lnrpc.ListChannelsResponse - (*AliasMap)(nil), // 70: lnrpc.AliasMap - (*ListAliasesRequest)(nil), // 71: lnrpc.ListAliasesRequest - (*ListAliasesResponse)(nil), // 72: lnrpc.ListAliasesResponse - (*ChannelCloseSummary)(nil), // 73: lnrpc.ChannelCloseSummary - (*Resolution)(nil), // 74: lnrpc.Resolution - (*ClosedChannelsRequest)(nil), // 75: lnrpc.ClosedChannelsRequest - (*ClosedChannelsResponse)(nil), // 76: lnrpc.ClosedChannelsResponse - (*Peer)(nil), // 77: lnrpc.Peer - (*TimestampedError)(nil), // 78: lnrpc.TimestampedError - (*ListPeersRequest)(nil), // 79: lnrpc.ListPeersRequest - (*ListPeersResponse)(nil), // 80: lnrpc.ListPeersResponse - (*PeerEventSubscription)(nil), // 81: lnrpc.PeerEventSubscription - (*PeerEvent)(nil), // 82: lnrpc.PeerEvent - (*GetInfoRequest)(nil), // 83: lnrpc.GetInfoRequest - (*GetInfoResponse)(nil), // 84: lnrpc.GetInfoResponse - (*GetDebugInfoRequest)(nil), // 85: lnrpc.GetDebugInfoRequest - (*GetDebugInfoResponse)(nil), // 86: lnrpc.GetDebugInfoResponse - (*GetRecoveryInfoRequest)(nil), // 87: lnrpc.GetRecoveryInfoRequest - (*GetRecoveryInfoResponse)(nil), // 88: lnrpc.GetRecoveryInfoResponse - (*Chain)(nil), // 89: lnrpc.Chain - (*ChannelOpenUpdate)(nil), // 90: lnrpc.ChannelOpenUpdate - (*CloseOutput)(nil), // 91: lnrpc.CloseOutput - (*ChannelCloseUpdate)(nil), // 92: lnrpc.ChannelCloseUpdate - (*CloseChannelRequest)(nil), // 93: lnrpc.CloseChannelRequest - (*CloseStatusUpdate)(nil), // 94: lnrpc.CloseStatusUpdate - (*PendingUpdate)(nil), // 95: lnrpc.PendingUpdate - (*InstantUpdate)(nil), // 96: lnrpc.InstantUpdate - (*ReadyForPsbtFunding)(nil), // 97: lnrpc.ReadyForPsbtFunding - (*BatchOpenChannelRequest)(nil), // 98: lnrpc.BatchOpenChannelRequest - (*BatchOpenChannel)(nil), // 99: lnrpc.BatchOpenChannel - (*BatchOpenChannelResponse)(nil), // 100: lnrpc.BatchOpenChannelResponse - (*OpenChannelRequest)(nil), // 101: lnrpc.OpenChannelRequest - (*OpenStatusUpdate)(nil), // 102: lnrpc.OpenStatusUpdate - (*KeyLocator)(nil), // 103: lnrpc.KeyLocator - (*KeyDescriptor)(nil), // 104: lnrpc.KeyDescriptor - (*ChanPointShim)(nil), // 105: lnrpc.ChanPointShim - (*PsbtShim)(nil), // 106: lnrpc.PsbtShim - (*FundingShim)(nil), // 107: lnrpc.FundingShim - (*FundingShimCancel)(nil), // 108: lnrpc.FundingShimCancel - (*FundingPsbtVerify)(nil), // 109: lnrpc.FundingPsbtVerify - (*FundingPsbtFinalize)(nil), // 110: lnrpc.FundingPsbtFinalize - (*FundingTransitionMsg)(nil), // 111: lnrpc.FundingTransitionMsg - (*FundingStateStepResp)(nil), // 112: lnrpc.FundingStateStepResp - (*PendingHTLC)(nil), // 113: lnrpc.PendingHTLC - (*PendingChannelsRequest)(nil), // 114: lnrpc.PendingChannelsRequest - (*PendingChannelsResponse)(nil), // 115: lnrpc.PendingChannelsResponse - (*ChannelEventSubscription)(nil), // 116: lnrpc.ChannelEventSubscription - (*ChannelCommitUpdate)(nil), // 117: lnrpc.ChannelCommitUpdate - (*ChannelEventUpdate)(nil), // 118: lnrpc.ChannelEventUpdate - (*WalletAccountBalance)(nil), // 119: lnrpc.WalletAccountBalance - (*WalletBalanceRequest)(nil), // 120: lnrpc.WalletBalanceRequest - (*WalletBalanceResponse)(nil), // 121: lnrpc.WalletBalanceResponse - (*Amount)(nil), // 122: lnrpc.Amount - (*ChannelBalanceRequest)(nil), // 123: lnrpc.ChannelBalanceRequest - (*ChannelBalanceResponse)(nil), // 124: lnrpc.ChannelBalanceResponse - (*QueryRoutesRequest)(nil), // 125: lnrpc.QueryRoutesRequest - (*NodePair)(nil), // 126: lnrpc.NodePair - (*EdgeLocator)(nil), // 127: lnrpc.EdgeLocator - (*QueryRoutesResponse)(nil), // 128: lnrpc.QueryRoutesResponse - (*Hop)(nil), // 129: lnrpc.Hop - (*MPPRecord)(nil), // 130: lnrpc.MPPRecord - (*AMPRecord)(nil), // 131: lnrpc.AMPRecord - (*Route)(nil), // 132: lnrpc.Route - (*NodeInfoRequest)(nil), // 133: lnrpc.NodeInfoRequest - (*NodeInfo)(nil), // 134: lnrpc.NodeInfo - (*LightningNode)(nil), // 135: lnrpc.LightningNode - (*NodeAddress)(nil), // 136: lnrpc.NodeAddress - (*RoutingPolicy)(nil), // 137: lnrpc.RoutingPolicy - (*ChannelAuthProof)(nil), // 138: lnrpc.ChannelAuthProof - (*ChannelEdge)(nil), // 139: lnrpc.ChannelEdge - (*ChannelGraphRequest)(nil), // 140: lnrpc.ChannelGraphRequest - (*ChannelGraph)(nil), // 141: lnrpc.ChannelGraph - (*NodeMetricsRequest)(nil), // 142: lnrpc.NodeMetricsRequest - (*NodeMetricsResponse)(nil), // 143: lnrpc.NodeMetricsResponse - (*FloatMetric)(nil), // 144: lnrpc.FloatMetric - (*ChanInfoRequest)(nil), // 145: lnrpc.ChanInfoRequest - (*NetworkInfoRequest)(nil), // 146: lnrpc.NetworkInfoRequest - (*NetworkInfo)(nil), // 147: lnrpc.NetworkInfo - (*StopRequest)(nil), // 148: lnrpc.StopRequest - (*StopResponse)(nil), // 149: lnrpc.StopResponse - (*GraphTopologySubscription)(nil), // 150: lnrpc.GraphTopologySubscription - (*GraphTopologyUpdate)(nil), // 151: lnrpc.GraphTopologyUpdate - (*NodeUpdate)(nil), // 152: lnrpc.NodeUpdate - (*ChannelEdgeUpdate)(nil), // 153: lnrpc.ChannelEdgeUpdate - (*ClosedChannelUpdate)(nil), // 154: lnrpc.ClosedChannelUpdate - (*HopHint)(nil), // 155: lnrpc.HopHint - (*SetID)(nil), // 156: lnrpc.SetID - (*RouteHint)(nil), // 157: lnrpc.RouteHint - (*BlindedPaymentPath)(nil), // 158: lnrpc.BlindedPaymentPath - (*BlindedPath)(nil), // 159: lnrpc.BlindedPath - (*BlindedHop)(nil), // 160: lnrpc.BlindedHop - (*AMPInvoiceState)(nil), // 161: lnrpc.AMPInvoiceState - (*Invoice)(nil), // 162: lnrpc.Invoice - (*BlindedPathConfig)(nil), // 163: lnrpc.BlindedPathConfig - (*InvoiceHTLC)(nil), // 164: lnrpc.InvoiceHTLC - (*AMP)(nil), // 165: lnrpc.AMP - (*AddInvoiceResponse)(nil), // 166: lnrpc.AddInvoiceResponse - (*PaymentHash)(nil), // 167: lnrpc.PaymentHash - (*ListInvoiceRequest)(nil), // 168: lnrpc.ListInvoiceRequest - (*ListInvoiceResponse)(nil), // 169: lnrpc.ListInvoiceResponse - (*InvoiceSubscription)(nil), // 170: lnrpc.InvoiceSubscription - (*DelCanceledInvoiceReq)(nil), // 171: lnrpc.DelCanceledInvoiceReq - (*DelCanceledInvoiceResp)(nil), // 172: lnrpc.DelCanceledInvoiceResp - (*Payment)(nil), // 173: lnrpc.Payment - (*HTLCAttempt)(nil), // 174: lnrpc.HTLCAttempt - (*ListPaymentsRequest)(nil), // 175: lnrpc.ListPaymentsRequest - (*ListPaymentsResponse)(nil), // 176: lnrpc.ListPaymentsResponse - (*DeletePaymentRequest)(nil), // 177: lnrpc.DeletePaymentRequest - (*DeleteAllPaymentsRequest)(nil), // 178: lnrpc.DeleteAllPaymentsRequest - (*DeletePaymentResponse)(nil), // 179: lnrpc.DeletePaymentResponse - (*DeleteAllPaymentsResponse)(nil), // 180: lnrpc.DeleteAllPaymentsResponse - (*AbandonChannelRequest)(nil), // 181: lnrpc.AbandonChannelRequest - (*AbandonChannelResponse)(nil), // 182: lnrpc.AbandonChannelResponse - (*DebugLevelRequest)(nil), // 183: lnrpc.DebugLevelRequest - (*DebugLevelResponse)(nil), // 184: lnrpc.DebugLevelResponse - (*PayReqString)(nil), // 185: lnrpc.PayReqString - (*PayReq)(nil), // 186: lnrpc.PayReq - (*Feature)(nil), // 187: lnrpc.Feature - (*FeeReportRequest)(nil), // 188: lnrpc.FeeReportRequest - (*ChannelFeeReport)(nil), // 189: lnrpc.ChannelFeeReport - (*FeeReportResponse)(nil), // 190: lnrpc.FeeReportResponse - (*InboundFee)(nil), // 191: lnrpc.InboundFee - (*PolicyUpdateRequest)(nil), // 192: lnrpc.PolicyUpdateRequest - (*FailedUpdate)(nil), // 193: lnrpc.FailedUpdate - (*PolicyUpdateResponse)(nil), // 194: lnrpc.PolicyUpdateResponse - (*ForwardingHistoryRequest)(nil), // 195: lnrpc.ForwardingHistoryRequest - (*ForwardingEvent)(nil), // 196: lnrpc.ForwardingEvent - (*ForwardingHistoryResponse)(nil), // 197: lnrpc.ForwardingHistoryResponse - (*ExportChannelBackupRequest)(nil), // 198: lnrpc.ExportChannelBackupRequest - (*ChannelBackup)(nil), // 199: lnrpc.ChannelBackup - (*MultiChanBackup)(nil), // 200: lnrpc.MultiChanBackup - (*ChanBackupExportRequest)(nil), // 201: lnrpc.ChanBackupExportRequest - (*ChanBackupSnapshot)(nil), // 202: lnrpc.ChanBackupSnapshot - (*ChannelBackups)(nil), // 203: lnrpc.ChannelBackups - (*RestoreChanBackupRequest)(nil), // 204: lnrpc.RestoreChanBackupRequest - (*RestoreBackupResponse)(nil), // 205: lnrpc.RestoreBackupResponse - (*ChannelBackupSubscription)(nil), // 206: lnrpc.ChannelBackupSubscription - (*VerifyChanBackupResponse)(nil), // 207: lnrpc.VerifyChanBackupResponse - (*MacaroonPermission)(nil), // 208: lnrpc.MacaroonPermission - (*BakeMacaroonRequest)(nil), // 209: lnrpc.BakeMacaroonRequest - (*BakeMacaroonResponse)(nil), // 210: lnrpc.BakeMacaroonResponse - (*ListMacaroonIDsRequest)(nil), // 211: lnrpc.ListMacaroonIDsRequest - (*ListMacaroonIDsResponse)(nil), // 212: lnrpc.ListMacaroonIDsResponse - (*DeleteMacaroonIDRequest)(nil), // 213: lnrpc.DeleteMacaroonIDRequest - (*DeleteMacaroonIDResponse)(nil), // 214: lnrpc.DeleteMacaroonIDResponse - (*MacaroonPermissionList)(nil), // 215: lnrpc.MacaroonPermissionList - (*ListPermissionsRequest)(nil), // 216: lnrpc.ListPermissionsRequest - (*ListPermissionsResponse)(nil), // 217: lnrpc.ListPermissionsResponse - (*Failure)(nil), // 218: lnrpc.Failure - (*ChannelUpdate)(nil), // 219: lnrpc.ChannelUpdate - (*MacaroonId)(nil), // 220: lnrpc.MacaroonId - (*Op)(nil), // 221: lnrpc.Op - (*CheckMacPermRequest)(nil), // 222: lnrpc.CheckMacPermRequest - (*CheckMacPermResponse)(nil), // 223: lnrpc.CheckMacPermResponse - (*RPCMiddlewareRequest)(nil), // 224: lnrpc.RPCMiddlewareRequest - (*MetadataValues)(nil), // 225: lnrpc.MetadataValues - (*StreamAuth)(nil), // 226: lnrpc.StreamAuth - (*RPCMessage)(nil), // 227: lnrpc.RPCMessage - (*RPCMiddlewareResponse)(nil), // 228: lnrpc.RPCMiddlewareResponse - (*MiddlewareRegistration)(nil), // 229: lnrpc.MiddlewareRegistration - (*InterceptFeedback)(nil), // 230: lnrpc.InterceptFeedback - nil, // 231: lnrpc.OnionMessageUpdate.CustomRecordsEntry - nil, // 232: lnrpc.SendRequest.DestCustomRecordsEntry - nil, // 233: lnrpc.EstimateFeeRequest.AddrToAmountEntry - nil, // 234: lnrpc.SendManyRequest.AddrToAmountEntry - nil, // 235: lnrpc.Peer.FeaturesEntry - nil, // 236: lnrpc.GetInfoResponse.FeaturesEntry - nil, // 237: lnrpc.GetDebugInfoResponse.ConfigEntry - (*PendingChannelsResponse_PendingChannel)(nil), // 238: lnrpc.PendingChannelsResponse.PendingChannel - (*PendingChannelsResponse_PendingOpenChannel)(nil), // 239: lnrpc.PendingChannelsResponse.PendingOpenChannel - (*PendingChannelsResponse_WaitingCloseChannel)(nil), // 240: lnrpc.PendingChannelsResponse.WaitingCloseChannel - (*PendingChannelsResponse_Commitments)(nil), // 241: lnrpc.PendingChannelsResponse.Commitments - (*PendingChannelsResponse_ClosedChannel)(nil), // 242: lnrpc.PendingChannelsResponse.ClosedChannel - (*PendingChannelsResponse_ForceClosedChannel)(nil), // 243: lnrpc.PendingChannelsResponse.ForceClosedChannel - nil, // 244: lnrpc.WalletBalanceResponse.AccountBalanceEntry - nil, // 245: lnrpc.QueryRoutesRequest.DestCustomRecordsEntry - nil, // 246: lnrpc.Hop.CustomRecordsEntry - nil, // 247: lnrpc.LightningNode.FeaturesEntry - nil, // 248: lnrpc.LightningNode.CustomRecordsEntry - nil, // 249: lnrpc.RoutingPolicy.CustomRecordsEntry - nil, // 250: lnrpc.ChannelEdge.CustomRecordsEntry - nil, // 251: lnrpc.NodeMetricsResponse.BetweennessCentralityEntry - nil, // 252: lnrpc.NodeUpdate.FeaturesEntry - nil, // 253: lnrpc.Invoice.FeaturesEntry - nil, // 254: lnrpc.Invoice.AmpInvoiceStateEntry - nil, // 255: lnrpc.InvoiceHTLC.CustomRecordsEntry - nil, // 256: lnrpc.Payment.FirstHopCustomRecordsEntry - nil, // 257: lnrpc.PayReq.FeaturesEntry - nil, // 258: lnrpc.ListPermissionsResponse.MethodPermissionsEntry - nil, // 259: lnrpc.RPCMiddlewareRequest.MetadataPairsEntry + (*ChannelAcceptRequest)(nil), // 38: lnrpc.ChannelAcceptRequest + (*ChannelAcceptResponse)(nil), // 39: lnrpc.ChannelAcceptResponse + (*ChannelPoint)(nil), // 40: lnrpc.ChannelPoint + (*OutPoint)(nil), // 41: lnrpc.OutPoint + (*PreviousOutPoint)(nil), // 42: lnrpc.PreviousOutPoint + (*LightningAddress)(nil), // 43: lnrpc.LightningAddress + (*EstimateFeeRequest)(nil), // 44: lnrpc.EstimateFeeRequest + (*EstimateFeeResponse)(nil), // 45: lnrpc.EstimateFeeResponse + (*SendManyRequest)(nil), // 46: lnrpc.SendManyRequest + (*SendManyResponse)(nil), // 47: lnrpc.SendManyResponse + (*SendCoinsRequest)(nil), // 48: lnrpc.SendCoinsRequest + (*SendCoinsResponse)(nil), // 49: lnrpc.SendCoinsResponse + (*ListUnspentRequest)(nil), // 50: lnrpc.ListUnspentRequest + (*ListUnspentResponse)(nil), // 51: lnrpc.ListUnspentResponse + (*NewAddressRequest)(nil), // 52: lnrpc.NewAddressRequest + (*NewAddressResponse)(nil), // 53: lnrpc.NewAddressResponse + (*SignMessageRequest)(nil), // 54: lnrpc.SignMessageRequest + (*SignMessageResponse)(nil), // 55: lnrpc.SignMessageResponse + (*VerifyMessageRequest)(nil), // 56: lnrpc.VerifyMessageRequest + (*VerifyMessageResponse)(nil), // 57: lnrpc.VerifyMessageResponse + (*ConnectPeerRequest)(nil), // 58: lnrpc.ConnectPeerRequest + (*ConnectPeerResponse)(nil), // 59: lnrpc.ConnectPeerResponse + (*DisconnectPeerRequest)(nil), // 60: lnrpc.DisconnectPeerRequest + (*DisconnectPeerResponse)(nil), // 61: lnrpc.DisconnectPeerResponse + (*HTLC)(nil), // 62: lnrpc.HTLC + (*ChannelConstraints)(nil), // 63: lnrpc.ChannelConstraints + (*Channel)(nil), // 64: lnrpc.Channel + (*ListChannelsRequest)(nil), // 65: lnrpc.ListChannelsRequest + (*ListChannelsResponse)(nil), // 66: lnrpc.ListChannelsResponse + (*AliasMap)(nil), // 67: lnrpc.AliasMap + (*ListAliasesRequest)(nil), // 68: lnrpc.ListAliasesRequest + (*ListAliasesResponse)(nil), // 69: lnrpc.ListAliasesResponse + (*ChannelCloseSummary)(nil), // 70: lnrpc.ChannelCloseSummary + (*Resolution)(nil), // 71: lnrpc.Resolution + (*ClosedChannelsRequest)(nil), // 72: lnrpc.ClosedChannelsRequest + (*ClosedChannelsResponse)(nil), // 73: lnrpc.ClosedChannelsResponse + (*Peer)(nil), // 74: lnrpc.Peer + (*TimestampedError)(nil), // 75: lnrpc.TimestampedError + (*ListPeersRequest)(nil), // 76: lnrpc.ListPeersRequest + (*ListPeersResponse)(nil), // 77: lnrpc.ListPeersResponse + (*PeerEventSubscription)(nil), // 78: lnrpc.PeerEventSubscription + (*PeerEvent)(nil), // 79: lnrpc.PeerEvent + (*GetInfoRequest)(nil), // 80: lnrpc.GetInfoRequest + (*GetInfoResponse)(nil), // 81: lnrpc.GetInfoResponse + (*GetDebugInfoRequest)(nil), // 82: lnrpc.GetDebugInfoRequest + (*GetDebugInfoResponse)(nil), // 83: lnrpc.GetDebugInfoResponse + (*GetRecoveryInfoRequest)(nil), // 84: lnrpc.GetRecoveryInfoRequest + (*GetRecoveryInfoResponse)(nil), // 85: lnrpc.GetRecoveryInfoResponse + (*Chain)(nil), // 86: lnrpc.Chain + (*ChannelOpenUpdate)(nil), // 87: lnrpc.ChannelOpenUpdate + (*CloseOutput)(nil), // 88: lnrpc.CloseOutput + (*ChannelCloseUpdate)(nil), // 89: lnrpc.ChannelCloseUpdate + (*CloseChannelRequest)(nil), // 90: lnrpc.CloseChannelRequest + (*CloseStatusUpdate)(nil), // 91: lnrpc.CloseStatusUpdate + (*PendingUpdate)(nil), // 92: lnrpc.PendingUpdate + (*InstantUpdate)(nil), // 93: lnrpc.InstantUpdate + (*ReadyForPsbtFunding)(nil), // 94: lnrpc.ReadyForPsbtFunding + (*BatchOpenChannelRequest)(nil), // 95: lnrpc.BatchOpenChannelRequest + (*BatchOpenChannel)(nil), // 96: lnrpc.BatchOpenChannel + (*BatchOpenChannelResponse)(nil), // 97: lnrpc.BatchOpenChannelResponse + (*OpenChannelRequest)(nil), // 98: lnrpc.OpenChannelRequest + (*OpenStatusUpdate)(nil), // 99: lnrpc.OpenStatusUpdate + (*KeyLocator)(nil), // 100: lnrpc.KeyLocator + (*KeyDescriptor)(nil), // 101: lnrpc.KeyDescriptor + (*ChanPointShim)(nil), // 102: lnrpc.ChanPointShim + (*PsbtShim)(nil), // 103: lnrpc.PsbtShim + (*FundingShim)(nil), // 104: lnrpc.FundingShim + (*FundingShimCancel)(nil), // 105: lnrpc.FundingShimCancel + (*FundingPsbtVerify)(nil), // 106: lnrpc.FundingPsbtVerify + (*FundingPsbtFinalize)(nil), // 107: lnrpc.FundingPsbtFinalize + (*FundingTransitionMsg)(nil), // 108: lnrpc.FundingTransitionMsg + (*FundingStateStepResp)(nil), // 109: lnrpc.FundingStateStepResp + (*PendingHTLC)(nil), // 110: lnrpc.PendingHTLC + (*PendingChannelsRequest)(nil), // 111: lnrpc.PendingChannelsRequest + (*PendingChannelsResponse)(nil), // 112: lnrpc.PendingChannelsResponse + (*ChannelEventSubscription)(nil), // 113: lnrpc.ChannelEventSubscription + (*ChannelCommitUpdate)(nil), // 114: lnrpc.ChannelCommitUpdate + (*ChannelEventUpdate)(nil), // 115: lnrpc.ChannelEventUpdate + (*WalletAccountBalance)(nil), // 116: lnrpc.WalletAccountBalance + (*WalletBalanceRequest)(nil), // 117: lnrpc.WalletBalanceRequest + (*WalletBalanceResponse)(nil), // 118: lnrpc.WalletBalanceResponse + (*Amount)(nil), // 119: lnrpc.Amount + (*ChannelBalanceRequest)(nil), // 120: lnrpc.ChannelBalanceRequest + (*ChannelBalanceResponse)(nil), // 121: lnrpc.ChannelBalanceResponse + (*QueryRoutesRequest)(nil), // 122: lnrpc.QueryRoutesRequest + (*NodePair)(nil), // 123: lnrpc.NodePair + (*EdgeLocator)(nil), // 124: lnrpc.EdgeLocator + (*QueryRoutesResponse)(nil), // 125: lnrpc.QueryRoutesResponse + (*Hop)(nil), // 126: lnrpc.Hop + (*MPPRecord)(nil), // 127: lnrpc.MPPRecord + (*AMPRecord)(nil), // 128: lnrpc.AMPRecord + (*Route)(nil), // 129: lnrpc.Route + (*NodeInfoRequest)(nil), // 130: lnrpc.NodeInfoRequest + (*NodeInfo)(nil), // 131: lnrpc.NodeInfo + (*LightningNode)(nil), // 132: lnrpc.LightningNode + (*NodeAddress)(nil), // 133: lnrpc.NodeAddress + (*RoutingPolicy)(nil), // 134: lnrpc.RoutingPolicy + (*ChannelAuthProof)(nil), // 135: lnrpc.ChannelAuthProof + (*ChannelEdge)(nil), // 136: lnrpc.ChannelEdge + (*ChannelGraphRequest)(nil), // 137: lnrpc.ChannelGraphRequest + (*ChannelGraph)(nil), // 138: lnrpc.ChannelGraph + (*NodeMetricsRequest)(nil), // 139: lnrpc.NodeMetricsRequest + (*NodeMetricsResponse)(nil), // 140: lnrpc.NodeMetricsResponse + (*FloatMetric)(nil), // 141: lnrpc.FloatMetric + (*ChanInfoRequest)(nil), // 142: lnrpc.ChanInfoRequest + (*NetworkInfoRequest)(nil), // 143: lnrpc.NetworkInfoRequest + (*NetworkInfo)(nil), // 144: lnrpc.NetworkInfo + (*StopRequest)(nil), // 145: lnrpc.StopRequest + (*StopResponse)(nil), // 146: lnrpc.StopResponse + (*GraphTopologySubscription)(nil), // 147: lnrpc.GraphTopologySubscription + (*GraphTopologyUpdate)(nil), // 148: lnrpc.GraphTopologyUpdate + (*NodeUpdate)(nil), // 149: lnrpc.NodeUpdate + (*ChannelEdgeUpdate)(nil), // 150: lnrpc.ChannelEdgeUpdate + (*ClosedChannelUpdate)(nil), // 151: lnrpc.ClosedChannelUpdate + (*HopHint)(nil), // 152: lnrpc.HopHint + (*SetID)(nil), // 153: lnrpc.SetID + (*RouteHint)(nil), // 154: lnrpc.RouteHint + (*BlindedPaymentPath)(nil), // 155: lnrpc.BlindedPaymentPath + (*BlindedPath)(nil), // 156: lnrpc.BlindedPath + (*BlindedHop)(nil), // 157: lnrpc.BlindedHop + (*AMPInvoiceState)(nil), // 158: lnrpc.AMPInvoiceState + (*Invoice)(nil), // 159: lnrpc.Invoice + (*BlindedPathConfig)(nil), // 160: lnrpc.BlindedPathConfig + (*InvoiceHTLC)(nil), // 161: lnrpc.InvoiceHTLC + (*AMP)(nil), // 162: lnrpc.AMP + (*AddInvoiceResponse)(nil), // 163: lnrpc.AddInvoiceResponse + (*PaymentHash)(nil), // 164: lnrpc.PaymentHash + (*ListInvoiceRequest)(nil), // 165: lnrpc.ListInvoiceRequest + (*ListInvoiceResponse)(nil), // 166: lnrpc.ListInvoiceResponse + (*InvoiceSubscription)(nil), // 167: lnrpc.InvoiceSubscription + (*DelCanceledInvoiceReq)(nil), // 168: lnrpc.DelCanceledInvoiceReq + (*DelCanceledInvoiceResp)(nil), // 169: lnrpc.DelCanceledInvoiceResp + (*Payment)(nil), // 170: lnrpc.Payment + (*HTLCAttempt)(nil), // 171: lnrpc.HTLCAttempt + (*ListPaymentsRequest)(nil), // 172: lnrpc.ListPaymentsRequest + (*ListPaymentsResponse)(nil), // 173: lnrpc.ListPaymentsResponse + (*DeletePaymentRequest)(nil), // 174: lnrpc.DeletePaymentRequest + (*DeleteAllPaymentsRequest)(nil), // 175: lnrpc.DeleteAllPaymentsRequest + (*DeletePaymentResponse)(nil), // 176: lnrpc.DeletePaymentResponse + (*DeleteAllPaymentsResponse)(nil), // 177: lnrpc.DeleteAllPaymentsResponse + (*AbandonChannelRequest)(nil), // 178: lnrpc.AbandonChannelRequest + (*AbandonChannelResponse)(nil), // 179: lnrpc.AbandonChannelResponse + (*DebugLevelRequest)(nil), // 180: lnrpc.DebugLevelRequest + (*DebugLevelResponse)(nil), // 181: lnrpc.DebugLevelResponse + (*PayReqString)(nil), // 182: lnrpc.PayReqString + (*PayReq)(nil), // 183: lnrpc.PayReq + (*Feature)(nil), // 184: lnrpc.Feature + (*FeeReportRequest)(nil), // 185: lnrpc.FeeReportRequest + (*ChannelFeeReport)(nil), // 186: lnrpc.ChannelFeeReport + (*FeeReportResponse)(nil), // 187: lnrpc.FeeReportResponse + (*InboundFee)(nil), // 188: lnrpc.InboundFee + (*PolicyUpdateRequest)(nil), // 189: lnrpc.PolicyUpdateRequest + (*FailedUpdate)(nil), // 190: lnrpc.FailedUpdate + (*PolicyUpdateResponse)(nil), // 191: lnrpc.PolicyUpdateResponse + (*ForwardingHistoryRequest)(nil), // 192: lnrpc.ForwardingHistoryRequest + (*ForwardingEvent)(nil), // 193: lnrpc.ForwardingEvent + (*ForwardingHistoryResponse)(nil), // 194: lnrpc.ForwardingHistoryResponse + (*ExportChannelBackupRequest)(nil), // 195: lnrpc.ExportChannelBackupRequest + (*ChannelBackup)(nil), // 196: lnrpc.ChannelBackup + (*MultiChanBackup)(nil), // 197: lnrpc.MultiChanBackup + (*ChanBackupExportRequest)(nil), // 198: lnrpc.ChanBackupExportRequest + (*ChanBackupSnapshot)(nil), // 199: lnrpc.ChanBackupSnapshot + (*ChannelBackups)(nil), // 200: lnrpc.ChannelBackups + (*RestoreChanBackupRequest)(nil), // 201: lnrpc.RestoreChanBackupRequest + (*RestoreBackupResponse)(nil), // 202: lnrpc.RestoreBackupResponse + (*ChannelBackupSubscription)(nil), // 203: lnrpc.ChannelBackupSubscription + (*VerifyChanBackupResponse)(nil), // 204: lnrpc.VerifyChanBackupResponse + (*MacaroonPermission)(nil), // 205: lnrpc.MacaroonPermission + (*BakeMacaroonRequest)(nil), // 206: lnrpc.BakeMacaroonRequest + (*BakeMacaroonResponse)(nil), // 207: lnrpc.BakeMacaroonResponse + (*ListMacaroonIDsRequest)(nil), // 208: lnrpc.ListMacaroonIDsRequest + (*ListMacaroonIDsResponse)(nil), // 209: lnrpc.ListMacaroonIDsResponse + (*DeleteMacaroonIDRequest)(nil), // 210: lnrpc.DeleteMacaroonIDRequest + (*DeleteMacaroonIDResponse)(nil), // 211: lnrpc.DeleteMacaroonIDResponse + (*MacaroonPermissionList)(nil), // 212: lnrpc.MacaroonPermissionList + (*ListPermissionsRequest)(nil), // 213: lnrpc.ListPermissionsRequest + (*ListPermissionsResponse)(nil), // 214: lnrpc.ListPermissionsResponse + (*Failure)(nil), // 215: lnrpc.Failure + (*ChannelUpdate)(nil), // 216: lnrpc.ChannelUpdate + (*MacaroonId)(nil), // 217: lnrpc.MacaroonId + (*Op)(nil), // 218: lnrpc.Op + (*CheckMacPermRequest)(nil), // 219: lnrpc.CheckMacPermRequest + (*CheckMacPermResponse)(nil), // 220: lnrpc.CheckMacPermResponse + (*RPCMiddlewareRequest)(nil), // 221: lnrpc.RPCMiddlewareRequest + (*MetadataValues)(nil), // 222: lnrpc.MetadataValues + (*StreamAuth)(nil), // 223: lnrpc.StreamAuth + (*RPCMessage)(nil), // 224: lnrpc.RPCMessage + (*RPCMiddlewareResponse)(nil), // 225: lnrpc.RPCMiddlewareResponse + (*MiddlewareRegistration)(nil), // 226: lnrpc.MiddlewareRegistration + (*InterceptFeedback)(nil), // 227: lnrpc.InterceptFeedback + nil, // 228: lnrpc.OnionMessageUpdate.CustomRecordsEntry + nil, // 229: lnrpc.EstimateFeeRequest.AddrToAmountEntry + nil, // 230: lnrpc.SendManyRequest.AddrToAmountEntry + nil, // 231: lnrpc.Peer.FeaturesEntry + nil, // 232: lnrpc.GetInfoResponse.FeaturesEntry + nil, // 233: lnrpc.GetDebugInfoResponse.ConfigEntry + (*PendingChannelsResponse_PendingChannel)(nil), // 234: lnrpc.PendingChannelsResponse.PendingChannel + (*PendingChannelsResponse_PendingOpenChannel)(nil), // 235: lnrpc.PendingChannelsResponse.PendingOpenChannel + (*PendingChannelsResponse_WaitingCloseChannel)(nil), // 236: lnrpc.PendingChannelsResponse.WaitingCloseChannel + (*PendingChannelsResponse_Commitments)(nil), // 237: lnrpc.PendingChannelsResponse.Commitments + (*PendingChannelsResponse_ClosedChannel)(nil), // 238: lnrpc.PendingChannelsResponse.ClosedChannel + (*PendingChannelsResponse_ForceClosedChannel)(nil), // 239: lnrpc.PendingChannelsResponse.ForceClosedChannel + nil, // 240: lnrpc.WalletBalanceResponse.AccountBalanceEntry + nil, // 241: lnrpc.QueryRoutesRequest.DestCustomRecordsEntry + nil, // 242: lnrpc.Hop.CustomRecordsEntry + nil, // 243: lnrpc.LightningNode.FeaturesEntry + nil, // 244: lnrpc.LightningNode.CustomRecordsEntry + nil, // 245: lnrpc.RoutingPolicy.CustomRecordsEntry + nil, // 246: lnrpc.ChannelEdge.CustomRecordsEntry + nil, // 247: lnrpc.NodeMetricsResponse.BetweennessCentralityEntry + nil, // 248: lnrpc.NodeUpdate.FeaturesEntry + nil, // 249: lnrpc.Invoice.FeaturesEntry + nil, // 250: lnrpc.Invoice.AmpInvoiceStateEntry + nil, // 251: lnrpc.InvoiceHTLC.CustomRecordsEntry + nil, // 252: lnrpc.Payment.FirstHopCustomRecordsEntry + nil, // 253: lnrpc.PayReq.FeaturesEntry + nil, // 254: lnrpc.ListPermissionsResponse.MethodPermissionsEntry + nil, // 255: lnrpc.RPCMiddlewareRequest.MetadataPairsEntry } var file_lightning_proto_depIdxs = []int32{ - 159, // 0: lnrpc.OnionMessageUpdate.reply_path:type_name -> lnrpc.BlindedPath - 231, // 1: lnrpc.OnionMessageUpdate.custom_records:type_name -> lnrpc.OnionMessageUpdate.CustomRecordsEntry + 156, // 0: lnrpc.OnionMessageUpdate.reply_path:type_name -> lnrpc.BlindedPath + 228, // 1: lnrpc.OnionMessageUpdate.custom_records:type_name -> lnrpc.OnionMessageUpdate.CustomRecordsEntry 2, // 2: lnrpc.Utxo.address_type:type_name -> lnrpc.AddressType - 44, // 3: lnrpc.Utxo.outpoint:type_name -> lnrpc.OutPoint + 41, // 3: lnrpc.Utxo.outpoint:type_name -> lnrpc.OutPoint 0, // 4: lnrpc.OutputDetail.output_type:type_name -> lnrpc.OutputScriptType 33, // 5: lnrpc.Transaction.output_details:type_name -> lnrpc.OutputDetail - 45, // 6: lnrpc.Transaction.previous_outpoints:type_name -> lnrpc.PreviousOutPoint + 42, // 6: lnrpc.Transaction.previous_outpoints:type_name -> lnrpc.PreviousOutPoint 34, // 7: lnrpc.TransactionDetails.transactions:type_name -> lnrpc.Transaction - 37, // 8: lnrpc.SendRequest.fee_limit:type_name -> lnrpc.FeeLimit - 232, // 9: lnrpc.SendRequest.dest_custom_records:type_name -> lnrpc.SendRequest.DestCustomRecordsEntry - 11, // 10: lnrpc.SendRequest.dest_features:type_name -> lnrpc.FeatureBit - 132, // 11: lnrpc.SendResponse.payment_route:type_name -> lnrpc.Route - 132, // 12: lnrpc.SendToRouteRequest.route:type_name -> lnrpc.Route - 3, // 13: lnrpc.ChannelAcceptRequest.commitment_type:type_name -> lnrpc.CommitmentType - 233, // 14: lnrpc.EstimateFeeRequest.AddrToAmount:type_name -> lnrpc.EstimateFeeRequest.AddrToAmountEntry - 1, // 15: lnrpc.EstimateFeeRequest.coin_selection_strategy:type_name -> lnrpc.CoinSelectionStrategy - 44, // 16: lnrpc.EstimateFeeRequest.inputs:type_name -> lnrpc.OutPoint - 44, // 17: lnrpc.EstimateFeeResponse.inputs:type_name -> lnrpc.OutPoint - 234, // 18: lnrpc.SendManyRequest.AddrToAmount:type_name -> lnrpc.SendManyRequest.AddrToAmountEntry - 1, // 19: lnrpc.SendManyRequest.coin_selection_strategy:type_name -> lnrpc.CoinSelectionStrategy - 1, // 20: lnrpc.SendCoinsRequest.coin_selection_strategy:type_name -> lnrpc.CoinSelectionStrategy - 44, // 21: lnrpc.SendCoinsRequest.outpoints:type_name -> lnrpc.OutPoint - 32, // 22: lnrpc.ListUnspentResponse.utxos:type_name -> lnrpc.Utxo - 2, // 23: lnrpc.NewAddressRequest.type:type_name -> lnrpc.AddressType - 46, // 24: lnrpc.ConnectPeerRequest.addr:type_name -> lnrpc.LightningAddress - 65, // 25: lnrpc.Channel.pending_htlcs:type_name -> lnrpc.HTLC - 3, // 26: lnrpc.Channel.commitment_type:type_name -> lnrpc.CommitmentType - 66, // 27: lnrpc.Channel.local_constraints:type_name -> lnrpc.ChannelConstraints - 66, // 28: lnrpc.Channel.remote_constraints:type_name -> lnrpc.ChannelConstraints - 67, // 29: lnrpc.ListChannelsResponse.channels:type_name -> lnrpc.Channel - 70, // 30: lnrpc.ListAliasesResponse.alias_maps:type_name -> lnrpc.AliasMap - 13, // 31: lnrpc.ChannelCloseSummary.close_type:type_name -> lnrpc.ChannelCloseSummary.ClosureType - 4, // 32: lnrpc.ChannelCloseSummary.open_initiator:type_name -> lnrpc.Initiator - 4, // 33: lnrpc.ChannelCloseSummary.close_initiator:type_name -> lnrpc.Initiator - 74, // 34: lnrpc.ChannelCloseSummary.resolutions:type_name -> lnrpc.Resolution - 5, // 35: lnrpc.Resolution.resolution_type:type_name -> lnrpc.ResolutionType - 6, // 36: lnrpc.Resolution.outcome:type_name -> lnrpc.ResolutionOutcome - 44, // 37: lnrpc.Resolution.outpoint:type_name -> lnrpc.OutPoint - 73, // 38: lnrpc.ClosedChannelsResponse.channels:type_name -> lnrpc.ChannelCloseSummary - 14, // 39: lnrpc.Peer.sync_type:type_name -> lnrpc.Peer.SyncType - 235, // 40: lnrpc.Peer.features:type_name -> lnrpc.Peer.FeaturesEntry - 78, // 41: lnrpc.Peer.errors:type_name -> lnrpc.TimestampedError - 77, // 42: lnrpc.ListPeersResponse.peers:type_name -> lnrpc.Peer - 15, // 43: lnrpc.PeerEvent.type:type_name -> lnrpc.PeerEvent.EventType - 89, // 44: lnrpc.GetInfoResponse.chains:type_name -> lnrpc.Chain - 236, // 45: lnrpc.GetInfoResponse.features:type_name -> lnrpc.GetInfoResponse.FeaturesEntry - 7, // 46: lnrpc.GetInfoResponse.graph_cache_status:type_name -> lnrpc.GraphCacheStatus - 237, // 47: lnrpc.GetDebugInfoResponse.config:type_name -> lnrpc.GetDebugInfoResponse.ConfigEntry - 43, // 48: lnrpc.ChannelOpenUpdate.channel_point:type_name -> lnrpc.ChannelPoint - 91, // 49: lnrpc.ChannelCloseUpdate.local_close_output:type_name -> lnrpc.CloseOutput - 91, // 50: lnrpc.ChannelCloseUpdate.remote_close_output:type_name -> lnrpc.CloseOutput - 91, // 51: lnrpc.ChannelCloseUpdate.additional_outputs:type_name -> lnrpc.CloseOutput - 43, // 52: lnrpc.CloseChannelRequest.channel_point:type_name -> lnrpc.ChannelPoint - 95, // 53: lnrpc.CloseStatusUpdate.close_pending:type_name -> lnrpc.PendingUpdate - 92, // 54: lnrpc.CloseStatusUpdate.chan_close:type_name -> lnrpc.ChannelCloseUpdate - 96, // 55: lnrpc.CloseStatusUpdate.close_instant:type_name -> lnrpc.InstantUpdate - 99, // 56: lnrpc.BatchOpenChannelRequest.channels:type_name -> lnrpc.BatchOpenChannel - 1, // 57: lnrpc.BatchOpenChannelRequest.coin_selection_strategy:type_name -> lnrpc.CoinSelectionStrategy - 3, // 58: lnrpc.BatchOpenChannel.commitment_type:type_name -> lnrpc.CommitmentType - 95, // 59: lnrpc.BatchOpenChannelResponse.pending_channels:type_name -> lnrpc.PendingUpdate - 107, // 60: lnrpc.OpenChannelRequest.funding_shim:type_name -> lnrpc.FundingShim - 3, // 61: lnrpc.OpenChannelRequest.commitment_type:type_name -> lnrpc.CommitmentType - 44, // 62: lnrpc.OpenChannelRequest.outpoints:type_name -> lnrpc.OutPoint - 95, // 63: lnrpc.OpenStatusUpdate.chan_pending:type_name -> lnrpc.PendingUpdate - 90, // 64: lnrpc.OpenStatusUpdate.chan_open:type_name -> lnrpc.ChannelOpenUpdate - 97, // 65: lnrpc.OpenStatusUpdate.psbt_fund:type_name -> lnrpc.ReadyForPsbtFunding - 103, // 66: lnrpc.KeyDescriptor.key_loc:type_name -> lnrpc.KeyLocator - 43, // 67: lnrpc.ChanPointShim.chan_point:type_name -> lnrpc.ChannelPoint - 104, // 68: lnrpc.ChanPointShim.local_key:type_name -> lnrpc.KeyDescriptor - 105, // 69: lnrpc.FundingShim.chan_point_shim:type_name -> lnrpc.ChanPointShim - 106, // 70: lnrpc.FundingShim.psbt_shim:type_name -> lnrpc.PsbtShim - 107, // 71: lnrpc.FundingTransitionMsg.shim_register:type_name -> lnrpc.FundingShim - 108, // 72: lnrpc.FundingTransitionMsg.shim_cancel:type_name -> lnrpc.FundingShimCancel - 109, // 73: lnrpc.FundingTransitionMsg.psbt_verify:type_name -> lnrpc.FundingPsbtVerify - 110, // 74: lnrpc.FundingTransitionMsg.psbt_finalize:type_name -> lnrpc.FundingPsbtFinalize - 239, // 75: lnrpc.PendingChannelsResponse.pending_open_channels:type_name -> lnrpc.PendingChannelsResponse.PendingOpenChannel - 242, // 76: lnrpc.PendingChannelsResponse.pending_closing_channels:type_name -> lnrpc.PendingChannelsResponse.ClosedChannel - 243, // 77: lnrpc.PendingChannelsResponse.pending_force_closing_channels:type_name -> lnrpc.PendingChannelsResponse.ForceClosedChannel - 240, // 78: lnrpc.PendingChannelsResponse.waiting_close_channels:type_name -> lnrpc.PendingChannelsResponse.WaitingCloseChannel - 67, // 79: lnrpc.ChannelCommitUpdate.channel:type_name -> lnrpc.Channel - 67, // 80: lnrpc.ChannelEventUpdate.open_channel:type_name -> lnrpc.Channel - 73, // 81: lnrpc.ChannelEventUpdate.closed_channel:type_name -> lnrpc.ChannelCloseSummary - 43, // 82: lnrpc.ChannelEventUpdate.active_channel:type_name -> lnrpc.ChannelPoint - 43, // 83: lnrpc.ChannelEventUpdate.inactive_channel:type_name -> lnrpc.ChannelPoint - 95, // 84: lnrpc.ChannelEventUpdate.pending_open_channel:type_name -> lnrpc.PendingUpdate - 43, // 85: lnrpc.ChannelEventUpdate.fully_resolved_channel:type_name -> lnrpc.ChannelPoint - 43, // 86: lnrpc.ChannelEventUpdate.channel_funding_timeout:type_name -> lnrpc.ChannelPoint - 117, // 87: lnrpc.ChannelEventUpdate.updated_channel:type_name -> lnrpc.ChannelCommitUpdate - 17, // 88: lnrpc.ChannelEventUpdate.type:type_name -> lnrpc.ChannelEventUpdate.UpdateType - 244, // 89: lnrpc.WalletBalanceResponse.account_balance:type_name -> lnrpc.WalletBalanceResponse.AccountBalanceEntry - 122, // 90: lnrpc.ChannelBalanceResponse.local_balance:type_name -> lnrpc.Amount - 122, // 91: lnrpc.ChannelBalanceResponse.remote_balance:type_name -> lnrpc.Amount - 122, // 92: lnrpc.ChannelBalanceResponse.unsettled_local_balance:type_name -> lnrpc.Amount - 122, // 93: lnrpc.ChannelBalanceResponse.unsettled_remote_balance:type_name -> lnrpc.Amount - 122, // 94: lnrpc.ChannelBalanceResponse.pending_open_local_balance:type_name -> lnrpc.Amount - 122, // 95: lnrpc.ChannelBalanceResponse.pending_open_remote_balance:type_name -> lnrpc.Amount - 37, // 96: lnrpc.QueryRoutesRequest.fee_limit:type_name -> lnrpc.FeeLimit - 127, // 97: lnrpc.QueryRoutesRequest.ignored_edges:type_name -> lnrpc.EdgeLocator - 126, // 98: lnrpc.QueryRoutesRequest.ignored_pairs:type_name -> lnrpc.NodePair - 245, // 99: lnrpc.QueryRoutesRequest.dest_custom_records:type_name -> lnrpc.QueryRoutesRequest.DestCustomRecordsEntry - 157, // 100: lnrpc.QueryRoutesRequest.route_hints:type_name -> lnrpc.RouteHint - 158, // 101: lnrpc.QueryRoutesRequest.blinded_payment_paths:type_name -> lnrpc.BlindedPaymentPath - 11, // 102: lnrpc.QueryRoutesRequest.dest_features:type_name -> lnrpc.FeatureBit - 132, // 103: lnrpc.QueryRoutesResponse.routes:type_name -> lnrpc.Route - 130, // 104: lnrpc.Hop.mpp_record:type_name -> lnrpc.MPPRecord - 131, // 105: lnrpc.Hop.amp_record:type_name -> lnrpc.AMPRecord - 246, // 106: lnrpc.Hop.custom_records:type_name -> lnrpc.Hop.CustomRecordsEntry - 129, // 107: lnrpc.Route.hops:type_name -> lnrpc.Hop - 135, // 108: lnrpc.NodeInfo.node:type_name -> lnrpc.LightningNode - 139, // 109: lnrpc.NodeInfo.channels:type_name -> lnrpc.ChannelEdge - 136, // 110: lnrpc.LightningNode.addresses:type_name -> lnrpc.NodeAddress - 247, // 111: lnrpc.LightningNode.features:type_name -> lnrpc.LightningNode.FeaturesEntry - 248, // 112: lnrpc.LightningNode.custom_records:type_name -> lnrpc.LightningNode.CustomRecordsEntry - 249, // 113: lnrpc.RoutingPolicy.custom_records:type_name -> lnrpc.RoutingPolicy.CustomRecordsEntry - 137, // 114: lnrpc.ChannelEdge.node1_policy:type_name -> lnrpc.RoutingPolicy - 137, // 115: lnrpc.ChannelEdge.node2_policy:type_name -> lnrpc.RoutingPolicy - 250, // 116: lnrpc.ChannelEdge.custom_records:type_name -> lnrpc.ChannelEdge.CustomRecordsEntry - 138, // 117: lnrpc.ChannelEdge.auth_proof:type_name -> lnrpc.ChannelAuthProof - 135, // 118: lnrpc.ChannelGraph.nodes:type_name -> lnrpc.LightningNode - 139, // 119: lnrpc.ChannelGraph.edges:type_name -> lnrpc.ChannelEdge - 8, // 120: lnrpc.NodeMetricsRequest.types:type_name -> lnrpc.NodeMetricType - 251, // 121: lnrpc.NodeMetricsResponse.betweenness_centrality:type_name -> lnrpc.NodeMetricsResponse.BetweennessCentralityEntry - 152, // 122: lnrpc.GraphTopologyUpdate.node_updates:type_name -> lnrpc.NodeUpdate - 153, // 123: lnrpc.GraphTopologyUpdate.channel_updates:type_name -> lnrpc.ChannelEdgeUpdate - 154, // 124: lnrpc.GraphTopologyUpdate.closed_chans:type_name -> lnrpc.ClosedChannelUpdate - 136, // 125: lnrpc.NodeUpdate.node_addresses:type_name -> lnrpc.NodeAddress - 252, // 126: lnrpc.NodeUpdate.features:type_name -> lnrpc.NodeUpdate.FeaturesEntry - 43, // 127: lnrpc.ChannelEdgeUpdate.chan_point:type_name -> lnrpc.ChannelPoint - 137, // 128: lnrpc.ChannelEdgeUpdate.routing_policy:type_name -> lnrpc.RoutingPolicy - 43, // 129: lnrpc.ClosedChannelUpdate.chan_point:type_name -> lnrpc.ChannelPoint - 155, // 130: lnrpc.RouteHint.hop_hints:type_name -> lnrpc.HopHint - 159, // 131: lnrpc.BlindedPaymentPath.blinded_path:type_name -> lnrpc.BlindedPath - 11, // 132: lnrpc.BlindedPaymentPath.features:type_name -> lnrpc.FeatureBit - 160, // 133: lnrpc.BlindedPath.blinded_hops:type_name -> lnrpc.BlindedHop - 9, // 134: lnrpc.AMPInvoiceState.state:type_name -> lnrpc.InvoiceHTLCState - 157, // 135: lnrpc.Invoice.route_hints:type_name -> lnrpc.RouteHint - 18, // 136: lnrpc.Invoice.state:type_name -> lnrpc.Invoice.InvoiceState - 164, // 137: lnrpc.Invoice.htlcs:type_name -> lnrpc.InvoiceHTLC - 253, // 138: lnrpc.Invoice.features:type_name -> lnrpc.Invoice.FeaturesEntry - 254, // 139: lnrpc.Invoice.amp_invoice_state:type_name -> lnrpc.Invoice.AmpInvoiceStateEntry - 163, // 140: lnrpc.Invoice.blinded_path_config:type_name -> lnrpc.BlindedPathConfig - 9, // 141: lnrpc.InvoiceHTLC.state:type_name -> lnrpc.InvoiceHTLCState - 255, // 142: lnrpc.InvoiceHTLC.custom_records:type_name -> lnrpc.InvoiceHTLC.CustomRecordsEntry - 165, // 143: lnrpc.InvoiceHTLC.amp:type_name -> lnrpc.AMP - 162, // 144: lnrpc.ListInvoiceResponse.invoices:type_name -> lnrpc.Invoice - 19, // 145: lnrpc.Payment.status:type_name -> lnrpc.Payment.PaymentStatus - 174, // 146: lnrpc.Payment.htlcs:type_name -> lnrpc.HTLCAttempt - 10, // 147: lnrpc.Payment.failure_reason:type_name -> lnrpc.PaymentFailureReason - 256, // 148: lnrpc.Payment.first_hop_custom_records:type_name -> lnrpc.Payment.FirstHopCustomRecordsEntry - 20, // 149: lnrpc.HTLCAttempt.status:type_name -> lnrpc.HTLCAttempt.HTLCStatus - 132, // 150: lnrpc.HTLCAttempt.route:type_name -> lnrpc.Route - 218, // 151: lnrpc.HTLCAttempt.failure:type_name -> lnrpc.Failure - 173, // 152: lnrpc.ListPaymentsResponse.payments:type_name -> lnrpc.Payment - 43, // 153: lnrpc.AbandonChannelRequest.channel_point:type_name -> lnrpc.ChannelPoint - 157, // 154: lnrpc.PayReq.route_hints:type_name -> lnrpc.RouteHint - 257, // 155: lnrpc.PayReq.features:type_name -> lnrpc.PayReq.FeaturesEntry - 158, // 156: lnrpc.PayReq.blinded_paths:type_name -> lnrpc.BlindedPaymentPath - 189, // 157: lnrpc.FeeReportResponse.channel_fees:type_name -> lnrpc.ChannelFeeReport - 43, // 158: lnrpc.PolicyUpdateRequest.chan_point:type_name -> lnrpc.ChannelPoint - 191, // 159: lnrpc.PolicyUpdateRequest.inbound_fee:type_name -> lnrpc.InboundFee - 44, // 160: lnrpc.FailedUpdate.outpoint:type_name -> lnrpc.OutPoint - 12, // 161: lnrpc.FailedUpdate.reason:type_name -> lnrpc.UpdateFailure - 193, // 162: lnrpc.PolicyUpdateResponse.failed_updates:type_name -> lnrpc.FailedUpdate - 196, // 163: lnrpc.ForwardingHistoryResponse.forwarding_events:type_name -> lnrpc.ForwardingEvent - 43, // 164: lnrpc.ExportChannelBackupRequest.chan_point:type_name -> lnrpc.ChannelPoint - 43, // 165: lnrpc.ChannelBackup.chan_point:type_name -> lnrpc.ChannelPoint - 43, // 166: lnrpc.MultiChanBackup.chan_points:type_name -> lnrpc.ChannelPoint - 203, // 167: lnrpc.ChanBackupSnapshot.single_chan_backups:type_name -> lnrpc.ChannelBackups - 200, // 168: lnrpc.ChanBackupSnapshot.multi_chan_backup:type_name -> lnrpc.MultiChanBackup - 199, // 169: lnrpc.ChannelBackups.chan_backups:type_name -> lnrpc.ChannelBackup - 203, // 170: lnrpc.RestoreChanBackupRequest.chan_backups:type_name -> lnrpc.ChannelBackups - 208, // 171: lnrpc.BakeMacaroonRequest.permissions:type_name -> lnrpc.MacaroonPermission - 208, // 172: lnrpc.MacaroonPermissionList.permissions:type_name -> lnrpc.MacaroonPermission - 258, // 173: lnrpc.ListPermissionsResponse.method_permissions:type_name -> lnrpc.ListPermissionsResponse.MethodPermissionsEntry - 21, // 174: lnrpc.Failure.code:type_name -> lnrpc.Failure.FailureCode - 219, // 175: lnrpc.Failure.channel_update:type_name -> lnrpc.ChannelUpdate - 221, // 176: lnrpc.MacaroonId.ops:type_name -> lnrpc.Op - 208, // 177: lnrpc.CheckMacPermRequest.permissions:type_name -> lnrpc.MacaroonPermission - 226, // 178: lnrpc.RPCMiddlewareRequest.stream_auth:type_name -> lnrpc.StreamAuth - 227, // 179: lnrpc.RPCMiddlewareRequest.request:type_name -> lnrpc.RPCMessage - 227, // 180: lnrpc.RPCMiddlewareRequest.response:type_name -> lnrpc.RPCMessage - 259, // 181: lnrpc.RPCMiddlewareRequest.metadata_pairs:type_name -> lnrpc.RPCMiddlewareRequest.MetadataPairsEntry - 229, // 182: lnrpc.RPCMiddlewareResponse.register:type_name -> lnrpc.MiddlewareRegistration - 230, // 183: lnrpc.RPCMiddlewareResponse.feedback:type_name -> lnrpc.InterceptFeedback - 187, // 184: lnrpc.Peer.FeaturesEntry.value:type_name -> lnrpc.Feature - 187, // 185: lnrpc.GetInfoResponse.FeaturesEntry.value:type_name -> lnrpc.Feature - 4, // 186: lnrpc.PendingChannelsResponse.PendingChannel.initiator:type_name -> lnrpc.Initiator - 3, // 187: lnrpc.PendingChannelsResponse.PendingChannel.commitment_type:type_name -> lnrpc.CommitmentType - 238, // 188: lnrpc.PendingChannelsResponse.PendingOpenChannel.channel:type_name -> lnrpc.PendingChannelsResponse.PendingChannel - 238, // 189: lnrpc.PendingChannelsResponse.WaitingCloseChannel.channel:type_name -> lnrpc.PendingChannelsResponse.PendingChannel - 241, // 190: lnrpc.PendingChannelsResponse.WaitingCloseChannel.commitments:type_name -> lnrpc.PendingChannelsResponse.Commitments - 238, // 191: lnrpc.PendingChannelsResponse.ClosedChannel.channel:type_name -> lnrpc.PendingChannelsResponse.PendingChannel - 238, // 192: lnrpc.PendingChannelsResponse.ForceClosedChannel.channel:type_name -> lnrpc.PendingChannelsResponse.PendingChannel - 113, // 193: lnrpc.PendingChannelsResponse.ForceClosedChannel.pending_htlcs:type_name -> lnrpc.PendingHTLC - 16, // 194: lnrpc.PendingChannelsResponse.ForceClosedChannel.anchor:type_name -> lnrpc.PendingChannelsResponse.ForceClosedChannel.AnchorState - 119, // 195: lnrpc.WalletBalanceResponse.AccountBalanceEntry.value:type_name -> lnrpc.WalletAccountBalance - 187, // 196: lnrpc.LightningNode.FeaturesEntry.value:type_name -> lnrpc.Feature - 144, // 197: lnrpc.NodeMetricsResponse.BetweennessCentralityEntry.value:type_name -> lnrpc.FloatMetric - 187, // 198: lnrpc.NodeUpdate.FeaturesEntry.value:type_name -> lnrpc.Feature - 187, // 199: lnrpc.Invoice.FeaturesEntry.value:type_name -> lnrpc.Feature - 161, // 200: lnrpc.Invoice.AmpInvoiceStateEntry.value:type_name -> lnrpc.AMPInvoiceState - 187, // 201: lnrpc.PayReq.FeaturesEntry.value:type_name -> lnrpc.Feature - 215, // 202: lnrpc.ListPermissionsResponse.MethodPermissionsEntry.value:type_name -> lnrpc.MacaroonPermissionList - 225, // 203: lnrpc.RPCMiddlewareRequest.MetadataPairsEntry.value:type_name -> lnrpc.MetadataValues - 120, // 204: lnrpc.Lightning.WalletBalance:input_type -> lnrpc.WalletBalanceRequest - 123, // 205: lnrpc.Lightning.ChannelBalance:input_type -> lnrpc.ChannelBalanceRequest - 35, // 206: lnrpc.Lightning.GetTransactions:input_type -> lnrpc.GetTransactionsRequest - 47, // 207: lnrpc.Lightning.EstimateFee:input_type -> lnrpc.EstimateFeeRequest - 51, // 208: lnrpc.Lightning.SendCoins:input_type -> lnrpc.SendCoinsRequest - 53, // 209: lnrpc.Lightning.ListUnspent:input_type -> lnrpc.ListUnspentRequest - 35, // 210: lnrpc.Lightning.SubscribeTransactions:input_type -> lnrpc.GetTransactionsRequest - 49, // 211: lnrpc.Lightning.SendMany:input_type -> lnrpc.SendManyRequest - 55, // 212: lnrpc.Lightning.NewAddress:input_type -> lnrpc.NewAddressRequest - 57, // 213: lnrpc.Lightning.SignMessage:input_type -> lnrpc.SignMessageRequest - 59, // 214: lnrpc.Lightning.VerifyMessage:input_type -> lnrpc.VerifyMessageRequest - 61, // 215: lnrpc.Lightning.ConnectPeer:input_type -> lnrpc.ConnectPeerRequest - 63, // 216: lnrpc.Lightning.DisconnectPeer:input_type -> lnrpc.DisconnectPeerRequest - 79, // 217: lnrpc.Lightning.ListPeers:input_type -> lnrpc.ListPeersRequest - 81, // 218: lnrpc.Lightning.SubscribePeerEvents:input_type -> lnrpc.PeerEventSubscription - 83, // 219: lnrpc.Lightning.GetInfo:input_type -> lnrpc.GetInfoRequest - 85, // 220: lnrpc.Lightning.GetDebugInfo:input_type -> lnrpc.GetDebugInfoRequest - 87, // 221: lnrpc.Lightning.GetRecoveryInfo:input_type -> lnrpc.GetRecoveryInfoRequest - 114, // 222: lnrpc.Lightning.PendingChannels:input_type -> lnrpc.PendingChannelsRequest - 68, // 223: lnrpc.Lightning.ListChannels:input_type -> lnrpc.ListChannelsRequest - 116, // 224: lnrpc.Lightning.SubscribeChannelEvents:input_type -> lnrpc.ChannelEventSubscription - 75, // 225: lnrpc.Lightning.ClosedChannels:input_type -> lnrpc.ClosedChannelsRequest - 101, // 226: lnrpc.Lightning.OpenChannelSync:input_type -> lnrpc.OpenChannelRequest - 101, // 227: lnrpc.Lightning.OpenChannel:input_type -> lnrpc.OpenChannelRequest - 98, // 228: lnrpc.Lightning.BatchOpenChannel:input_type -> lnrpc.BatchOpenChannelRequest - 111, // 229: lnrpc.Lightning.FundingStateStep:input_type -> lnrpc.FundingTransitionMsg - 42, // 230: lnrpc.Lightning.ChannelAcceptor:input_type -> lnrpc.ChannelAcceptResponse - 93, // 231: lnrpc.Lightning.CloseChannel:input_type -> lnrpc.CloseChannelRequest - 181, // 232: lnrpc.Lightning.AbandonChannel:input_type -> lnrpc.AbandonChannelRequest - 38, // 233: lnrpc.Lightning.SendPayment:input_type -> lnrpc.SendRequest - 38, // 234: lnrpc.Lightning.SendPaymentSync:input_type -> lnrpc.SendRequest - 40, // 235: lnrpc.Lightning.SendToRoute:input_type -> lnrpc.SendToRouteRequest - 40, // 236: lnrpc.Lightning.SendToRouteSync:input_type -> lnrpc.SendToRouteRequest - 162, // 237: lnrpc.Lightning.AddInvoice:input_type -> lnrpc.Invoice - 168, // 238: lnrpc.Lightning.ListInvoices:input_type -> lnrpc.ListInvoiceRequest - 167, // 239: lnrpc.Lightning.LookupInvoice:input_type -> lnrpc.PaymentHash - 170, // 240: lnrpc.Lightning.SubscribeInvoices:input_type -> lnrpc.InvoiceSubscription - 171, // 241: lnrpc.Lightning.DeleteCanceledInvoice:input_type -> lnrpc.DelCanceledInvoiceReq - 185, // 242: lnrpc.Lightning.DecodePayReq:input_type -> lnrpc.PayReqString - 175, // 243: lnrpc.Lightning.ListPayments:input_type -> lnrpc.ListPaymentsRequest - 177, // 244: lnrpc.Lightning.DeletePayment:input_type -> lnrpc.DeletePaymentRequest - 178, // 245: lnrpc.Lightning.DeleteAllPayments:input_type -> lnrpc.DeleteAllPaymentsRequest - 140, // 246: lnrpc.Lightning.DescribeGraph:input_type -> lnrpc.ChannelGraphRequest - 142, // 247: lnrpc.Lightning.GetNodeMetrics:input_type -> lnrpc.NodeMetricsRequest - 145, // 248: lnrpc.Lightning.GetChanInfo:input_type -> lnrpc.ChanInfoRequest - 133, // 249: lnrpc.Lightning.GetNodeInfo:input_type -> lnrpc.NodeInfoRequest - 125, // 250: lnrpc.Lightning.QueryRoutes:input_type -> lnrpc.QueryRoutesRequest - 146, // 251: lnrpc.Lightning.GetNetworkInfo:input_type -> lnrpc.NetworkInfoRequest - 148, // 252: lnrpc.Lightning.StopDaemon:input_type -> lnrpc.StopRequest - 150, // 253: lnrpc.Lightning.SubscribeChannelGraph:input_type -> lnrpc.GraphTopologySubscription - 183, // 254: lnrpc.Lightning.DebugLevel:input_type -> lnrpc.DebugLevelRequest - 188, // 255: lnrpc.Lightning.FeeReport:input_type -> lnrpc.FeeReportRequest - 192, // 256: lnrpc.Lightning.UpdateChannelPolicy:input_type -> lnrpc.PolicyUpdateRequest - 195, // 257: lnrpc.Lightning.ForwardingHistory:input_type -> lnrpc.ForwardingHistoryRequest - 198, // 258: lnrpc.Lightning.ExportChannelBackup:input_type -> lnrpc.ExportChannelBackupRequest - 201, // 259: lnrpc.Lightning.ExportAllChannelBackups:input_type -> lnrpc.ChanBackupExportRequest - 202, // 260: lnrpc.Lightning.VerifyChanBackup:input_type -> lnrpc.ChanBackupSnapshot - 204, // 261: lnrpc.Lightning.RestoreChannelBackups:input_type -> lnrpc.RestoreChanBackupRequest - 206, // 262: lnrpc.Lightning.SubscribeChannelBackups:input_type -> lnrpc.ChannelBackupSubscription - 209, // 263: lnrpc.Lightning.BakeMacaroon:input_type -> lnrpc.BakeMacaroonRequest - 211, // 264: lnrpc.Lightning.ListMacaroonIDs:input_type -> lnrpc.ListMacaroonIDsRequest - 213, // 265: lnrpc.Lightning.DeleteMacaroonID:input_type -> lnrpc.DeleteMacaroonIDRequest - 216, // 266: lnrpc.Lightning.ListPermissions:input_type -> lnrpc.ListPermissionsRequest - 222, // 267: lnrpc.Lightning.CheckMacaroonPermissions:input_type -> lnrpc.CheckMacPermRequest - 228, // 268: lnrpc.Lightning.RegisterRPCMiddleware:input_type -> lnrpc.RPCMiddlewareResponse - 26, // 269: lnrpc.Lightning.SendCustomMessage:input_type -> lnrpc.SendCustomMessageRequest - 24, // 270: lnrpc.Lightning.SubscribeCustomMessages:input_type -> lnrpc.SubscribeCustomMessagesRequest - 30, // 271: lnrpc.Lightning.SendOnionMessage:input_type -> lnrpc.SendOnionMessageRequest - 28, // 272: lnrpc.Lightning.SubscribeOnionMessages:input_type -> lnrpc.SubscribeOnionMessagesRequest - 71, // 273: lnrpc.Lightning.ListAliases:input_type -> lnrpc.ListAliasesRequest - 22, // 274: lnrpc.Lightning.LookupHtlcResolution:input_type -> lnrpc.LookupHtlcResolutionRequest - 121, // 275: lnrpc.Lightning.WalletBalance:output_type -> lnrpc.WalletBalanceResponse - 124, // 276: lnrpc.Lightning.ChannelBalance:output_type -> lnrpc.ChannelBalanceResponse - 36, // 277: lnrpc.Lightning.GetTransactions:output_type -> lnrpc.TransactionDetails - 48, // 278: lnrpc.Lightning.EstimateFee:output_type -> lnrpc.EstimateFeeResponse - 52, // 279: lnrpc.Lightning.SendCoins:output_type -> lnrpc.SendCoinsResponse - 54, // 280: lnrpc.Lightning.ListUnspent:output_type -> lnrpc.ListUnspentResponse - 34, // 281: lnrpc.Lightning.SubscribeTransactions:output_type -> lnrpc.Transaction - 50, // 282: lnrpc.Lightning.SendMany:output_type -> lnrpc.SendManyResponse - 56, // 283: lnrpc.Lightning.NewAddress:output_type -> lnrpc.NewAddressResponse - 58, // 284: lnrpc.Lightning.SignMessage:output_type -> lnrpc.SignMessageResponse - 60, // 285: lnrpc.Lightning.VerifyMessage:output_type -> lnrpc.VerifyMessageResponse - 62, // 286: lnrpc.Lightning.ConnectPeer:output_type -> lnrpc.ConnectPeerResponse - 64, // 287: lnrpc.Lightning.DisconnectPeer:output_type -> lnrpc.DisconnectPeerResponse - 80, // 288: lnrpc.Lightning.ListPeers:output_type -> lnrpc.ListPeersResponse - 82, // 289: lnrpc.Lightning.SubscribePeerEvents:output_type -> lnrpc.PeerEvent - 84, // 290: lnrpc.Lightning.GetInfo:output_type -> lnrpc.GetInfoResponse - 86, // 291: lnrpc.Lightning.GetDebugInfo:output_type -> lnrpc.GetDebugInfoResponse - 88, // 292: lnrpc.Lightning.GetRecoveryInfo:output_type -> lnrpc.GetRecoveryInfoResponse - 115, // 293: lnrpc.Lightning.PendingChannels:output_type -> lnrpc.PendingChannelsResponse - 69, // 294: lnrpc.Lightning.ListChannels:output_type -> lnrpc.ListChannelsResponse - 118, // 295: lnrpc.Lightning.SubscribeChannelEvents:output_type -> lnrpc.ChannelEventUpdate - 76, // 296: lnrpc.Lightning.ClosedChannels:output_type -> lnrpc.ClosedChannelsResponse - 43, // 297: lnrpc.Lightning.OpenChannelSync:output_type -> lnrpc.ChannelPoint - 102, // 298: lnrpc.Lightning.OpenChannel:output_type -> lnrpc.OpenStatusUpdate - 100, // 299: lnrpc.Lightning.BatchOpenChannel:output_type -> lnrpc.BatchOpenChannelResponse - 112, // 300: lnrpc.Lightning.FundingStateStep:output_type -> lnrpc.FundingStateStepResp - 41, // 301: lnrpc.Lightning.ChannelAcceptor:output_type -> lnrpc.ChannelAcceptRequest - 94, // 302: lnrpc.Lightning.CloseChannel:output_type -> lnrpc.CloseStatusUpdate - 182, // 303: lnrpc.Lightning.AbandonChannel:output_type -> lnrpc.AbandonChannelResponse - 39, // 304: lnrpc.Lightning.SendPayment:output_type -> lnrpc.SendResponse - 39, // 305: lnrpc.Lightning.SendPaymentSync:output_type -> lnrpc.SendResponse - 39, // 306: lnrpc.Lightning.SendToRoute:output_type -> lnrpc.SendResponse - 39, // 307: lnrpc.Lightning.SendToRouteSync:output_type -> lnrpc.SendResponse - 166, // 308: lnrpc.Lightning.AddInvoice:output_type -> lnrpc.AddInvoiceResponse - 169, // 309: lnrpc.Lightning.ListInvoices:output_type -> lnrpc.ListInvoiceResponse - 162, // 310: lnrpc.Lightning.LookupInvoice:output_type -> lnrpc.Invoice - 162, // 311: lnrpc.Lightning.SubscribeInvoices:output_type -> lnrpc.Invoice - 172, // 312: lnrpc.Lightning.DeleteCanceledInvoice:output_type -> lnrpc.DelCanceledInvoiceResp - 186, // 313: lnrpc.Lightning.DecodePayReq:output_type -> lnrpc.PayReq - 176, // 314: lnrpc.Lightning.ListPayments:output_type -> lnrpc.ListPaymentsResponse - 179, // 315: lnrpc.Lightning.DeletePayment:output_type -> lnrpc.DeletePaymentResponse - 180, // 316: lnrpc.Lightning.DeleteAllPayments:output_type -> lnrpc.DeleteAllPaymentsResponse - 141, // 317: lnrpc.Lightning.DescribeGraph:output_type -> lnrpc.ChannelGraph - 143, // 318: lnrpc.Lightning.GetNodeMetrics:output_type -> lnrpc.NodeMetricsResponse - 139, // 319: lnrpc.Lightning.GetChanInfo:output_type -> lnrpc.ChannelEdge - 134, // 320: lnrpc.Lightning.GetNodeInfo:output_type -> lnrpc.NodeInfo - 128, // 321: lnrpc.Lightning.QueryRoutes:output_type -> lnrpc.QueryRoutesResponse - 147, // 322: lnrpc.Lightning.GetNetworkInfo:output_type -> lnrpc.NetworkInfo - 149, // 323: lnrpc.Lightning.StopDaemon:output_type -> lnrpc.StopResponse - 151, // 324: lnrpc.Lightning.SubscribeChannelGraph:output_type -> lnrpc.GraphTopologyUpdate - 184, // 325: lnrpc.Lightning.DebugLevel:output_type -> lnrpc.DebugLevelResponse - 190, // 326: lnrpc.Lightning.FeeReport:output_type -> lnrpc.FeeReportResponse - 194, // 327: lnrpc.Lightning.UpdateChannelPolicy:output_type -> lnrpc.PolicyUpdateResponse - 197, // 328: lnrpc.Lightning.ForwardingHistory:output_type -> lnrpc.ForwardingHistoryResponse - 199, // 329: lnrpc.Lightning.ExportChannelBackup:output_type -> lnrpc.ChannelBackup - 202, // 330: lnrpc.Lightning.ExportAllChannelBackups:output_type -> lnrpc.ChanBackupSnapshot - 207, // 331: lnrpc.Lightning.VerifyChanBackup:output_type -> lnrpc.VerifyChanBackupResponse - 205, // 332: lnrpc.Lightning.RestoreChannelBackups:output_type -> lnrpc.RestoreBackupResponse - 202, // 333: lnrpc.Lightning.SubscribeChannelBackups:output_type -> lnrpc.ChanBackupSnapshot - 210, // 334: lnrpc.Lightning.BakeMacaroon:output_type -> lnrpc.BakeMacaroonResponse - 212, // 335: lnrpc.Lightning.ListMacaroonIDs:output_type -> lnrpc.ListMacaroonIDsResponse - 214, // 336: lnrpc.Lightning.DeleteMacaroonID:output_type -> lnrpc.DeleteMacaroonIDResponse - 217, // 337: lnrpc.Lightning.ListPermissions:output_type -> lnrpc.ListPermissionsResponse - 223, // 338: lnrpc.Lightning.CheckMacaroonPermissions:output_type -> lnrpc.CheckMacPermResponse - 224, // 339: lnrpc.Lightning.RegisterRPCMiddleware:output_type -> lnrpc.RPCMiddlewareRequest - 27, // 340: lnrpc.Lightning.SendCustomMessage:output_type -> lnrpc.SendCustomMessageResponse - 25, // 341: lnrpc.Lightning.SubscribeCustomMessages:output_type -> lnrpc.CustomMessage - 31, // 342: lnrpc.Lightning.SendOnionMessage:output_type -> lnrpc.SendOnionMessageResponse - 29, // 343: lnrpc.Lightning.SubscribeOnionMessages:output_type -> lnrpc.OnionMessageUpdate - 72, // 344: lnrpc.Lightning.ListAliases:output_type -> lnrpc.ListAliasesResponse - 23, // 345: lnrpc.Lightning.LookupHtlcResolution:output_type -> lnrpc.LookupHtlcResolutionResponse - 275, // [275:346] is the sub-list for method output_type - 204, // [204:275] is the sub-list for method input_type - 204, // [204:204] is the sub-list for extension type_name - 204, // [204:204] is the sub-list for extension extendee - 0, // [0:204] is the sub-list for field type_name + 3, // 8: lnrpc.ChannelAcceptRequest.commitment_type:type_name -> lnrpc.CommitmentType + 229, // 9: lnrpc.EstimateFeeRequest.AddrToAmount:type_name -> lnrpc.EstimateFeeRequest.AddrToAmountEntry + 1, // 10: lnrpc.EstimateFeeRequest.coin_selection_strategy:type_name -> lnrpc.CoinSelectionStrategy + 41, // 11: lnrpc.EstimateFeeRequest.inputs:type_name -> lnrpc.OutPoint + 41, // 12: lnrpc.EstimateFeeResponse.inputs:type_name -> lnrpc.OutPoint + 230, // 13: lnrpc.SendManyRequest.AddrToAmount:type_name -> lnrpc.SendManyRequest.AddrToAmountEntry + 1, // 14: lnrpc.SendManyRequest.coin_selection_strategy:type_name -> lnrpc.CoinSelectionStrategy + 1, // 15: lnrpc.SendCoinsRequest.coin_selection_strategy:type_name -> lnrpc.CoinSelectionStrategy + 41, // 16: lnrpc.SendCoinsRequest.outpoints:type_name -> lnrpc.OutPoint + 32, // 17: lnrpc.ListUnspentResponse.utxos:type_name -> lnrpc.Utxo + 2, // 18: lnrpc.NewAddressRequest.type:type_name -> lnrpc.AddressType + 43, // 19: lnrpc.ConnectPeerRequest.addr:type_name -> lnrpc.LightningAddress + 62, // 20: lnrpc.Channel.pending_htlcs:type_name -> lnrpc.HTLC + 3, // 21: lnrpc.Channel.commitment_type:type_name -> lnrpc.CommitmentType + 63, // 22: lnrpc.Channel.local_constraints:type_name -> lnrpc.ChannelConstraints + 63, // 23: lnrpc.Channel.remote_constraints:type_name -> lnrpc.ChannelConstraints + 64, // 24: lnrpc.ListChannelsResponse.channels:type_name -> lnrpc.Channel + 67, // 25: lnrpc.ListAliasesResponse.alias_maps:type_name -> lnrpc.AliasMap + 13, // 26: lnrpc.ChannelCloseSummary.close_type:type_name -> lnrpc.ChannelCloseSummary.ClosureType + 4, // 27: lnrpc.ChannelCloseSummary.open_initiator:type_name -> lnrpc.Initiator + 4, // 28: lnrpc.ChannelCloseSummary.close_initiator:type_name -> lnrpc.Initiator + 71, // 29: lnrpc.ChannelCloseSummary.resolutions:type_name -> lnrpc.Resolution + 5, // 30: lnrpc.Resolution.resolution_type:type_name -> lnrpc.ResolutionType + 6, // 31: lnrpc.Resolution.outcome:type_name -> lnrpc.ResolutionOutcome + 41, // 32: lnrpc.Resolution.outpoint:type_name -> lnrpc.OutPoint + 70, // 33: lnrpc.ClosedChannelsResponse.channels:type_name -> lnrpc.ChannelCloseSummary + 14, // 34: lnrpc.Peer.sync_type:type_name -> lnrpc.Peer.SyncType + 231, // 35: lnrpc.Peer.features:type_name -> lnrpc.Peer.FeaturesEntry + 75, // 36: lnrpc.Peer.errors:type_name -> lnrpc.TimestampedError + 74, // 37: lnrpc.ListPeersResponse.peers:type_name -> lnrpc.Peer + 15, // 38: lnrpc.PeerEvent.type:type_name -> lnrpc.PeerEvent.EventType + 86, // 39: lnrpc.GetInfoResponse.chains:type_name -> lnrpc.Chain + 232, // 40: lnrpc.GetInfoResponse.features:type_name -> lnrpc.GetInfoResponse.FeaturesEntry + 7, // 41: lnrpc.GetInfoResponse.graph_cache_status:type_name -> lnrpc.GraphCacheStatus + 233, // 42: lnrpc.GetDebugInfoResponse.config:type_name -> lnrpc.GetDebugInfoResponse.ConfigEntry + 40, // 43: lnrpc.ChannelOpenUpdate.channel_point:type_name -> lnrpc.ChannelPoint + 88, // 44: lnrpc.ChannelCloseUpdate.local_close_output:type_name -> lnrpc.CloseOutput + 88, // 45: lnrpc.ChannelCloseUpdate.remote_close_output:type_name -> lnrpc.CloseOutput + 88, // 46: lnrpc.ChannelCloseUpdate.additional_outputs:type_name -> lnrpc.CloseOutput + 40, // 47: lnrpc.CloseChannelRequest.channel_point:type_name -> lnrpc.ChannelPoint + 92, // 48: lnrpc.CloseStatusUpdate.close_pending:type_name -> lnrpc.PendingUpdate + 89, // 49: lnrpc.CloseStatusUpdate.chan_close:type_name -> lnrpc.ChannelCloseUpdate + 93, // 50: lnrpc.CloseStatusUpdate.close_instant:type_name -> lnrpc.InstantUpdate + 96, // 51: lnrpc.BatchOpenChannelRequest.channels:type_name -> lnrpc.BatchOpenChannel + 1, // 52: lnrpc.BatchOpenChannelRequest.coin_selection_strategy:type_name -> lnrpc.CoinSelectionStrategy + 3, // 53: lnrpc.BatchOpenChannel.commitment_type:type_name -> lnrpc.CommitmentType + 92, // 54: lnrpc.BatchOpenChannelResponse.pending_channels:type_name -> lnrpc.PendingUpdate + 104, // 55: lnrpc.OpenChannelRequest.funding_shim:type_name -> lnrpc.FundingShim + 3, // 56: lnrpc.OpenChannelRequest.commitment_type:type_name -> lnrpc.CommitmentType + 41, // 57: lnrpc.OpenChannelRequest.outpoints:type_name -> lnrpc.OutPoint + 92, // 58: lnrpc.OpenStatusUpdate.chan_pending:type_name -> lnrpc.PendingUpdate + 87, // 59: lnrpc.OpenStatusUpdate.chan_open:type_name -> lnrpc.ChannelOpenUpdate + 94, // 60: lnrpc.OpenStatusUpdate.psbt_fund:type_name -> lnrpc.ReadyForPsbtFunding + 100, // 61: lnrpc.KeyDescriptor.key_loc:type_name -> lnrpc.KeyLocator + 40, // 62: lnrpc.ChanPointShim.chan_point:type_name -> lnrpc.ChannelPoint + 101, // 63: lnrpc.ChanPointShim.local_key:type_name -> lnrpc.KeyDescriptor + 102, // 64: lnrpc.FundingShim.chan_point_shim:type_name -> lnrpc.ChanPointShim + 103, // 65: lnrpc.FundingShim.psbt_shim:type_name -> lnrpc.PsbtShim + 104, // 66: lnrpc.FundingTransitionMsg.shim_register:type_name -> lnrpc.FundingShim + 105, // 67: lnrpc.FundingTransitionMsg.shim_cancel:type_name -> lnrpc.FundingShimCancel + 106, // 68: lnrpc.FundingTransitionMsg.psbt_verify:type_name -> lnrpc.FundingPsbtVerify + 107, // 69: lnrpc.FundingTransitionMsg.psbt_finalize:type_name -> lnrpc.FundingPsbtFinalize + 235, // 70: lnrpc.PendingChannelsResponse.pending_open_channels:type_name -> lnrpc.PendingChannelsResponse.PendingOpenChannel + 238, // 71: lnrpc.PendingChannelsResponse.pending_closing_channels:type_name -> lnrpc.PendingChannelsResponse.ClosedChannel + 239, // 72: lnrpc.PendingChannelsResponse.pending_force_closing_channels:type_name -> lnrpc.PendingChannelsResponse.ForceClosedChannel + 236, // 73: lnrpc.PendingChannelsResponse.waiting_close_channels:type_name -> lnrpc.PendingChannelsResponse.WaitingCloseChannel + 64, // 74: lnrpc.ChannelCommitUpdate.channel:type_name -> lnrpc.Channel + 64, // 75: lnrpc.ChannelEventUpdate.open_channel:type_name -> lnrpc.Channel + 70, // 76: lnrpc.ChannelEventUpdate.closed_channel:type_name -> lnrpc.ChannelCloseSummary + 40, // 77: lnrpc.ChannelEventUpdate.active_channel:type_name -> lnrpc.ChannelPoint + 40, // 78: lnrpc.ChannelEventUpdate.inactive_channel:type_name -> lnrpc.ChannelPoint + 92, // 79: lnrpc.ChannelEventUpdate.pending_open_channel:type_name -> lnrpc.PendingUpdate + 40, // 80: lnrpc.ChannelEventUpdate.fully_resolved_channel:type_name -> lnrpc.ChannelPoint + 40, // 81: lnrpc.ChannelEventUpdate.channel_funding_timeout:type_name -> lnrpc.ChannelPoint + 114, // 82: lnrpc.ChannelEventUpdate.updated_channel:type_name -> lnrpc.ChannelCommitUpdate + 17, // 83: lnrpc.ChannelEventUpdate.type:type_name -> lnrpc.ChannelEventUpdate.UpdateType + 240, // 84: lnrpc.WalletBalanceResponse.account_balance:type_name -> lnrpc.WalletBalanceResponse.AccountBalanceEntry + 119, // 85: lnrpc.ChannelBalanceResponse.local_balance:type_name -> lnrpc.Amount + 119, // 86: lnrpc.ChannelBalanceResponse.remote_balance:type_name -> lnrpc.Amount + 119, // 87: lnrpc.ChannelBalanceResponse.unsettled_local_balance:type_name -> lnrpc.Amount + 119, // 88: lnrpc.ChannelBalanceResponse.unsettled_remote_balance:type_name -> lnrpc.Amount + 119, // 89: lnrpc.ChannelBalanceResponse.pending_open_local_balance:type_name -> lnrpc.Amount + 119, // 90: lnrpc.ChannelBalanceResponse.pending_open_remote_balance:type_name -> lnrpc.Amount + 37, // 91: lnrpc.QueryRoutesRequest.fee_limit:type_name -> lnrpc.FeeLimit + 124, // 92: lnrpc.QueryRoutesRequest.ignored_edges:type_name -> lnrpc.EdgeLocator + 123, // 93: lnrpc.QueryRoutesRequest.ignored_pairs:type_name -> lnrpc.NodePair + 241, // 94: lnrpc.QueryRoutesRequest.dest_custom_records:type_name -> lnrpc.QueryRoutesRequest.DestCustomRecordsEntry + 154, // 95: lnrpc.QueryRoutesRequest.route_hints:type_name -> lnrpc.RouteHint + 155, // 96: lnrpc.QueryRoutesRequest.blinded_payment_paths:type_name -> lnrpc.BlindedPaymentPath + 11, // 97: lnrpc.QueryRoutesRequest.dest_features:type_name -> lnrpc.FeatureBit + 129, // 98: lnrpc.QueryRoutesResponse.routes:type_name -> lnrpc.Route + 127, // 99: lnrpc.Hop.mpp_record:type_name -> lnrpc.MPPRecord + 128, // 100: lnrpc.Hop.amp_record:type_name -> lnrpc.AMPRecord + 242, // 101: lnrpc.Hop.custom_records:type_name -> lnrpc.Hop.CustomRecordsEntry + 126, // 102: lnrpc.Route.hops:type_name -> lnrpc.Hop + 132, // 103: lnrpc.NodeInfo.node:type_name -> lnrpc.LightningNode + 136, // 104: lnrpc.NodeInfo.channels:type_name -> lnrpc.ChannelEdge + 133, // 105: lnrpc.LightningNode.addresses:type_name -> lnrpc.NodeAddress + 243, // 106: lnrpc.LightningNode.features:type_name -> lnrpc.LightningNode.FeaturesEntry + 244, // 107: lnrpc.LightningNode.custom_records:type_name -> lnrpc.LightningNode.CustomRecordsEntry + 245, // 108: lnrpc.RoutingPolicy.custom_records:type_name -> lnrpc.RoutingPolicy.CustomRecordsEntry + 134, // 109: lnrpc.ChannelEdge.node1_policy:type_name -> lnrpc.RoutingPolicy + 134, // 110: lnrpc.ChannelEdge.node2_policy:type_name -> lnrpc.RoutingPolicy + 246, // 111: lnrpc.ChannelEdge.custom_records:type_name -> lnrpc.ChannelEdge.CustomRecordsEntry + 135, // 112: lnrpc.ChannelEdge.auth_proof:type_name -> lnrpc.ChannelAuthProof + 132, // 113: lnrpc.ChannelGraph.nodes:type_name -> lnrpc.LightningNode + 136, // 114: lnrpc.ChannelGraph.edges:type_name -> lnrpc.ChannelEdge + 8, // 115: lnrpc.NodeMetricsRequest.types:type_name -> lnrpc.NodeMetricType + 247, // 116: lnrpc.NodeMetricsResponse.betweenness_centrality:type_name -> lnrpc.NodeMetricsResponse.BetweennessCentralityEntry + 149, // 117: lnrpc.GraphTopologyUpdate.node_updates:type_name -> lnrpc.NodeUpdate + 150, // 118: lnrpc.GraphTopologyUpdate.channel_updates:type_name -> lnrpc.ChannelEdgeUpdate + 151, // 119: lnrpc.GraphTopologyUpdate.closed_chans:type_name -> lnrpc.ClosedChannelUpdate + 133, // 120: lnrpc.NodeUpdate.node_addresses:type_name -> lnrpc.NodeAddress + 248, // 121: lnrpc.NodeUpdate.features:type_name -> lnrpc.NodeUpdate.FeaturesEntry + 40, // 122: lnrpc.ChannelEdgeUpdate.chan_point:type_name -> lnrpc.ChannelPoint + 134, // 123: lnrpc.ChannelEdgeUpdate.routing_policy:type_name -> lnrpc.RoutingPolicy + 40, // 124: lnrpc.ClosedChannelUpdate.chan_point:type_name -> lnrpc.ChannelPoint + 152, // 125: lnrpc.RouteHint.hop_hints:type_name -> lnrpc.HopHint + 156, // 126: lnrpc.BlindedPaymentPath.blinded_path:type_name -> lnrpc.BlindedPath + 11, // 127: lnrpc.BlindedPaymentPath.features:type_name -> lnrpc.FeatureBit + 157, // 128: lnrpc.BlindedPath.blinded_hops:type_name -> lnrpc.BlindedHop + 9, // 129: lnrpc.AMPInvoiceState.state:type_name -> lnrpc.InvoiceHTLCState + 154, // 130: lnrpc.Invoice.route_hints:type_name -> lnrpc.RouteHint + 18, // 131: lnrpc.Invoice.state:type_name -> lnrpc.Invoice.InvoiceState + 161, // 132: lnrpc.Invoice.htlcs:type_name -> lnrpc.InvoiceHTLC + 249, // 133: lnrpc.Invoice.features:type_name -> lnrpc.Invoice.FeaturesEntry + 250, // 134: lnrpc.Invoice.amp_invoice_state:type_name -> lnrpc.Invoice.AmpInvoiceStateEntry + 160, // 135: lnrpc.Invoice.blinded_path_config:type_name -> lnrpc.BlindedPathConfig + 9, // 136: lnrpc.InvoiceHTLC.state:type_name -> lnrpc.InvoiceHTLCState + 251, // 137: lnrpc.InvoiceHTLC.custom_records:type_name -> lnrpc.InvoiceHTLC.CustomRecordsEntry + 162, // 138: lnrpc.InvoiceHTLC.amp:type_name -> lnrpc.AMP + 159, // 139: lnrpc.ListInvoiceResponse.invoices:type_name -> lnrpc.Invoice + 19, // 140: lnrpc.Payment.status:type_name -> lnrpc.Payment.PaymentStatus + 171, // 141: lnrpc.Payment.htlcs:type_name -> lnrpc.HTLCAttempt + 10, // 142: lnrpc.Payment.failure_reason:type_name -> lnrpc.PaymentFailureReason + 252, // 143: lnrpc.Payment.first_hop_custom_records:type_name -> lnrpc.Payment.FirstHopCustomRecordsEntry + 20, // 144: lnrpc.HTLCAttempt.status:type_name -> lnrpc.HTLCAttempt.HTLCStatus + 129, // 145: lnrpc.HTLCAttempt.route:type_name -> lnrpc.Route + 215, // 146: lnrpc.HTLCAttempt.failure:type_name -> lnrpc.Failure + 170, // 147: lnrpc.ListPaymentsResponse.payments:type_name -> lnrpc.Payment + 40, // 148: lnrpc.AbandonChannelRequest.channel_point:type_name -> lnrpc.ChannelPoint + 154, // 149: lnrpc.PayReq.route_hints:type_name -> lnrpc.RouteHint + 253, // 150: lnrpc.PayReq.features:type_name -> lnrpc.PayReq.FeaturesEntry + 155, // 151: lnrpc.PayReq.blinded_paths:type_name -> lnrpc.BlindedPaymentPath + 186, // 152: lnrpc.FeeReportResponse.channel_fees:type_name -> lnrpc.ChannelFeeReport + 40, // 153: lnrpc.PolicyUpdateRequest.chan_point:type_name -> lnrpc.ChannelPoint + 188, // 154: lnrpc.PolicyUpdateRequest.inbound_fee:type_name -> lnrpc.InboundFee + 41, // 155: lnrpc.FailedUpdate.outpoint:type_name -> lnrpc.OutPoint + 12, // 156: lnrpc.FailedUpdate.reason:type_name -> lnrpc.UpdateFailure + 190, // 157: lnrpc.PolicyUpdateResponse.failed_updates:type_name -> lnrpc.FailedUpdate + 193, // 158: lnrpc.ForwardingHistoryResponse.forwarding_events:type_name -> lnrpc.ForwardingEvent + 40, // 159: lnrpc.ExportChannelBackupRequest.chan_point:type_name -> lnrpc.ChannelPoint + 40, // 160: lnrpc.ChannelBackup.chan_point:type_name -> lnrpc.ChannelPoint + 40, // 161: lnrpc.MultiChanBackup.chan_points:type_name -> lnrpc.ChannelPoint + 200, // 162: lnrpc.ChanBackupSnapshot.single_chan_backups:type_name -> lnrpc.ChannelBackups + 197, // 163: lnrpc.ChanBackupSnapshot.multi_chan_backup:type_name -> lnrpc.MultiChanBackup + 196, // 164: lnrpc.ChannelBackups.chan_backups:type_name -> lnrpc.ChannelBackup + 200, // 165: lnrpc.RestoreChanBackupRequest.chan_backups:type_name -> lnrpc.ChannelBackups + 205, // 166: lnrpc.BakeMacaroonRequest.permissions:type_name -> lnrpc.MacaroonPermission + 205, // 167: lnrpc.MacaroonPermissionList.permissions:type_name -> lnrpc.MacaroonPermission + 254, // 168: lnrpc.ListPermissionsResponse.method_permissions:type_name -> lnrpc.ListPermissionsResponse.MethodPermissionsEntry + 21, // 169: lnrpc.Failure.code:type_name -> lnrpc.Failure.FailureCode + 216, // 170: lnrpc.Failure.channel_update:type_name -> lnrpc.ChannelUpdate + 218, // 171: lnrpc.MacaroonId.ops:type_name -> lnrpc.Op + 205, // 172: lnrpc.CheckMacPermRequest.permissions:type_name -> lnrpc.MacaroonPermission + 223, // 173: lnrpc.RPCMiddlewareRequest.stream_auth:type_name -> lnrpc.StreamAuth + 224, // 174: lnrpc.RPCMiddlewareRequest.request:type_name -> lnrpc.RPCMessage + 224, // 175: lnrpc.RPCMiddlewareRequest.response:type_name -> lnrpc.RPCMessage + 255, // 176: lnrpc.RPCMiddlewareRequest.metadata_pairs:type_name -> lnrpc.RPCMiddlewareRequest.MetadataPairsEntry + 226, // 177: lnrpc.RPCMiddlewareResponse.register:type_name -> lnrpc.MiddlewareRegistration + 227, // 178: lnrpc.RPCMiddlewareResponse.feedback:type_name -> lnrpc.InterceptFeedback + 184, // 179: lnrpc.Peer.FeaturesEntry.value:type_name -> lnrpc.Feature + 184, // 180: lnrpc.GetInfoResponse.FeaturesEntry.value:type_name -> lnrpc.Feature + 4, // 181: lnrpc.PendingChannelsResponse.PendingChannel.initiator:type_name -> lnrpc.Initiator + 3, // 182: lnrpc.PendingChannelsResponse.PendingChannel.commitment_type:type_name -> lnrpc.CommitmentType + 234, // 183: lnrpc.PendingChannelsResponse.PendingOpenChannel.channel:type_name -> lnrpc.PendingChannelsResponse.PendingChannel + 234, // 184: lnrpc.PendingChannelsResponse.WaitingCloseChannel.channel:type_name -> lnrpc.PendingChannelsResponse.PendingChannel + 237, // 185: lnrpc.PendingChannelsResponse.WaitingCloseChannel.commitments:type_name -> lnrpc.PendingChannelsResponse.Commitments + 234, // 186: lnrpc.PendingChannelsResponse.ClosedChannel.channel:type_name -> lnrpc.PendingChannelsResponse.PendingChannel + 234, // 187: lnrpc.PendingChannelsResponse.ForceClosedChannel.channel:type_name -> lnrpc.PendingChannelsResponse.PendingChannel + 110, // 188: lnrpc.PendingChannelsResponse.ForceClosedChannel.pending_htlcs:type_name -> lnrpc.PendingHTLC + 16, // 189: lnrpc.PendingChannelsResponse.ForceClosedChannel.anchor:type_name -> lnrpc.PendingChannelsResponse.ForceClosedChannel.AnchorState + 116, // 190: lnrpc.WalletBalanceResponse.AccountBalanceEntry.value:type_name -> lnrpc.WalletAccountBalance + 184, // 191: lnrpc.LightningNode.FeaturesEntry.value:type_name -> lnrpc.Feature + 141, // 192: lnrpc.NodeMetricsResponse.BetweennessCentralityEntry.value:type_name -> lnrpc.FloatMetric + 184, // 193: lnrpc.NodeUpdate.FeaturesEntry.value:type_name -> lnrpc.Feature + 184, // 194: lnrpc.Invoice.FeaturesEntry.value:type_name -> lnrpc.Feature + 158, // 195: lnrpc.Invoice.AmpInvoiceStateEntry.value:type_name -> lnrpc.AMPInvoiceState + 184, // 196: lnrpc.PayReq.FeaturesEntry.value:type_name -> lnrpc.Feature + 212, // 197: lnrpc.ListPermissionsResponse.MethodPermissionsEntry.value:type_name -> lnrpc.MacaroonPermissionList + 222, // 198: lnrpc.RPCMiddlewareRequest.MetadataPairsEntry.value:type_name -> lnrpc.MetadataValues + 117, // 199: lnrpc.Lightning.WalletBalance:input_type -> lnrpc.WalletBalanceRequest + 120, // 200: lnrpc.Lightning.ChannelBalance:input_type -> lnrpc.ChannelBalanceRequest + 35, // 201: lnrpc.Lightning.GetTransactions:input_type -> lnrpc.GetTransactionsRequest + 44, // 202: lnrpc.Lightning.EstimateFee:input_type -> lnrpc.EstimateFeeRequest + 48, // 203: lnrpc.Lightning.SendCoins:input_type -> lnrpc.SendCoinsRequest + 50, // 204: lnrpc.Lightning.ListUnspent:input_type -> lnrpc.ListUnspentRequest + 35, // 205: lnrpc.Lightning.SubscribeTransactions:input_type -> lnrpc.GetTransactionsRequest + 46, // 206: lnrpc.Lightning.SendMany:input_type -> lnrpc.SendManyRequest + 52, // 207: lnrpc.Lightning.NewAddress:input_type -> lnrpc.NewAddressRequest + 54, // 208: lnrpc.Lightning.SignMessage:input_type -> lnrpc.SignMessageRequest + 56, // 209: lnrpc.Lightning.VerifyMessage:input_type -> lnrpc.VerifyMessageRequest + 58, // 210: lnrpc.Lightning.ConnectPeer:input_type -> lnrpc.ConnectPeerRequest + 60, // 211: lnrpc.Lightning.DisconnectPeer:input_type -> lnrpc.DisconnectPeerRequest + 76, // 212: lnrpc.Lightning.ListPeers:input_type -> lnrpc.ListPeersRequest + 78, // 213: lnrpc.Lightning.SubscribePeerEvents:input_type -> lnrpc.PeerEventSubscription + 80, // 214: lnrpc.Lightning.GetInfo:input_type -> lnrpc.GetInfoRequest + 82, // 215: lnrpc.Lightning.GetDebugInfo:input_type -> lnrpc.GetDebugInfoRequest + 84, // 216: lnrpc.Lightning.GetRecoveryInfo:input_type -> lnrpc.GetRecoveryInfoRequest + 111, // 217: lnrpc.Lightning.PendingChannels:input_type -> lnrpc.PendingChannelsRequest + 65, // 218: lnrpc.Lightning.ListChannels:input_type -> lnrpc.ListChannelsRequest + 113, // 219: lnrpc.Lightning.SubscribeChannelEvents:input_type -> lnrpc.ChannelEventSubscription + 72, // 220: lnrpc.Lightning.ClosedChannels:input_type -> lnrpc.ClosedChannelsRequest + 98, // 221: lnrpc.Lightning.OpenChannelSync:input_type -> lnrpc.OpenChannelRequest + 98, // 222: lnrpc.Lightning.OpenChannel:input_type -> lnrpc.OpenChannelRequest + 95, // 223: lnrpc.Lightning.BatchOpenChannel:input_type -> lnrpc.BatchOpenChannelRequest + 108, // 224: lnrpc.Lightning.FundingStateStep:input_type -> lnrpc.FundingTransitionMsg + 39, // 225: lnrpc.Lightning.ChannelAcceptor:input_type -> lnrpc.ChannelAcceptResponse + 90, // 226: lnrpc.Lightning.CloseChannel:input_type -> lnrpc.CloseChannelRequest + 178, // 227: lnrpc.Lightning.AbandonChannel:input_type -> lnrpc.AbandonChannelRequest + 159, // 228: lnrpc.Lightning.AddInvoice:input_type -> lnrpc.Invoice + 165, // 229: lnrpc.Lightning.ListInvoices:input_type -> lnrpc.ListInvoiceRequest + 164, // 230: lnrpc.Lightning.LookupInvoice:input_type -> lnrpc.PaymentHash + 167, // 231: lnrpc.Lightning.SubscribeInvoices:input_type -> lnrpc.InvoiceSubscription + 168, // 232: lnrpc.Lightning.DeleteCanceledInvoice:input_type -> lnrpc.DelCanceledInvoiceReq + 182, // 233: lnrpc.Lightning.DecodePayReq:input_type -> lnrpc.PayReqString + 172, // 234: lnrpc.Lightning.ListPayments:input_type -> lnrpc.ListPaymentsRequest + 174, // 235: lnrpc.Lightning.DeletePayment:input_type -> lnrpc.DeletePaymentRequest + 175, // 236: lnrpc.Lightning.DeleteAllPayments:input_type -> lnrpc.DeleteAllPaymentsRequest + 137, // 237: lnrpc.Lightning.DescribeGraph:input_type -> lnrpc.ChannelGraphRequest + 139, // 238: lnrpc.Lightning.GetNodeMetrics:input_type -> lnrpc.NodeMetricsRequest + 142, // 239: lnrpc.Lightning.GetChanInfo:input_type -> lnrpc.ChanInfoRequest + 130, // 240: lnrpc.Lightning.GetNodeInfo:input_type -> lnrpc.NodeInfoRequest + 122, // 241: lnrpc.Lightning.QueryRoutes:input_type -> lnrpc.QueryRoutesRequest + 143, // 242: lnrpc.Lightning.GetNetworkInfo:input_type -> lnrpc.NetworkInfoRequest + 145, // 243: lnrpc.Lightning.StopDaemon:input_type -> lnrpc.StopRequest + 147, // 244: lnrpc.Lightning.SubscribeChannelGraph:input_type -> lnrpc.GraphTopologySubscription + 180, // 245: lnrpc.Lightning.DebugLevel:input_type -> lnrpc.DebugLevelRequest + 185, // 246: lnrpc.Lightning.FeeReport:input_type -> lnrpc.FeeReportRequest + 189, // 247: lnrpc.Lightning.UpdateChannelPolicy:input_type -> lnrpc.PolicyUpdateRequest + 192, // 248: lnrpc.Lightning.ForwardingHistory:input_type -> lnrpc.ForwardingHistoryRequest + 195, // 249: lnrpc.Lightning.ExportChannelBackup:input_type -> lnrpc.ExportChannelBackupRequest + 198, // 250: lnrpc.Lightning.ExportAllChannelBackups:input_type -> lnrpc.ChanBackupExportRequest + 199, // 251: lnrpc.Lightning.VerifyChanBackup:input_type -> lnrpc.ChanBackupSnapshot + 201, // 252: lnrpc.Lightning.RestoreChannelBackups:input_type -> lnrpc.RestoreChanBackupRequest + 203, // 253: lnrpc.Lightning.SubscribeChannelBackups:input_type -> lnrpc.ChannelBackupSubscription + 206, // 254: lnrpc.Lightning.BakeMacaroon:input_type -> lnrpc.BakeMacaroonRequest + 208, // 255: lnrpc.Lightning.ListMacaroonIDs:input_type -> lnrpc.ListMacaroonIDsRequest + 210, // 256: lnrpc.Lightning.DeleteMacaroonID:input_type -> lnrpc.DeleteMacaroonIDRequest + 213, // 257: lnrpc.Lightning.ListPermissions:input_type -> lnrpc.ListPermissionsRequest + 219, // 258: lnrpc.Lightning.CheckMacaroonPermissions:input_type -> lnrpc.CheckMacPermRequest + 225, // 259: lnrpc.Lightning.RegisterRPCMiddleware:input_type -> lnrpc.RPCMiddlewareResponse + 26, // 260: lnrpc.Lightning.SendCustomMessage:input_type -> lnrpc.SendCustomMessageRequest + 24, // 261: lnrpc.Lightning.SubscribeCustomMessages:input_type -> lnrpc.SubscribeCustomMessagesRequest + 30, // 262: lnrpc.Lightning.SendOnionMessage:input_type -> lnrpc.SendOnionMessageRequest + 28, // 263: lnrpc.Lightning.SubscribeOnionMessages:input_type -> lnrpc.SubscribeOnionMessagesRequest + 68, // 264: lnrpc.Lightning.ListAliases:input_type -> lnrpc.ListAliasesRequest + 22, // 265: lnrpc.Lightning.LookupHtlcResolution:input_type -> lnrpc.LookupHtlcResolutionRequest + 118, // 266: lnrpc.Lightning.WalletBalance:output_type -> lnrpc.WalletBalanceResponse + 121, // 267: lnrpc.Lightning.ChannelBalance:output_type -> lnrpc.ChannelBalanceResponse + 36, // 268: lnrpc.Lightning.GetTransactions:output_type -> lnrpc.TransactionDetails + 45, // 269: lnrpc.Lightning.EstimateFee:output_type -> lnrpc.EstimateFeeResponse + 49, // 270: lnrpc.Lightning.SendCoins:output_type -> lnrpc.SendCoinsResponse + 51, // 271: lnrpc.Lightning.ListUnspent:output_type -> lnrpc.ListUnspentResponse + 34, // 272: lnrpc.Lightning.SubscribeTransactions:output_type -> lnrpc.Transaction + 47, // 273: lnrpc.Lightning.SendMany:output_type -> lnrpc.SendManyResponse + 53, // 274: lnrpc.Lightning.NewAddress:output_type -> lnrpc.NewAddressResponse + 55, // 275: lnrpc.Lightning.SignMessage:output_type -> lnrpc.SignMessageResponse + 57, // 276: lnrpc.Lightning.VerifyMessage:output_type -> lnrpc.VerifyMessageResponse + 59, // 277: lnrpc.Lightning.ConnectPeer:output_type -> lnrpc.ConnectPeerResponse + 61, // 278: lnrpc.Lightning.DisconnectPeer:output_type -> lnrpc.DisconnectPeerResponse + 77, // 279: lnrpc.Lightning.ListPeers:output_type -> lnrpc.ListPeersResponse + 79, // 280: lnrpc.Lightning.SubscribePeerEvents:output_type -> lnrpc.PeerEvent + 81, // 281: lnrpc.Lightning.GetInfo:output_type -> lnrpc.GetInfoResponse + 83, // 282: lnrpc.Lightning.GetDebugInfo:output_type -> lnrpc.GetDebugInfoResponse + 85, // 283: lnrpc.Lightning.GetRecoveryInfo:output_type -> lnrpc.GetRecoveryInfoResponse + 112, // 284: lnrpc.Lightning.PendingChannels:output_type -> lnrpc.PendingChannelsResponse + 66, // 285: lnrpc.Lightning.ListChannels:output_type -> lnrpc.ListChannelsResponse + 115, // 286: lnrpc.Lightning.SubscribeChannelEvents:output_type -> lnrpc.ChannelEventUpdate + 73, // 287: lnrpc.Lightning.ClosedChannels:output_type -> lnrpc.ClosedChannelsResponse + 40, // 288: lnrpc.Lightning.OpenChannelSync:output_type -> lnrpc.ChannelPoint + 99, // 289: lnrpc.Lightning.OpenChannel:output_type -> lnrpc.OpenStatusUpdate + 97, // 290: lnrpc.Lightning.BatchOpenChannel:output_type -> lnrpc.BatchOpenChannelResponse + 109, // 291: lnrpc.Lightning.FundingStateStep:output_type -> lnrpc.FundingStateStepResp + 38, // 292: lnrpc.Lightning.ChannelAcceptor:output_type -> lnrpc.ChannelAcceptRequest + 91, // 293: lnrpc.Lightning.CloseChannel:output_type -> lnrpc.CloseStatusUpdate + 179, // 294: lnrpc.Lightning.AbandonChannel:output_type -> lnrpc.AbandonChannelResponse + 163, // 295: lnrpc.Lightning.AddInvoice:output_type -> lnrpc.AddInvoiceResponse + 166, // 296: lnrpc.Lightning.ListInvoices:output_type -> lnrpc.ListInvoiceResponse + 159, // 297: lnrpc.Lightning.LookupInvoice:output_type -> lnrpc.Invoice + 159, // 298: lnrpc.Lightning.SubscribeInvoices:output_type -> lnrpc.Invoice + 169, // 299: lnrpc.Lightning.DeleteCanceledInvoice:output_type -> lnrpc.DelCanceledInvoiceResp + 183, // 300: lnrpc.Lightning.DecodePayReq:output_type -> lnrpc.PayReq + 173, // 301: lnrpc.Lightning.ListPayments:output_type -> lnrpc.ListPaymentsResponse + 176, // 302: lnrpc.Lightning.DeletePayment:output_type -> lnrpc.DeletePaymentResponse + 177, // 303: lnrpc.Lightning.DeleteAllPayments:output_type -> lnrpc.DeleteAllPaymentsResponse + 138, // 304: lnrpc.Lightning.DescribeGraph:output_type -> lnrpc.ChannelGraph + 140, // 305: lnrpc.Lightning.GetNodeMetrics:output_type -> lnrpc.NodeMetricsResponse + 136, // 306: lnrpc.Lightning.GetChanInfo:output_type -> lnrpc.ChannelEdge + 131, // 307: lnrpc.Lightning.GetNodeInfo:output_type -> lnrpc.NodeInfo + 125, // 308: lnrpc.Lightning.QueryRoutes:output_type -> lnrpc.QueryRoutesResponse + 144, // 309: lnrpc.Lightning.GetNetworkInfo:output_type -> lnrpc.NetworkInfo + 146, // 310: lnrpc.Lightning.StopDaemon:output_type -> lnrpc.StopResponse + 148, // 311: lnrpc.Lightning.SubscribeChannelGraph:output_type -> lnrpc.GraphTopologyUpdate + 181, // 312: lnrpc.Lightning.DebugLevel:output_type -> lnrpc.DebugLevelResponse + 187, // 313: lnrpc.Lightning.FeeReport:output_type -> lnrpc.FeeReportResponse + 191, // 314: lnrpc.Lightning.UpdateChannelPolicy:output_type -> lnrpc.PolicyUpdateResponse + 194, // 315: lnrpc.Lightning.ForwardingHistory:output_type -> lnrpc.ForwardingHistoryResponse + 196, // 316: lnrpc.Lightning.ExportChannelBackup:output_type -> lnrpc.ChannelBackup + 199, // 317: lnrpc.Lightning.ExportAllChannelBackups:output_type -> lnrpc.ChanBackupSnapshot + 204, // 318: lnrpc.Lightning.VerifyChanBackup:output_type -> lnrpc.VerifyChanBackupResponse + 202, // 319: lnrpc.Lightning.RestoreChannelBackups:output_type -> lnrpc.RestoreBackupResponse + 199, // 320: lnrpc.Lightning.SubscribeChannelBackups:output_type -> lnrpc.ChanBackupSnapshot + 207, // 321: lnrpc.Lightning.BakeMacaroon:output_type -> lnrpc.BakeMacaroonResponse + 209, // 322: lnrpc.Lightning.ListMacaroonIDs:output_type -> lnrpc.ListMacaroonIDsResponse + 211, // 323: lnrpc.Lightning.DeleteMacaroonID:output_type -> lnrpc.DeleteMacaroonIDResponse + 214, // 324: lnrpc.Lightning.ListPermissions:output_type -> lnrpc.ListPermissionsResponse + 220, // 325: lnrpc.Lightning.CheckMacaroonPermissions:output_type -> lnrpc.CheckMacPermResponse + 221, // 326: lnrpc.Lightning.RegisterRPCMiddleware:output_type -> lnrpc.RPCMiddlewareRequest + 27, // 327: lnrpc.Lightning.SendCustomMessage:output_type -> lnrpc.SendCustomMessageResponse + 25, // 328: lnrpc.Lightning.SubscribeCustomMessages:output_type -> lnrpc.CustomMessage + 31, // 329: lnrpc.Lightning.SendOnionMessage:output_type -> lnrpc.SendOnionMessageResponse + 29, // 330: lnrpc.Lightning.SubscribeOnionMessages:output_type -> lnrpc.OnionMessageUpdate + 69, // 331: lnrpc.Lightning.ListAliases:output_type -> lnrpc.ListAliasesResponse + 23, // 332: lnrpc.Lightning.LookupHtlcResolution:output_type -> lnrpc.LookupHtlcResolutionResponse + 266, // [266:333] is the sub-list for method output_type + 199, // [199:266] is the sub-list for method input_type + 199, // [199:199] is the sub-list for extension type_name + 199, // [199:199] is the sub-list for extension extendee + 0, // [0:199] is the sub-list for field type_name } func init() { file_lightning_proto_init() } @@ -21167,31 +20751,31 @@ func file_lightning_proto_init() { (*FeeLimit_FixedMsat)(nil), (*FeeLimit_Percent)(nil), } - file_lightning_proto_msgTypes[21].OneofWrappers = []any{ + file_lightning_proto_msgTypes[18].OneofWrappers = []any{ (*ChannelPoint_FundingTxidBytes)(nil), (*ChannelPoint_FundingTxidStr)(nil), } - file_lightning_proto_msgTypes[72].OneofWrappers = []any{ + file_lightning_proto_msgTypes[69].OneofWrappers = []any{ (*CloseStatusUpdate_ClosePending)(nil), (*CloseStatusUpdate_ChanClose)(nil), (*CloseStatusUpdate_CloseInstant)(nil), } - file_lightning_proto_msgTypes[80].OneofWrappers = []any{ + file_lightning_proto_msgTypes[77].OneofWrappers = []any{ (*OpenStatusUpdate_ChanPending)(nil), (*OpenStatusUpdate_ChanOpen)(nil), (*OpenStatusUpdate_PsbtFund)(nil), } - file_lightning_proto_msgTypes[85].OneofWrappers = []any{ + file_lightning_proto_msgTypes[82].OneofWrappers = []any{ (*FundingShim_ChanPointShim)(nil), (*FundingShim_PsbtShim)(nil), } - file_lightning_proto_msgTypes[89].OneofWrappers = []any{ + file_lightning_proto_msgTypes[86].OneofWrappers = []any{ (*FundingTransitionMsg_ShimRegister)(nil), (*FundingTransitionMsg_ShimCancel)(nil), (*FundingTransitionMsg_PsbtVerify)(nil), (*FundingTransitionMsg_PsbtFinalize)(nil), } - file_lightning_proto_msgTypes[96].OneofWrappers = []any{ + file_lightning_proto_msgTypes[93].OneofWrappers = []any{ (*ChannelEventUpdate_OpenChannel)(nil), (*ChannelEventUpdate_ClosedChannel)(nil), (*ChannelEventUpdate_ActiveChannel)(nil), @@ -21201,23 +20785,23 @@ func file_lightning_proto_init() { (*ChannelEventUpdate_ChannelFundingTimeout)(nil), (*ChannelEventUpdate_UpdatedChannel)(nil), } - file_lightning_proto_msgTypes[141].OneofWrappers = []any{} - file_lightning_proto_msgTypes[170].OneofWrappers = []any{ + file_lightning_proto_msgTypes[138].OneofWrappers = []any{} + file_lightning_proto_msgTypes[167].OneofWrappers = []any{ (*PolicyUpdateRequest_Global)(nil), (*PolicyUpdateRequest_ChanPoint)(nil), } - file_lightning_proto_msgTypes[174].OneofWrappers = []any{} - file_lightning_proto_msgTypes[182].OneofWrappers = []any{ + file_lightning_proto_msgTypes[171].OneofWrappers = []any{} + file_lightning_proto_msgTypes[179].OneofWrappers = []any{ (*RestoreChanBackupRequest_ChanBackups)(nil), (*RestoreChanBackupRequest_MultiChanBackup)(nil), } - file_lightning_proto_msgTypes[202].OneofWrappers = []any{ + file_lightning_proto_msgTypes[199].OneofWrappers = []any{ (*RPCMiddlewareRequest_StreamAuth)(nil), (*RPCMiddlewareRequest_Request)(nil), (*RPCMiddlewareRequest_Response)(nil), (*RPCMiddlewareRequest_RegComplete)(nil), } - file_lightning_proto_msgTypes[206].OneofWrappers = []any{ + file_lightning_proto_msgTypes[203].OneofWrappers = []any{ (*RPCMiddlewareResponse_Register)(nil), (*RPCMiddlewareResponse_Feedback)(nil), } @@ -21227,7 +20811,7 @@ func file_lightning_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_lightning_proto_rawDesc), len(file_lightning_proto_rawDesc)), NumEnums: 22, - NumMessages: 238, + NumMessages: 234, NumExtensions: 0, NumServices: 1, }, diff --git a/lnrpc/lightning.pb.gw.go b/lnrpc/lightning.pb.gw.go index b980dd22bfe..00b1d8e843c 100644 --- a/lnrpc/lightning.pb.gw.go +++ b/lnrpc/lightning.pb.gw.go @@ -1044,117 +1044,6 @@ func local_request_Lightning_AbandonChannel_0(ctx context.Context, marshaler run } -func request_Lightning_SendPayment_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (Lightning_SendPaymentClient, runtime.ServerMetadata, error) { - var metadata runtime.ServerMetadata - stream, err := client.SendPayment(ctx) - if err != nil { - grpclog.Infof("Failed to start streaming: %v", err) - return nil, metadata, err - } - dec := marshaler.NewDecoder(req.Body) - handleSend := func() error { - var protoReq SendRequest - err := dec.Decode(&protoReq) - if err == io.EOF { - return err - } - if err != nil { - grpclog.Infof("Failed to decode request: %v", err) - return err - } - if err := stream.Send(&protoReq); err != nil { - grpclog.Infof("Failed to send request: %v", err) - return err - } - return nil - } - go func() { - for { - if err := handleSend(); err != nil { - break - } - } - if err := stream.CloseSend(); err != nil { - grpclog.Infof("Failed to terminate client stream: %v", err) - } - }() - header, err := stream.Header() - if err != nil { - grpclog.Infof("Failed to get header from client: %v", err) - return nil, metadata, err - } - metadata.HeaderMD = header - return stream, metadata, nil -} - -func request_Lightning_SendPaymentSync_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SendRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SendPaymentSync(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Lightning_SendPaymentSync_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SendRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SendPaymentSync(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Lightning_SendToRouteSync_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SendToRouteRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SendToRouteSync(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Lightning_SendToRouteSync_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SendToRouteRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SendToRouteSync(ctx, &protoReq) - return msg, metadata, err - -} - func request_Lightning_AddInvoice_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq Invoice var metadata runtime.ServerMetadata @@ -3305,63 +3194,6 @@ func RegisterLightningHandlerServer(ctx context.Context, mux *runtime.ServeMux, }) - mux.Handle("POST", pattern_Lightning_SendPayment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") - _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - }) - - mux.Handle("POST", pattern_Lightning_SendPaymentSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/SendPaymentSync", runtime.WithHTTPPathPattern("/v1/channels/transactions")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Lightning_SendPaymentSync_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_Lightning_SendPaymentSync_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Lightning_SendToRouteSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/SendToRouteSync", runtime.WithHTTPPathPattern("/v1/channels/transactions/route")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Lightning_SendToRouteSync_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_Lightning_SendToRouteSync_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("POST", pattern_Lightning_AddInvoice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -4908,72 +4740,6 @@ func RegisterLightningHandlerClient(ctx context.Context, mux *runtime.ServeMux, }) - mux.Handle("POST", pattern_Lightning_SendPayment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SendPayment", runtime.WithHTTPPathPattern("/v1/channels/transaction-stream")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Lightning_SendPayment_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_Lightning_SendPayment_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Lightning_SendPaymentSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SendPaymentSync", runtime.WithHTTPPathPattern("/v1/channels/transactions")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Lightning_SendPaymentSync_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_Lightning_SendPaymentSync_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Lightning_SendToRouteSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SendToRouteSync", runtime.WithHTTPPathPattern("/v1/channels/transactions/route")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Lightning_SendToRouteSync_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_Lightning_SendToRouteSync_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("POST", pattern_Lightning_AddInvoice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -5894,12 +5660,6 @@ var ( pattern_Lightning_AbandonChannel_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "channels", "abandon", "channel_point.funding_txid_str", "channel_point.output_index"}, "")) - pattern_Lightning_SendPayment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "channels", "transaction-stream"}, "")) - - pattern_Lightning_SendPaymentSync_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "channels", "transactions"}, "")) - - pattern_Lightning_SendToRouteSync_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "channels", "transactions", "route"}, "")) - pattern_Lightning_AddInvoice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "invoices"}, "")) pattern_Lightning_ListInvoices_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "invoices"}, "")) @@ -6038,12 +5798,6 @@ var ( forward_Lightning_AbandonChannel_0 = runtime.ForwardResponseMessage - forward_Lightning_SendPayment_0 = runtime.ForwardResponseStream - - forward_Lightning_SendPaymentSync_0 = runtime.ForwardResponseMessage - - forward_Lightning_SendToRouteSync_0 = runtime.ForwardResponseMessage - forward_Lightning_AddInvoice_0 = runtime.ForwardResponseMessage forward_Lightning_ListInvoices_0 = runtime.ForwardResponseMessage diff --git a/lnrpc/lightning.pb.json.go b/lnrpc/lightning.pb.json.go index 1fee502fab3..4b0e4d756f4 100644 --- a/lnrpc/lightning.pb.json.go +++ b/lnrpc/lightning.pb.json.go @@ -806,56 +806,6 @@ func RegisterLightningJSONCallbacks(registry map[string]func(ctx context.Context callback(string(respBytes), nil) } - registry["lnrpc.Lightning.SendPaymentSync"] = func(ctx context.Context, - conn *grpc.ClientConn, reqJSON string, callback func(string, error)) { - - req := &SendRequest{} - err := marshaler.Unmarshal([]byte(reqJSON), req) - if err != nil { - callback("", err) - return - } - - client := NewLightningClient(conn) - resp, err := client.SendPaymentSync(ctx, req) - if err != nil { - callback("", err) - return - } - - respBytes, err := marshaler.Marshal(resp) - if err != nil { - callback("", err) - return - } - callback(string(respBytes), nil) - } - - registry["lnrpc.Lightning.SendToRouteSync"] = func(ctx context.Context, - conn *grpc.ClientConn, reqJSON string, callback func(string, error)) { - - req := &SendToRouteRequest{} - err := marshaler.Unmarshal([]byte(reqJSON), req) - if err != nil { - callback("", err) - return - } - - client := NewLightningClient(conn) - resp, err := client.SendToRouteSync(ctx, req) - if err != nil { - callback("", err) - return - } - - respBytes, err := marshaler.Marshal(resp) - if err != nil { - callback("", err) - return - } - callback(string(respBytes), nil) - } - registry["lnrpc.Lightning.AddInvoice"] = func(ctx context.Context, conn *grpc.ClientConn, reqJSON string, callback func(string, error)) { diff --git a/lnrpc/lightning.proto b/lnrpc/lightning.proto index b60f45e0950..8c0d1684eaf 100644 --- a/lnrpc/lightning.proto +++ b/lnrpc/lightning.proto @@ -262,47 +262,6 @@ service Lightning { */ rpc AbandonChannel (AbandonChannelRequest) returns (AbandonChannelResponse); - /* lncli: `sendpayment` - Deprecated, use routerrpc.SendPaymentV2. SendPayment dispatches a - bi-directional streaming RPC for sending payments through the Lightning - Network. A single RPC invocation creates a persistent bi-directional - stream allowing clients to rapidly send payments through the Lightning - Network with a single persistent connection. - */ - rpc SendPayment (stream SendRequest) returns (stream SendResponse) { - option deprecated = true; - } - - /* - Deprecated, use routerrpc.SendPaymentV2. SendPaymentSync is the synchronous - non-streaming version of SendPayment. This RPC is intended to be consumed by - clients of the REST proxy. Additionally, this RPC expects the destination's - public key and the payment hash (if any) to be encoded as hex strings. - */ - rpc SendPaymentSync (SendRequest) returns (SendResponse) { - option deprecated = true; - } - - /* lncli: `sendtoroute` - Deprecated, use routerrpc.SendToRouteV2. SendToRoute is a bi-directional - streaming RPC for sending payment through the Lightning Network. This - method differs from SendPayment in that it allows users to specify a full - route manually. This can be used for things like rebalancing, and atomic - swaps. - */ - rpc SendToRoute (stream SendToRouteRequest) returns (stream SendResponse) { - option deprecated = true; - } - - /* - Deprecated, use routerrpc.SendToRouteV2. SendToRouteSync is a synchronous - version of SendToRoute. It Will block until the payment either fails or - succeeds. - */ - rpc SendToRouteSync (SendToRouteRequest) returns (SendResponse) { - option deprecated = true; - } - /* lncli: `addinvoice` AddInvoice attempts to add a new invoice to the invoice database. Any duplicated invoices are rejected, therefore all invoices *must* have a @@ -896,139 +855,6 @@ message FeeLimit { } } -message SendRequest { - /* - The identity pubkey of the payment recipient. When using REST, this field - must be encoded as base64. - */ - bytes dest = 1; - - /* - The hex-encoded identity pubkey of the payment recipient. Deprecated now - that the REST gateway supports base64 encoding of bytes fields. - */ - string dest_string = 2 [deprecated = true]; - - /* - The amount to send expressed in satoshis. - - The fields amt and amt_msat are mutually exclusive. - */ - int64 amt = 3; - - /* - The amount to send expressed in millisatoshis. - - The fields amt and amt_msat are mutually exclusive. - */ - int64 amt_msat = 12; - - /* - The hash to use within the payment's HTLC. When using REST, this field - must be encoded as base64. - */ - bytes payment_hash = 4; - - /* - The hex-encoded hash to use within the payment's HTLC. Deprecated now - that the REST gateway supports base64 encoding of bytes fields. - */ - string payment_hash_string = 5 [deprecated = true]; - - /* - A bare-bones invoice for a payment within the Lightning Network. With the - details of the invoice, the sender has all the data necessary to send a - payment to the recipient. - */ - string payment_request = 6; - - /* - The CLTV delta from the current height that should be used to set the - timelock for the final hop. - */ - int32 final_cltv_delta = 7; - - /* - The maximum number of satoshis that will be paid as a fee of the payment. - This value can be represented either as a percentage of the amount being - sent, or as a fixed amount of the maximum fee the user is willing the pay to - send the payment. If not specified, lnd will use a default value of 100% - fees for small amounts (<=1k sat) or 5% fees for larger amounts. - */ - FeeLimit fee_limit = 8; - - /* - The channel id of the channel that must be taken to the first hop. If zero, - any channel may be used. - */ - uint64 outgoing_chan_id = 9 [jstype = JS_STRING]; - - /* - The pubkey of the last hop of the route. If empty, any hop may be used. - */ - bytes last_hop_pubkey = 13; - - /* - An optional maximum total time lock for the route. This should not exceed - lnd's `--max-cltv-expiry` setting. If zero, then the value of - `--max-cltv-expiry` is enforced. - */ - uint32 cltv_limit = 10; - - /* - An optional field that can be used to pass an arbitrary set of TLV records - to a peer which understands the new records. This can be used to pass - application specific data during the payment attempt. Record types are - required to be in the custom range >= 65536. When using REST, the values - must be encoded as base64. - */ - map dest_custom_records = 11; - - // If set, circular payments to self are permitted. - bool allow_self_payment = 14; - - /* - Features assumed to be supported by the final node. All transitive feature - dependencies must also be set properly. For a given feature bit pair, either - optional or remote may be set, but not both. If this field is nil or empty, - the router will try to load destination features from the graph as a - fallback. - */ - repeated FeatureBit dest_features = 15; - - /* - The payment address of the generated invoice. This is also called - payment secret in specifications (e.g. BOLT 11). - */ - bytes payment_addr = 16; -} - -message SendResponse { - string payment_error = 1; - bytes payment_preimage = 2; - Route payment_route = 3; - bytes payment_hash = 4; -} - -message SendToRouteRequest { - /* - The payment hash to use for the HTLC. When using REST, this field must be - encoded as base64. - */ - bytes payment_hash = 1; - - /* - An optional hex-encoded payment hash to be used for the HTLC. Deprecated now - that the REST gateway supports base64 encoding of bytes fields. - */ - string payment_hash_string = 2 [deprecated = true]; - - reserved 3; - - // Route that should be used to attempt to complete the payment. - Route route = 4; -} - message ChannelAcceptRequest { // The pubkey of the node that wishes to open an inbound channel. bytes node_pubkey = 1; @@ -3315,11 +3141,7 @@ message QueryRoutesRequest { */ map dest_custom_records = 13; - /* - Deprecated, use outgoing_chan_ids. The channel id of the channel that must - be taken to the first hop. If zero, any channel may be used. - */ - uint64 outgoing_chan_id = 14 [jstype = JS_STRING, deprecated = true]; + reserved 14; /* The pubkey of the last hop of the route. If empty, any hop may be used. diff --git a/lnrpc/lightning.swagger.json b/lnrpc/lightning.swagger.json index 0818132ede3..66e1924db6c 100644 --- a/lnrpc/lightning.swagger.json +++ b/lnrpc/lightning.swagger.json @@ -670,115 +670,6 @@ ] } }, - "/v1/channels/transaction-stream": { - "post": { - "summary": "lncli: `sendpayment`\nDeprecated, use routerrpc.SendPaymentV2. SendPayment dispatches a\nbi-directional streaming RPC for sending payments through the Lightning\nNetwork. A single RPC invocation creates a persistent bi-directional\nstream allowing clients to rapidly send payments through the Lightning\nNetwork with a single persistent connection.", - "operationId": "Lightning_SendPayment", - "responses": { - "200": { - "description": "A successful response.(streaming responses)", - "schema": { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/lnrpcSendResponse" - }, - "error": { - "$ref": "#/definitions/rpcStatus" - } - }, - "title": "Stream result of lnrpcSendResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/rpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": " (streaming inputs)", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/lnrpcSendRequest" - } - } - ], - "tags": [ - "Lightning" - ] - } - }, - "/v1/channels/transactions": { - "post": { - "summary": "Deprecated, use routerrpc.SendPaymentV2. SendPaymentSync is the synchronous\nnon-streaming version of SendPayment. This RPC is intended to be consumed by\nclients of the REST proxy. Additionally, this RPC expects the destination's\npublic key and the payment hash (if any) to be encoded as hex strings.", - "operationId": "Lightning_SendPaymentSync", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/lnrpcSendResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/rpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/lnrpcSendRequest" - } - } - ], - "tags": [ - "Lightning" - ] - } - }, - "/v1/channels/transactions/route": { - "post": { - "summary": "Deprecated, use routerrpc.SendToRouteV2. SendToRouteSync is a synchronous\nversion of SendToRoute. It Will block until the payment either fails or\nsucceeds.", - "operationId": "Lightning_SendToRouteSync", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/lnrpcSendResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/rpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/lnrpcSendToRouteRequest" - } - } - ], - "tags": [ - "Lightning" - ] - } - }, "/v1/channels/{channel_point.funding_txid_str}/{channel_point.output_index}": { "delete": { "summary": "lncli: `closechannel`\nCloseChannel attempts to close an active channel identified by its channel\noutpoint (ChannelPoint). The actions of this method can additionally be\naugmented to attempt a force close after a timeout period in the case of an\ninactive peer. If a non-force close (cooperative closure) is requested,\nthen the user can specify either a target number of blocks until the\nclosure transaction is confirmed, or a manual fee rate. If neither are\nspecified, then a default lax, block confirmation target is used.", @@ -1466,14 +1357,6 @@ "required": false, "type": "string" }, - { - "name": "outgoing_chan_id", - "description": "Deprecated, use outgoing_chan_ids. The channel id of the channel that must\nbe taken to the first hop. If zero, any channel may be used.", - "in": "query", - "required": false, - "type": "string", - "format": "uint64" - }, { "name": "last_hop_pubkey", "description": "The pubkey of the last hop of the route. If empty, any hop may be used.", @@ -1647,11 +1530,6 @@ }, "description": "An optional field that can be used to pass an arbitrary set of TLV records\nto a peer which understands the new records. This can be used to pass\napplication specific data during the payment attempt. If the destination\ndoes not support the specified records, an error will be returned.\nRecord types are required to be in the custom range \u003e= 65536. When using\nREST, the values must be encoded as base64." }, - "outgoing_chan_id": { - "type": "string", - "format": "uint64", - "description": "Deprecated, use outgoing_chan_ids. The channel id of the channel that must\nbe taken to the first hop. If zero, any channel may be used." - }, "last_hop_pubkey": { "type": "string", "format": "byte", @@ -7788,128 +7666,6 @@ } } }, - "lnrpcSendRequest": { - "type": "object", - "properties": { - "dest": { - "type": "string", - "format": "byte", - "description": "The identity pubkey of the payment recipient. When using REST, this field\nmust be encoded as base64." - }, - "dest_string": { - "type": "string", - "description": "The hex-encoded identity pubkey of the payment recipient. Deprecated now\nthat the REST gateway supports base64 encoding of bytes fields." - }, - "amt": { - "type": "string", - "format": "int64", - "description": "The amount to send expressed in satoshis.\n\nThe fields amt and amt_msat are mutually exclusive." - }, - "amt_msat": { - "type": "string", - "format": "int64", - "description": "The amount to send expressed in millisatoshis.\n\nThe fields amt and amt_msat are mutually exclusive." - }, - "payment_hash": { - "type": "string", - "format": "byte", - "description": "The hash to use within the payment's HTLC. When using REST, this field\nmust be encoded as base64." - }, - "payment_hash_string": { - "type": "string", - "description": "The hex-encoded hash to use within the payment's HTLC. Deprecated now\nthat the REST gateway supports base64 encoding of bytes fields." - }, - "payment_request": { - "type": "string", - "description": "A bare-bones invoice for a payment within the Lightning Network. With the\ndetails of the invoice, the sender has all the data necessary to send a\npayment to the recipient." - }, - "final_cltv_delta": { - "type": "integer", - "format": "int32", - "description": "The CLTV delta from the current height that should be used to set the\ntimelock for the final hop." - }, - "fee_limit": { - "$ref": "#/definitions/lnrpcFeeLimit", - "description": "The maximum number of satoshis that will be paid as a fee of the payment.\nThis value can be represented either as a percentage of the amount being\nsent, or as a fixed amount of the maximum fee the user is willing the pay to\nsend the payment. If not specified, lnd will use a default value of 100%\nfees for small amounts (\u003c=1k sat) or 5% fees for larger amounts." - }, - "outgoing_chan_id": { - "type": "string", - "format": "uint64", - "description": "The channel id of the channel that must be taken to the first hop. If zero,\nany channel may be used." - }, - "last_hop_pubkey": { - "type": "string", - "format": "byte", - "description": "The pubkey of the last hop of the route. If empty, any hop may be used." - }, - "cltv_limit": { - "type": "integer", - "format": "int64", - "description": "An optional maximum total time lock for the route. This should not exceed\nlnd's `--max-cltv-expiry` setting. If zero, then the value of\n`--max-cltv-expiry` is enforced." - }, - "dest_custom_records": { - "type": "object", - "additionalProperties": { - "type": "string", - "format": "byte" - }, - "description": "An optional field that can be used to pass an arbitrary set of TLV records\nto a peer which understands the new records. This can be used to pass\napplication specific data during the payment attempt. Record types are\nrequired to be in the custom range \u003e= 65536. When using REST, the values\nmust be encoded as base64." - }, - "allow_self_payment": { - "type": "boolean", - "description": "If set, circular payments to self are permitted." - }, - "dest_features": { - "type": "array", - "items": { - "$ref": "#/definitions/lnrpcFeatureBit" - }, - "description": "Features assumed to be supported by the final node. All transitive feature\ndependencies must also be set properly. For a given feature bit pair, either\noptional or remote may be set, but not both. If this field is nil or empty,\nthe router will try to load destination features from the graph as a\nfallback." - }, - "payment_addr": { - "type": "string", - "format": "byte", - "description": "The payment address of the generated invoice. This is also called\npayment secret in specifications (e.g. BOLT 11)." - } - } - }, - "lnrpcSendResponse": { - "type": "object", - "properties": { - "payment_error": { - "type": "string" - }, - "payment_preimage": { - "type": "string", - "format": "byte" - }, - "payment_route": { - "$ref": "#/definitions/lnrpcRoute" - }, - "payment_hash": { - "type": "string", - "format": "byte" - } - } - }, - "lnrpcSendToRouteRequest": { - "type": "object", - "properties": { - "payment_hash": { - "type": "string", - "format": "byte", - "description": "The payment hash to use for the HTLC. When using REST, this field must be\nencoded as base64." - }, - "payment_hash_string": { - "type": "string", - "description": "An optional hex-encoded payment hash to be used for the HTLC. Deprecated now\nthat the REST gateway supports base64 encoding of bytes fields." - }, - "route": { - "$ref": "#/definitions/lnrpcRoute", - "description": "Route that should be used to attempt to complete the payment." - } - } - }, "lnrpcSignMessageRequest": { "type": "object", "properties": { diff --git a/lnrpc/lightning.yaml b/lnrpc/lightning.yaml index 457f0fe06d9..07927171400 100644 --- a/lnrpc/lightning.yaml +++ b/lnrpc/lightning.yaml @@ -75,17 +75,6 @@ http: delete: "/v1/channels/{channel_point.funding_txid_str}/{channel_point.output_index}" - selector: lnrpc.Lightning.AbandonChannel delete: "/v1/channels/abandon/{channel_point.funding_txid_str}/{channel_point.output_index}" - - selector: lnrpc.Lightning.SendPayment - post: "/v1/channels/transaction-stream" - body: "*" - - selector: lnrpc.Lightning.SendPaymentSync - post: "/v1/channels/transactions" - body: "*" - - selector: lnrpc.Lightning.SendToRoute - # deprecated, no REST endpoint - - selector: lnrpc.Lightning.SendToRouteSync - post: "/v1/channels/transactions/route" - body: "*" - selector: lnrpc.Lightning.AddInvoice post: "/v1/invoices" body: "*" diff --git a/lnrpc/lightning_grpc.pb.go b/lnrpc/lightning_grpc.pb.go index 8de0192b52a..f0fb70d1d2d 100644 --- a/lnrpc/lightning_grpc.pb.go +++ b/lnrpc/lightning_grpc.pb.go @@ -185,35 +185,6 @@ type LightningClient interface { // never broadcast. Only available for non-externally funded channels in dev // build. AbandonChannel(ctx context.Context, in *AbandonChannelRequest, opts ...grpc.CallOption) (*AbandonChannelResponse, error) - // Deprecated: Do not use. - // lncli: `sendpayment` - // Deprecated, use routerrpc.SendPaymentV2. SendPayment dispatches a - // bi-directional streaming RPC for sending payments through the Lightning - // Network. A single RPC invocation creates a persistent bi-directional - // stream allowing clients to rapidly send payments through the Lightning - // Network with a single persistent connection. - SendPayment(ctx context.Context, opts ...grpc.CallOption) (Lightning_SendPaymentClient, error) - // Deprecated: Do not use. - // - // Deprecated, use routerrpc.SendPaymentV2. SendPaymentSync is the synchronous - // non-streaming version of SendPayment. This RPC is intended to be consumed by - // clients of the REST proxy. Additionally, this RPC expects the destination's - // public key and the payment hash (if any) to be encoded as hex strings. - SendPaymentSync(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error) - // Deprecated: Do not use. - // lncli: `sendtoroute` - // Deprecated, use routerrpc.SendToRouteV2. SendToRoute is a bi-directional - // streaming RPC for sending payment through the Lightning Network. This - // method differs from SendPayment in that it allows users to specify a full - // route manually. This can be used for things like rebalancing, and atomic - // swaps. - SendToRoute(ctx context.Context, opts ...grpc.CallOption) (Lightning_SendToRouteClient, error) - // Deprecated: Do not use. - // - // Deprecated, use routerrpc.SendToRouteV2. SendToRouteSync is a synchronous - // version of SendToRoute. It Will block until the payment either fails or - // succeeds. - SendToRouteSync(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*SendResponse, error) // lncli: `addinvoice` // AddInvoice attempts to add a new invoice to the invoice database. Any // duplicated invoices are rejected, therefore all invoices *must* have a @@ -840,90 +811,6 @@ func (c *lightningClient) AbandonChannel(ctx context.Context, in *AbandonChannel return out, nil } -// Deprecated: Do not use. -func (c *lightningClient) SendPayment(ctx context.Context, opts ...grpc.CallOption) (Lightning_SendPaymentClient, error) { - stream, err := c.cc.NewStream(ctx, &Lightning_ServiceDesc.Streams[6], "/lnrpc.Lightning/SendPayment", opts...) - if err != nil { - return nil, err - } - x := &lightningSendPaymentClient{stream} - return x, nil -} - -type Lightning_SendPaymentClient interface { - Send(*SendRequest) error - Recv() (*SendResponse, error) - grpc.ClientStream -} - -type lightningSendPaymentClient struct { - grpc.ClientStream -} - -func (x *lightningSendPaymentClient) Send(m *SendRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *lightningSendPaymentClient) Recv() (*SendResponse, error) { - m := new(SendResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Deprecated: Do not use. -func (c *lightningClient) SendPaymentSync(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error) { - out := new(SendResponse) - err := c.cc.Invoke(ctx, "/lnrpc.Lightning/SendPaymentSync", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Deprecated: Do not use. -func (c *lightningClient) SendToRoute(ctx context.Context, opts ...grpc.CallOption) (Lightning_SendToRouteClient, error) { - stream, err := c.cc.NewStream(ctx, &Lightning_ServiceDesc.Streams[7], "/lnrpc.Lightning/SendToRoute", opts...) - if err != nil { - return nil, err - } - x := &lightningSendToRouteClient{stream} - return x, nil -} - -type Lightning_SendToRouteClient interface { - Send(*SendToRouteRequest) error - Recv() (*SendResponse, error) - grpc.ClientStream -} - -type lightningSendToRouteClient struct { - grpc.ClientStream -} - -func (x *lightningSendToRouteClient) Send(m *SendToRouteRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *lightningSendToRouteClient) Recv() (*SendResponse, error) { - m := new(SendResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Deprecated: Do not use. -func (c *lightningClient) SendToRouteSync(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*SendResponse, error) { - out := new(SendResponse) - err := c.cc.Invoke(ctx, "/lnrpc.Lightning/SendToRouteSync", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *lightningClient) AddInvoice(ctx context.Context, in *Invoice, opts ...grpc.CallOption) (*AddInvoiceResponse, error) { out := new(AddInvoiceResponse) err := c.cc.Invoke(ctx, "/lnrpc.Lightning/AddInvoice", in, out, opts...) @@ -952,7 +839,7 @@ func (c *lightningClient) LookupInvoice(ctx context.Context, in *PaymentHash, op } func (c *lightningClient) SubscribeInvoices(ctx context.Context, in *InvoiceSubscription, opts ...grpc.CallOption) (Lightning_SubscribeInvoicesClient, error) { - stream, err := c.cc.NewStream(ctx, &Lightning_ServiceDesc.Streams[8], "/lnrpc.Lightning/SubscribeInvoices", opts...) + stream, err := c.cc.NewStream(ctx, &Lightning_ServiceDesc.Streams[6], "/lnrpc.Lightning/SubscribeInvoices", opts...) if err != nil { return nil, err } @@ -1092,7 +979,7 @@ func (c *lightningClient) StopDaemon(ctx context.Context, in *StopRequest, opts } func (c *lightningClient) SubscribeChannelGraph(ctx context.Context, in *GraphTopologySubscription, opts ...grpc.CallOption) (Lightning_SubscribeChannelGraphClient, error) { - stream, err := c.cc.NewStream(ctx, &Lightning_ServiceDesc.Streams[9], "/lnrpc.Lightning/SubscribeChannelGraph", opts...) + stream, err := c.cc.NewStream(ctx, &Lightning_ServiceDesc.Streams[7], "/lnrpc.Lightning/SubscribeChannelGraph", opts...) if err != nil { return nil, err } @@ -1196,7 +1083,7 @@ func (c *lightningClient) RestoreChannelBackups(ctx context.Context, in *Restore } func (c *lightningClient) SubscribeChannelBackups(ctx context.Context, in *ChannelBackupSubscription, opts ...grpc.CallOption) (Lightning_SubscribeChannelBackupsClient, error) { - stream, err := c.cc.NewStream(ctx, &Lightning_ServiceDesc.Streams[10], "/lnrpc.Lightning/SubscribeChannelBackups", opts...) + stream, err := c.cc.NewStream(ctx, &Lightning_ServiceDesc.Streams[8], "/lnrpc.Lightning/SubscribeChannelBackups", opts...) if err != nil { return nil, err } @@ -1273,7 +1160,7 @@ func (c *lightningClient) CheckMacaroonPermissions(ctx context.Context, in *Chec } func (c *lightningClient) RegisterRPCMiddleware(ctx context.Context, opts ...grpc.CallOption) (Lightning_RegisterRPCMiddlewareClient, error) { - stream, err := c.cc.NewStream(ctx, &Lightning_ServiceDesc.Streams[11], "/lnrpc.Lightning/RegisterRPCMiddleware", opts...) + stream, err := c.cc.NewStream(ctx, &Lightning_ServiceDesc.Streams[9], "/lnrpc.Lightning/RegisterRPCMiddleware", opts...) if err != nil { return nil, err } @@ -1313,7 +1200,7 @@ func (c *lightningClient) SendCustomMessage(ctx context.Context, in *SendCustomM } func (c *lightningClient) SubscribeCustomMessages(ctx context.Context, in *SubscribeCustomMessagesRequest, opts ...grpc.CallOption) (Lightning_SubscribeCustomMessagesClient, error) { - stream, err := c.cc.NewStream(ctx, &Lightning_ServiceDesc.Streams[12], "/lnrpc.Lightning/SubscribeCustomMessages", opts...) + stream, err := c.cc.NewStream(ctx, &Lightning_ServiceDesc.Streams[10], "/lnrpc.Lightning/SubscribeCustomMessages", opts...) if err != nil { return nil, err } @@ -1354,7 +1241,7 @@ func (c *lightningClient) SendOnionMessage(ctx context.Context, in *SendOnionMes } func (c *lightningClient) SubscribeOnionMessages(ctx context.Context, in *SubscribeOnionMessagesRequest, opts ...grpc.CallOption) (Lightning_SubscribeOnionMessagesClient, error) { - stream, err := c.cc.NewStream(ctx, &Lightning_ServiceDesc.Streams[13], "/lnrpc.Lightning/SubscribeOnionMessages", opts...) + stream, err := c.cc.NewStream(ctx, &Lightning_ServiceDesc.Streams[11], "/lnrpc.Lightning/SubscribeOnionMessages", opts...) if err != nil { return nil, err } @@ -1574,35 +1461,6 @@ type LightningServer interface { // never broadcast. Only available for non-externally funded channels in dev // build. AbandonChannel(context.Context, *AbandonChannelRequest) (*AbandonChannelResponse, error) - // Deprecated: Do not use. - // lncli: `sendpayment` - // Deprecated, use routerrpc.SendPaymentV2. SendPayment dispatches a - // bi-directional streaming RPC for sending payments through the Lightning - // Network. A single RPC invocation creates a persistent bi-directional - // stream allowing clients to rapidly send payments through the Lightning - // Network with a single persistent connection. - SendPayment(Lightning_SendPaymentServer) error - // Deprecated: Do not use. - // - // Deprecated, use routerrpc.SendPaymentV2. SendPaymentSync is the synchronous - // non-streaming version of SendPayment. This RPC is intended to be consumed by - // clients of the REST proxy. Additionally, this RPC expects the destination's - // public key and the payment hash (if any) to be encoded as hex strings. - SendPaymentSync(context.Context, *SendRequest) (*SendResponse, error) - // Deprecated: Do not use. - // lncli: `sendtoroute` - // Deprecated, use routerrpc.SendToRouteV2. SendToRoute is a bi-directional - // streaming RPC for sending payment through the Lightning Network. This - // method differs from SendPayment in that it allows users to specify a full - // route manually. This can be used for things like rebalancing, and atomic - // swaps. - SendToRoute(Lightning_SendToRouteServer) error - // Deprecated: Do not use. - // - // Deprecated, use routerrpc.SendToRouteV2. SendToRouteSync is a synchronous - // version of SendToRoute. It Will block until the payment either fails or - // succeeds. - SendToRouteSync(context.Context, *SendToRouteRequest) (*SendResponse, error) // lncli: `addinvoice` // AddInvoice attempts to add a new invoice to the invoice database. Any // duplicated invoices are rejected, therefore all invoices *must* have a @@ -1915,18 +1773,6 @@ func (UnimplementedLightningServer) CloseChannel(*CloseChannelRequest, Lightning func (UnimplementedLightningServer) AbandonChannel(context.Context, *AbandonChannelRequest) (*AbandonChannelResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AbandonChannel not implemented") } -func (UnimplementedLightningServer) SendPayment(Lightning_SendPaymentServer) error { - return status.Errorf(codes.Unimplemented, "method SendPayment not implemented") -} -func (UnimplementedLightningServer) SendPaymentSync(context.Context, *SendRequest) (*SendResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SendPaymentSync not implemented") -} -func (UnimplementedLightningServer) SendToRoute(Lightning_SendToRouteServer) error { - return status.Errorf(codes.Unimplemented, "method SendToRoute not implemented") -} -func (UnimplementedLightningServer) SendToRouteSync(context.Context, *SendToRouteRequest) (*SendResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SendToRouteSync not implemented") -} func (UnimplementedLightningServer) AddInvoice(context.Context, *Invoice) (*AddInvoiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddInvoice not implemented") } @@ -2599,94 +2445,6 @@ func _Lightning_AbandonChannel_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _Lightning_SendPayment_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(LightningServer).SendPayment(&lightningSendPaymentServer{stream}) -} - -type Lightning_SendPaymentServer interface { - Send(*SendResponse) error - Recv() (*SendRequest, error) - grpc.ServerStream -} - -type lightningSendPaymentServer struct { - grpc.ServerStream -} - -func (x *lightningSendPaymentServer) Send(m *SendResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *lightningSendPaymentServer) Recv() (*SendRequest, error) { - m := new(SendRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _Lightning_SendPaymentSync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SendRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(LightningServer).SendPaymentSync(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lnrpc.Lightning/SendPaymentSync", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LightningServer).SendPaymentSync(ctx, req.(*SendRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Lightning_SendToRoute_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(LightningServer).SendToRoute(&lightningSendToRouteServer{stream}) -} - -type Lightning_SendToRouteServer interface { - Send(*SendResponse) error - Recv() (*SendToRouteRequest, error) - grpc.ServerStream -} - -type lightningSendToRouteServer struct { - grpc.ServerStream -} - -func (x *lightningSendToRouteServer) Send(m *SendResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *lightningSendToRouteServer) Recv() (*SendToRouteRequest, error) { - m := new(SendToRouteRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _Lightning_SendToRouteSync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SendToRouteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(LightningServer).SendToRouteSync(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lnrpc.Lightning/SendToRouteSync", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LightningServer).SendToRouteSync(ctx, req.(*SendToRouteRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Lightning_AddInvoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(Invoice) if err := dec(in); err != nil { @@ -3493,14 +3251,6 @@ var Lightning_ServiceDesc = grpc.ServiceDesc{ MethodName: "AbandonChannel", Handler: _Lightning_AbandonChannel_Handler, }, - { - MethodName: "SendPaymentSync", - Handler: _Lightning_SendPaymentSync_Handler, - }, - { - MethodName: "SendToRouteSync", - Handler: _Lightning_SendToRouteSync_Handler, - }, { MethodName: "AddInvoice", Handler: _Lightning_AddInvoice_Handler, @@ -3662,18 +3412,6 @@ var Lightning_ServiceDesc = grpc.ServiceDesc{ Handler: _Lightning_CloseChannel_Handler, ServerStreams: true, }, - { - StreamName: "SendPayment", - Handler: _Lightning_SendPayment_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "SendToRoute", - Handler: _Lightning_SendToRoute_Handler, - ServerStreams: true, - ClientStreams: true, - }, { StreamName: "SubscribeInvoices", Handler: _Lightning_SubscribeInvoices_Handler, diff --git a/lnrpc/metadata.go b/lnrpc/metadata.go index a6e89949bc1..7336b1da47f 100644 --- a/lnrpc/metadata.go +++ b/lnrpc/metadata.go @@ -11,7 +11,6 @@ var ( // runtime so we need to keep a hard coded list here. LndClientStreamingURIs = []*regexp.Regexp{ regexp.MustCompile("^/v1/channels/acceptor$"), - regexp.MustCompile("^/v1/channels/transaction-stream$"), regexp.MustCompile("^/v2/router/htlcinterceptor$"), regexp.MustCompile("^/v1/middleware$"), } diff --git a/lnrpc/routerrpc/router.pb.go b/lnrpc/routerrpc/router.pb.go index d6d6bac7852..570595b6c1f 100644 --- a/lnrpc/routerrpc/router.pb.go +++ b/lnrpc/routerrpc/router.pb.go @@ -146,76 +146,6 @@ func (FailureDetail) EnumDescriptor() ([]byte, []int) { return file_routerrpc_router_proto_rawDescGZIP(), []int{0} } -type PaymentState int32 - -const ( - // Payment is still in flight. - PaymentState_IN_FLIGHT PaymentState = 0 - // Payment completed successfully. - PaymentState_SUCCEEDED PaymentState = 1 - // There are more routes to try, but the payment timeout was exceeded. - PaymentState_FAILED_TIMEOUT PaymentState = 2 - // All possible routes were tried and failed permanently. Or were no - // routes to the destination at all. - PaymentState_FAILED_NO_ROUTE PaymentState = 3 - // A non-recoverable error has occurred. - PaymentState_FAILED_ERROR PaymentState = 4 - // Payment details incorrect (unknown hash, invalid amt or - // invalid final cltv delta) - PaymentState_FAILED_INCORRECT_PAYMENT_DETAILS PaymentState = 5 - // Insufficient local balance. - PaymentState_FAILED_INSUFFICIENT_BALANCE PaymentState = 6 -) - -// Enum value maps for PaymentState. -var ( - PaymentState_name = map[int32]string{ - 0: "IN_FLIGHT", - 1: "SUCCEEDED", - 2: "FAILED_TIMEOUT", - 3: "FAILED_NO_ROUTE", - 4: "FAILED_ERROR", - 5: "FAILED_INCORRECT_PAYMENT_DETAILS", - 6: "FAILED_INSUFFICIENT_BALANCE", - } - PaymentState_value = map[string]int32{ - "IN_FLIGHT": 0, - "SUCCEEDED": 1, - "FAILED_TIMEOUT": 2, - "FAILED_NO_ROUTE": 3, - "FAILED_ERROR": 4, - "FAILED_INCORRECT_PAYMENT_DETAILS": 5, - "FAILED_INSUFFICIENT_BALANCE": 6, - } -) - -func (x PaymentState) Enum() *PaymentState { - p := new(PaymentState) - *p = x - return p -} - -func (x PaymentState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PaymentState) Descriptor() protoreflect.EnumDescriptor { - return file_routerrpc_router_proto_enumTypes[1].Descriptor() -} - -func (PaymentState) Type() protoreflect.EnumType { - return &file_routerrpc_router_proto_enumTypes[1] -} - -func (x PaymentState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PaymentState.Descriptor instead. -func (PaymentState) EnumDescriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{1} -} - type ResolveHoldForwardAction int32 const ( @@ -258,11 +188,11 @@ func (x ResolveHoldForwardAction) String() string { } func (ResolveHoldForwardAction) Descriptor() protoreflect.EnumDescriptor { - return file_routerrpc_router_proto_enumTypes[2].Descriptor() + return file_routerrpc_router_proto_enumTypes[1].Descriptor() } func (ResolveHoldForwardAction) Type() protoreflect.EnumType { - return &file_routerrpc_router_proto_enumTypes[2] + return &file_routerrpc_router_proto_enumTypes[1] } func (x ResolveHoldForwardAction) Number() protoreflect.EnumNumber { @@ -271,7 +201,7 @@ func (x ResolveHoldForwardAction) Number() protoreflect.EnumNumber { // Deprecated: Use ResolveHoldForwardAction.Descriptor instead. func (ResolveHoldForwardAction) EnumDescriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{2} + return file_routerrpc_router_proto_rawDescGZIP(), []int{1} } type ChanStatusAction int32 @@ -307,11 +237,11 @@ func (x ChanStatusAction) String() string { } func (ChanStatusAction) Descriptor() protoreflect.EnumDescriptor { - return file_routerrpc_router_proto_enumTypes[3].Descriptor() + return file_routerrpc_router_proto_enumTypes[2].Descriptor() } func (ChanStatusAction) Type() protoreflect.EnumType { - return &file_routerrpc_router_proto_enumTypes[3] + return &file_routerrpc_router_proto_enumTypes[2] } func (x ChanStatusAction) Number() protoreflect.EnumNumber { @@ -320,7 +250,7 @@ func (x ChanStatusAction) Number() protoreflect.EnumNumber { // Deprecated: Use ChanStatusAction.Descriptor instead. func (ChanStatusAction) EnumDescriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{3} + return file_routerrpc_router_proto_rawDescGZIP(), []int{2} } type MissionControlConfig_ProbabilityModel int32 @@ -353,11 +283,11 @@ func (x MissionControlConfig_ProbabilityModel) String() string { } func (MissionControlConfig_ProbabilityModel) Descriptor() protoreflect.EnumDescriptor { - return file_routerrpc_router_proto_enumTypes[4].Descriptor() + return file_routerrpc_router_proto_enumTypes[3].Descriptor() } func (MissionControlConfig_ProbabilityModel) Type() protoreflect.EnumType { - return &file_routerrpc_router_proto_enumTypes[4] + return &file_routerrpc_router_proto_enumTypes[3] } func (x MissionControlConfig_ProbabilityModel) Number() protoreflect.EnumNumber { @@ -366,7 +296,7 @@ func (x MissionControlConfig_ProbabilityModel) Number() protoreflect.EnumNumber // Deprecated: Use MissionControlConfig_ProbabilityModel.Descriptor instead. func (MissionControlConfig_ProbabilityModel) EnumDescriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{19, 0} + return file_routerrpc_router_proto_rawDescGZIP(), []int{18, 0} } type HtlcEvent_EventType int32 @@ -405,11 +335,11 @@ func (x HtlcEvent_EventType) String() string { } func (HtlcEvent_EventType) Descriptor() protoreflect.EnumDescriptor { - return file_routerrpc_router_proto_enumTypes[5].Descriptor() + return file_routerrpc_router_proto_enumTypes[4].Descriptor() } func (HtlcEvent_EventType) Type() protoreflect.EnumType { - return &file_routerrpc_router_proto_enumTypes[5] + return &file_routerrpc_router_proto_enumTypes[4] } func (x HtlcEvent_EventType) Number() protoreflect.EnumNumber { @@ -418,7 +348,7 @@ func (x HtlcEvent_EventType) Number() protoreflect.EnumNumber { // Deprecated: Use HtlcEvent_EventType.Descriptor instead. func (HtlcEvent_EventType) EnumDescriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{27, 0} + return file_routerrpc_router_proto_rawDescGZIP(), []int{26, 0} } type SendPaymentRequest struct { @@ -453,12 +383,6 @@ type SendPaymentRequest struct { // // The fields fee_limit_sat and fee_limit_msat are mutually exclusive. FeeLimitSat int64 `protobuf:"varint,7,opt,name=fee_limit_sat,json=feeLimitSat,proto3" json:"fee_limit_sat,omitempty"` - // Deprecated, use outgoing_chan_ids. The channel id of the channel that must - // be taken to the first hop. If zero, any channel may be used (unless - // outgoing_chan_ids are set). - // - // Deprecated: Marked as deprecated in routerrpc/router.proto. - OutgoingChanId uint64 `protobuf:"varint,8,opt,name=outgoing_chan_id,json=outgoingChanId,proto3" json:"outgoing_chan_id,omitempty"` // An optional maximum total time lock for the route. This should not // exceed lnd's `--max-cltv-expiry` setting. If zero, then the value of // `--max-cltv-expiry` is enforced. @@ -610,14 +534,6 @@ func (x *SendPaymentRequest) GetFeeLimitSat() int64 { return 0 } -// Deprecated: Marked as deprecated in routerrpc/router.proto. -func (x *SendPaymentRequest) GetOutgoingChanId() uint64 { - if x != nil { - return x.OutgoingChanId - } - return 0 -} - func (x *SendPaymentRequest) GetCltvLimit() int32 { if x != nil { return x.CltvLimit @@ -1071,60 +987,6 @@ func (x *SendToRouteRequest) GetFirstHopCustomRecords() map[uint64][]byte { return nil } -type SendToRouteResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The preimage obtained by making the payment. - Preimage []byte `protobuf:"bytes,1,opt,name=preimage,proto3" json:"preimage,omitempty"` - // The failure message in case the payment failed. - Failure *lnrpc.Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SendToRouteResponse) Reset() { - *x = SendToRouteResponse{} - mi := &file_routerrpc_router_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SendToRouteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendToRouteResponse) ProtoMessage() {} - -func (x *SendToRouteResponse) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[6] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendToRouteResponse.ProtoReflect.Descriptor instead. -func (*SendToRouteResponse) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{6} -} - -func (x *SendToRouteResponse) GetPreimage() []byte { - if x != nil { - return x.Preimage - } - return nil -} - -func (x *SendToRouteResponse) GetFailure() *lnrpc.Failure { - if x != nil { - return x.Failure - } - return nil -} - type ResetMissionControlRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields @@ -1133,7 +995,7 @@ type ResetMissionControlRequest struct { func (x *ResetMissionControlRequest) Reset() { *x = ResetMissionControlRequest{} - mi := &file_routerrpc_router_proto_msgTypes[7] + mi := &file_routerrpc_router_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1145,7 +1007,7 @@ func (x *ResetMissionControlRequest) String() string { func (*ResetMissionControlRequest) ProtoMessage() {} func (x *ResetMissionControlRequest) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[7] + mi := &file_routerrpc_router_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1158,7 +1020,7 @@ func (x *ResetMissionControlRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ResetMissionControlRequest.ProtoReflect.Descriptor instead. func (*ResetMissionControlRequest) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{7} + return file_routerrpc_router_proto_rawDescGZIP(), []int{6} } type ResetMissionControlResponse struct { @@ -1169,7 +1031,7 @@ type ResetMissionControlResponse struct { func (x *ResetMissionControlResponse) Reset() { *x = ResetMissionControlResponse{} - mi := &file_routerrpc_router_proto_msgTypes[8] + mi := &file_routerrpc_router_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1181,7 +1043,7 @@ func (x *ResetMissionControlResponse) String() string { func (*ResetMissionControlResponse) ProtoMessage() {} func (x *ResetMissionControlResponse) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[8] + mi := &file_routerrpc_router_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1194,7 +1056,7 @@ func (x *ResetMissionControlResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ResetMissionControlResponse.ProtoReflect.Descriptor instead. func (*ResetMissionControlResponse) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{8} + return file_routerrpc_router_proto_rawDescGZIP(), []int{7} } type QueryMissionControlRequest struct { @@ -1205,7 +1067,7 @@ type QueryMissionControlRequest struct { func (x *QueryMissionControlRequest) Reset() { *x = QueryMissionControlRequest{} - mi := &file_routerrpc_router_proto_msgTypes[9] + mi := &file_routerrpc_router_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1217,7 +1079,7 @@ func (x *QueryMissionControlRequest) String() string { func (*QueryMissionControlRequest) ProtoMessage() {} func (x *QueryMissionControlRequest) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[9] + mi := &file_routerrpc_router_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1230,7 +1092,7 @@ func (x *QueryMissionControlRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryMissionControlRequest.ProtoReflect.Descriptor instead. func (*QueryMissionControlRequest) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{9} + return file_routerrpc_router_proto_rawDescGZIP(), []int{8} } // QueryMissionControlResponse contains mission control state. @@ -1244,7 +1106,7 @@ type QueryMissionControlResponse struct { func (x *QueryMissionControlResponse) Reset() { *x = QueryMissionControlResponse{} - mi := &file_routerrpc_router_proto_msgTypes[10] + mi := &file_routerrpc_router_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1256,7 +1118,7 @@ func (x *QueryMissionControlResponse) String() string { func (*QueryMissionControlResponse) ProtoMessage() {} func (x *QueryMissionControlResponse) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[10] + mi := &file_routerrpc_router_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1269,7 +1131,7 @@ func (x *QueryMissionControlResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryMissionControlResponse.ProtoReflect.Descriptor instead. func (*QueryMissionControlResponse) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{10} + return file_routerrpc_router_proto_rawDescGZIP(), []int{9} } func (x *QueryMissionControlResponse) GetPairs() []*PairHistory { @@ -1293,7 +1155,7 @@ type XImportMissionControlRequest struct { func (x *XImportMissionControlRequest) Reset() { *x = XImportMissionControlRequest{} - mi := &file_routerrpc_router_proto_msgTypes[11] + mi := &file_routerrpc_router_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1305,7 +1167,7 @@ func (x *XImportMissionControlRequest) String() string { func (*XImportMissionControlRequest) ProtoMessage() {} func (x *XImportMissionControlRequest) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[11] + mi := &file_routerrpc_router_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1318,7 +1180,7 @@ func (x *XImportMissionControlRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use XImportMissionControlRequest.ProtoReflect.Descriptor instead. func (*XImportMissionControlRequest) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{11} + return file_routerrpc_router_proto_rawDescGZIP(), []int{10} } func (x *XImportMissionControlRequest) GetPairs() []*PairHistory { @@ -1343,7 +1205,7 @@ type XImportMissionControlResponse struct { func (x *XImportMissionControlResponse) Reset() { *x = XImportMissionControlResponse{} - mi := &file_routerrpc_router_proto_msgTypes[12] + mi := &file_routerrpc_router_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1355,7 +1217,7 @@ func (x *XImportMissionControlResponse) String() string { func (*XImportMissionControlResponse) ProtoMessage() {} func (x *XImportMissionControlResponse) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[12] + mi := &file_routerrpc_router_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1368,7 +1230,7 @@ func (x *XImportMissionControlResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use XImportMissionControlResponse.ProtoReflect.Descriptor instead. func (*XImportMissionControlResponse) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{12} + return file_routerrpc_router_proto_rawDescGZIP(), []int{11} } // PairHistory contains the mission control state for a particular node pair. @@ -1385,7 +1247,7 @@ type PairHistory struct { func (x *PairHistory) Reset() { *x = PairHistory{} - mi := &file_routerrpc_router_proto_msgTypes[13] + mi := &file_routerrpc_router_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1397,7 +1259,7 @@ func (x *PairHistory) String() string { func (*PairHistory) ProtoMessage() {} func (x *PairHistory) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[13] + mi := &file_routerrpc_router_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1410,7 +1272,7 @@ func (x *PairHistory) ProtoReflect() protoreflect.Message { // Deprecated: Use PairHistory.ProtoReflect.Descriptor instead. func (*PairHistory) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{13} + return file_routerrpc_router_proto_rawDescGZIP(), []int{12} } func (x *PairHistory) GetNodeFrom() []byte { @@ -1456,7 +1318,7 @@ type PairData struct { func (x *PairData) Reset() { *x = PairData{} - mi := &file_routerrpc_router_proto_msgTypes[14] + mi := &file_routerrpc_router_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1468,7 +1330,7 @@ func (x *PairData) String() string { func (*PairData) ProtoMessage() {} func (x *PairData) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[14] + mi := &file_routerrpc_router_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1481,7 +1343,7 @@ func (x *PairData) ProtoReflect() protoreflect.Message { // Deprecated: Use PairData.ProtoReflect.Descriptor instead. func (*PairData) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{14} + return file_routerrpc_router_proto_rawDescGZIP(), []int{13} } func (x *PairData) GetFailTime() int64 { @@ -1534,7 +1396,7 @@ type GetMissionControlConfigRequest struct { func (x *GetMissionControlConfigRequest) Reset() { *x = GetMissionControlConfigRequest{} - mi := &file_routerrpc_router_proto_msgTypes[15] + mi := &file_routerrpc_router_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1546,7 +1408,7 @@ func (x *GetMissionControlConfigRequest) String() string { func (*GetMissionControlConfigRequest) ProtoMessage() {} func (x *GetMissionControlConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[15] + mi := &file_routerrpc_router_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1559,7 +1421,7 @@ func (x *GetMissionControlConfigRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMissionControlConfigRequest.ProtoReflect.Descriptor instead. func (*GetMissionControlConfigRequest) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{15} + return file_routerrpc_router_proto_rawDescGZIP(), []int{14} } type GetMissionControlConfigResponse struct { @@ -1572,7 +1434,7 @@ type GetMissionControlConfigResponse struct { func (x *GetMissionControlConfigResponse) Reset() { *x = GetMissionControlConfigResponse{} - mi := &file_routerrpc_router_proto_msgTypes[16] + mi := &file_routerrpc_router_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1584,7 +1446,7 @@ func (x *GetMissionControlConfigResponse) String() string { func (*GetMissionControlConfigResponse) ProtoMessage() {} func (x *GetMissionControlConfigResponse) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[16] + mi := &file_routerrpc_router_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1597,7 +1459,7 @@ func (x *GetMissionControlConfigResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMissionControlConfigResponse.ProtoReflect.Descriptor instead. func (*GetMissionControlConfigResponse) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{16} + return file_routerrpc_router_proto_rawDescGZIP(), []int{15} } func (x *GetMissionControlConfigResponse) GetConfig() *MissionControlConfig { @@ -1618,7 +1480,7 @@ type SetMissionControlConfigRequest struct { func (x *SetMissionControlConfigRequest) Reset() { *x = SetMissionControlConfigRequest{} - mi := &file_routerrpc_router_proto_msgTypes[17] + mi := &file_routerrpc_router_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1630,7 +1492,7 @@ func (x *SetMissionControlConfigRequest) String() string { func (*SetMissionControlConfigRequest) ProtoMessage() {} func (x *SetMissionControlConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[17] + mi := &file_routerrpc_router_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1643,7 +1505,7 @@ func (x *SetMissionControlConfigRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetMissionControlConfigRequest.ProtoReflect.Descriptor instead. func (*SetMissionControlConfigRequest) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{17} + return file_routerrpc_router_proto_rawDescGZIP(), []int{16} } func (x *SetMissionControlConfigRequest) GetConfig() *MissionControlConfig { @@ -1661,7 +1523,7 @@ type SetMissionControlConfigResponse struct { func (x *SetMissionControlConfigResponse) Reset() { *x = SetMissionControlConfigResponse{} - mi := &file_routerrpc_router_proto_msgTypes[18] + mi := &file_routerrpc_router_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1673,7 +1535,7 @@ func (x *SetMissionControlConfigResponse) String() string { func (*SetMissionControlConfigResponse) ProtoMessage() {} func (x *SetMissionControlConfigResponse) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[18] + mi := &file_routerrpc_router_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1686,7 +1548,7 @@ func (x *SetMissionControlConfigResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetMissionControlConfigResponse.ProtoReflect.Descriptor instead. func (*SetMissionControlConfigResponse) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{18} + return file_routerrpc_router_proto_rawDescGZIP(), []int{17} } type MissionControlConfig struct { @@ -1737,7 +1599,7 @@ type MissionControlConfig struct { func (x *MissionControlConfig) Reset() { *x = MissionControlConfig{} - mi := &file_routerrpc_router_proto_msgTypes[19] + mi := &file_routerrpc_router_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1749,7 +1611,7 @@ func (x *MissionControlConfig) String() string { func (*MissionControlConfig) ProtoMessage() {} func (x *MissionControlConfig) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[19] + mi := &file_routerrpc_router_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1762,7 +1624,7 @@ func (x *MissionControlConfig) ProtoReflect() protoreflect.Message { // Deprecated: Use MissionControlConfig.ProtoReflect.Descriptor instead. func (*MissionControlConfig) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{19} + return file_routerrpc_router_proto_rawDescGZIP(), []int{18} } // Deprecated: Marked as deprecated in routerrpc/router.proto. @@ -1875,7 +1737,7 @@ type BimodalParameters struct { func (x *BimodalParameters) Reset() { *x = BimodalParameters{} - mi := &file_routerrpc_router_proto_msgTypes[20] + mi := &file_routerrpc_router_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1887,7 +1749,7 @@ func (x *BimodalParameters) String() string { func (*BimodalParameters) ProtoMessage() {} func (x *BimodalParameters) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[20] + mi := &file_routerrpc_router_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1900,7 +1762,7 @@ func (x *BimodalParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use BimodalParameters.ProtoReflect.Descriptor instead. func (*BimodalParameters) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{20} + return file_routerrpc_router_proto_rawDescGZIP(), []int{19} } func (x *BimodalParameters) GetNodeWeight() float64 { @@ -1955,7 +1817,7 @@ type AprioriParameters struct { func (x *AprioriParameters) Reset() { *x = AprioriParameters{} - mi := &file_routerrpc_router_proto_msgTypes[21] + mi := &file_routerrpc_router_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1967,7 +1829,7 @@ func (x *AprioriParameters) String() string { func (*AprioriParameters) ProtoMessage() {} func (x *AprioriParameters) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[21] + mi := &file_routerrpc_router_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1980,7 +1842,7 @@ func (x *AprioriParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use AprioriParameters.ProtoReflect.Descriptor instead. func (*AprioriParameters) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{21} + return file_routerrpc_router_proto_rawDescGZIP(), []int{20} } func (x *AprioriParameters) GetHalfLifeSeconds() uint64 { @@ -2025,7 +1887,7 @@ type QueryProbabilityRequest struct { func (x *QueryProbabilityRequest) Reset() { *x = QueryProbabilityRequest{} - mi := &file_routerrpc_router_proto_msgTypes[22] + mi := &file_routerrpc_router_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2037,7 +1899,7 @@ func (x *QueryProbabilityRequest) String() string { func (*QueryProbabilityRequest) ProtoMessage() {} func (x *QueryProbabilityRequest) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[22] + mi := &file_routerrpc_router_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2050,7 +1912,7 @@ func (x *QueryProbabilityRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryProbabilityRequest.ProtoReflect.Descriptor instead. func (*QueryProbabilityRequest) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{22} + return file_routerrpc_router_proto_rawDescGZIP(), []int{21} } func (x *QueryProbabilityRequest) GetFromNode() []byte { @@ -2086,7 +1948,7 @@ type QueryProbabilityResponse struct { func (x *QueryProbabilityResponse) Reset() { *x = QueryProbabilityResponse{} - mi := &file_routerrpc_router_proto_msgTypes[23] + mi := &file_routerrpc_router_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2098,7 +1960,7 @@ func (x *QueryProbabilityResponse) String() string { func (*QueryProbabilityResponse) ProtoMessage() {} func (x *QueryProbabilityResponse) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[23] + mi := &file_routerrpc_router_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2111,7 +1973,7 @@ func (x *QueryProbabilityResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryProbabilityResponse.ProtoReflect.Descriptor instead. func (*QueryProbabilityResponse) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{23} + return file_routerrpc_router_proto_rawDescGZIP(), []int{22} } func (x *QueryProbabilityResponse) GetProbability() float64 { @@ -2157,7 +2019,7 @@ type BuildRouteRequest struct { func (x *BuildRouteRequest) Reset() { *x = BuildRouteRequest{} - mi := &file_routerrpc_router_proto_msgTypes[24] + mi := &file_routerrpc_router_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2169,7 +2031,7 @@ func (x *BuildRouteRequest) String() string { func (*BuildRouteRequest) ProtoMessage() {} func (x *BuildRouteRequest) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[24] + mi := &file_routerrpc_router_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2182,7 +2044,7 @@ func (x *BuildRouteRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BuildRouteRequest.ProtoReflect.Descriptor instead. func (*BuildRouteRequest) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{24} + return file_routerrpc_router_proto_rawDescGZIP(), []int{23} } func (x *BuildRouteRequest) GetAmtMsat() int64 { @@ -2237,7 +2099,7 @@ type BuildRouteResponse struct { func (x *BuildRouteResponse) Reset() { *x = BuildRouteResponse{} - mi := &file_routerrpc_router_proto_msgTypes[25] + mi := &file_routerrpc_router_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2249,7 +2111,7 @@ func (x *BuildRouteResponse) String() string { func (*BuildRouteResponse) ProtoMessage() {} func (x *BuildRouteResponse) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[25] + mi := &file_routerrpc_router_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2262,7 +2124,7 @@ func (x *BuildRouteResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use BuildRouteResponse.ProtoReflect.Descriptor instead. func (*BuildRouteResponse) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{25} + return file_routerrpc_router_proto_rawDescGZIP(), []int{24} } func (x *BuildRouteResponse) GetRoute() *lnrpc.Route { @@ -2280,7 +2142,7 @@ type SubscribeHtlcEventsRequest struct { func (x *SubscribeHtlcEventsRequest) Reset() { *x = SubscribeHtlcEventsRequest{} - mi := &file_routerrpc_router_proto_msgTypes[26] + mi := &file_routerrpc_router_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2292,7 +2154,7 @@ func (x *SubscribeHtlcEventsRequest) String() string { func (*SubscribeHtlcEventsRequest) ProtoMessage() {} func (x *SubscribeHtlcEventsRequest) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[26] + mi := &file_routerrpc_router_proto_msgTypes[25] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2305,7 +2167,7 @@ func (x *SubscribeHtlcEventsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SubscribeHtlcEventsRequest.ProtoReflect.Descriptor instead. func (*SubscribeHtlcEventsRequest) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{26} + return file_routerrpc_router_proto_rawDescGZIP(), []int{25} } // HtlcEvent contains the htlc event that was processed. These are served on a @@ -2348,7 +2210,7 @@ type HtlcEvent struct { func (x *HtlcEvent) Reset() { *x = HtlcEvent{} - mi := &file_routerrpc_router_proto_msgTypes[27] + mi := &file_routerrpc_router_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2360,7 +2222,7 @@ func (x *HtlcEvent) String() string { func (*HtlcEvent) ProtoMessage() {} func (x *HtlcEvent) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[27] + mi := &file_routerrpc_router_proto_msgTypes[26] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2373,7 +2235,7 @@ func (x *HtlcEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use HtlcEvent.ProtoReflect.Descriptor instead. func (*HtlcEvent) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{27} + return file_routerrpc_router_proto_rawDescGZIP(), []int{26} } func (x *HtlcEvent) GetIncomingChannelId() uint64 { @@ -2535,7 +2397,7 @@ type HtlcInfo struct { func (x *HtlcInfo) Reset() { *x = HtlcInfo{} - mi := &file_routerrpc_router_proto_msgTypes[28] + mi := &file_routerrpc_router_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2547,7 +2409,7 @@ func (x *HtlcInfo) String() string { func (*HtlcInfo) ProtoMessage() {} func (x *HtlcInfo) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[28] + mi := &file_routerrpc_router_proto_msgTypes[27] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2560,7 +2422,7 @@ func (x *HtlcInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use HtlcInfo.ProtoReflect.Descriptor instead. func (*HtlcInfo) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{28} + return file_routerrpc_router_proto_rawDescGZIP(), []int{27} } func (x *HtlcInfo) GetIncomingTimelock() uint32 { @@ -2601,7 +2463,7 @@ type ForwardEvent struct { func (x *ForwardEvent) Reset() { *x = ForwardEvent{} - mi := &file_routerrpc_router_proto_msgTypes[29] + mi := &file_routerrpc_router_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2613,7 +2475,7 @@ func (x *ForwardEvent) String() string { func (*ForwardEvent) ProtoMessage() {} func (x *ForwardEvent) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[29] + mi := &file_routerrpc_router_proto_msgTypes[28] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2626,7 +2488,7 @@ func (x *ForwardEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use ForwardEvent.ProtoReflect.Descriptor instead. func (*ForwardEvent) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{29} + return file_routerrpc_router_proto_rawDescGZIP(), []int{28} } func (x *ForwardEvent) GetInfo() *HtlcInfo { @@ -2644,7 +2506,7 @@ type ForwardFailEvent struct { func (x *ForwardFailEvent) Reset() { *x = ForwardFailEvent{} - mi := &file_routerrpc_router_proto_msgTypes[30] + mi := &file_routerrpc_router_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2656,7 +2518,7 @@ func (x *ForwardFailEvent) String() string { func (*ForwardFailEvent) ProtoMessage() {} func (x *ForwardFailEvent) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[30] + mi := &file_routerrpc_router_proto_msgTypes[29] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2669,7 +2531,7 @@ func (x *ForwardFailEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use ForwardFailEvent.ProtoReflect.Descriptor instead. func (*ForwardFailEvent) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{30} + return file_routerrpc_router_proto_rawDescGZIP(), []int{29} } type SettleEvent struct { @@ -2682,7 +2544,7 @@ type SettleEvent struct { func (x *SettleEvent) Reset() { *x = SettleEvent{} - mi := &file_routerrpc_router_proto_msgTypes[31] + mi := &file_routerrpc_router_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2694,7 +2556,7 @@ func (x *SettleEvent) String() string { func (*SettleEvent) ProtoMessage() {} func (x *SettleEvent) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[31] + mi := &file_routerrpc_router_proto_msgTypes[30] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2707,7 +2569,7 @@ func (x *SettleEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use SettleEvent.ProtoReflect.Descriptor instead. func (*SettleEvent) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{31} + return file_routerrpc_router_proto_rawDescGZIP(), []int{30} } func (x *SettleEvent) GetPreimage() []byte { @@ -2727,7 +2589,7 @@ type FinalHtlcEvent struct { func (x *FinalHtlcEvent) Reset() { *x = FinalHtlcEvent{} - mi := &file_routerrpc_router_proto_msgTypes[32] + mi := &file_routerrpc_router_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2739,7 +2601,7 @@ func (x *FinalHtlcEvent) String() string { func (*FinalHtlcEvent) ProtoMessage() {} func (x *FinalHtlcEvent) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[32] + mi := &file_routerrpc_router_proto_msgTypes[31] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2752,7 +2614,7 @@ func (x *FinalHtlcEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use FinalHtlcEvent.ProtoReflect.Descriptor instead. func (*FinalHtlcEvent) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{32} + return file_routerrpc_router_proto_rawDescGZIP(), []int{31} } func (x *FinalHtlcEvent) GetSettled() bool { @@ -2777,7 +2639,7 @@ type SubscribedEvent struct { func (x *SubscribedEvent) Reset() { *x = SubscribedEvent{} - mi := &file_routerrpc_router_proto_msgTypes[33] + mi := &file_routerrpc_router_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2789,7 +2651,7 @@ func (x *SubscribedEvent) String() string { func (*SubscribedEvent) ProtoMessage() {} func (x *SubscribedEvent) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[33] + mi := &file_routerrpc_router_proto_msgTypes[32] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2802,7 +2664,7 @@ func (x *SubscribedEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use SubscribedEvent.ProtoReflect.Descriptor instead. func (*SubscribedEvent) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{33} + return file_routerrpc_router_proto_rawDescGZIP(), []int{32} } type LinkFailEvent struct { @@ -2823,7 +2685,7 @@ type LinkFailEvent struct { func (x *LinkFailEvent) Reset() { *x = LinkFailEvent{} - mi := &file_routerrpc_router_proto_msgTypes[34] + mi := &file_routerrpc_router_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2835,7 +2697,7 @@ func (x *LinkFailEvent) String() string { func (*LinkFailEvent) ProtoMessage() {} func (x *LinkFailEvent) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[34] + mi := &file_routerrpc_router_proto_msgTypes[33] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2848,7 +2710,7 @@ func (x *LinkFailEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use LinkFailEvent.ProtoReflect.Descriptor instead. func (*LinkFailEvent) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{34} + return file_routerrpc_router_proto_rawDescGZIP(), []int{33} } func (x *LinkFailEvent) GetInfo() *HtlcInfo { @@ -2879,69 +2741,6 @@ func (x *LinkFailEvent) GetFailureString() string { return "" } -type PaymentStatus struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Current state the payment is in. - State PaymentState `protobuf:"varint,1,opt,name=state,proto3,enum=routerrpc.PaymentState" json:"state,omitempty"` - // The pre-image of the payment when state is SUCCEEDED. - Preimage []byte `protobuf:"bytes,2,opt,name=preimage,proto3" json:"preimage,omitempty"` - // The HTLCs made in attempt to settle the payment [EXPERIMENTAL]. - Htlcs []*lnrpc.HTLCAttempt `protobuf:"bytes,4,rep,name=htlcs,proto3" json:"htlcs,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *PaymentStatus) Reset() { - *x = PaymentStatus{} - mi := &file_routerrpc_router_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *PaymentStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PaymentStatus) ProtoMessage() {} - -func (x *PaymentStatus) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[35] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PaymentStatus.ProtoReflect.Descriptor instead. -func (*PaymentStatus) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{35} -} - -func (x *PaymentStatus) GetState() PaymentState { - if x != nil { - return x.State - } - return PaymentState_IN_FLIGHT -} - -func (x *PaymentStatus) GetPreimage() []byte { - if x != nil { - return x.Preimage - } - return nil -} - -func (x *PaymentStatus) GetHtlcs() []*lnrpc.HTLCAttempt { - if x != nil { - return x.Htlcs - } - return nil -} - type CircuitKey struct { state protoimpl.MessageState `protogen:"open.v1"` // / The id of the channel that the is part of this circuit. @@ -2954,7 +2753,7 @@ type CircuitKey struct { func (x *CircuitKey) Reset() { *x = CircuitKey{} - mi := &file_routerrpc_router_proto_msgTypes[36] + mi := &file_routerrpc_router_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2966,7 +2765,7 @@ func (x *CircuitKey) String() string { func (*CircuitKey) ProtoMessage() {} func (x *CircuitKey) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[36] + mi := &file_routerrpc_router_proto_msgTypes[34] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2979,7 +2778,7 @@ func (x *CircuitKey) ProtoReflect() protoreflect.Message { // Deprecated: Use CircuitKey.ProtoReflect.Descriptor instead. func (*CircuitKey) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{36} + return file_routerrpc_router_proto_rawDescGZIP(), []int{34} } func (x *CircuitKey) GetChanId() uint64 { @@ -3032,7 +2831,7 @@ type ForwardHtlcInterceptRequest struct { func (x *ForwardHtlcInterceptRequest) Reset() { *x = ForwardHtlcInterceptRequest{} - mi := &file_routerrpc_router_proto_msgTypes[37] + mi := &file_routerrpc_router_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3044,7 +2843,7 @@ func (x *ForwardHtlcInterceptRequest) String() string { func (*ForwardHtlcInterceptRequest) ProtoMessage() {} func (x *ForwardHtlcInterceptRequest) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[37] + mi := &file_routerrpc_router_proto_msgTypes[35] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3057,7 +2856,7 @@ func (x *ForwardHtlcInterceptRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ForwardHtlcInterceptRequest.ProtoReflect.Descriptor instead. func (*ForwardHtlcInterceptRequest) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{37} + return file_routerrpc_router_proto_rawDescGZIP(), []int{35} } func (x *ForwardHtlcInterceptRequest) GetIncomingCircuitKey() *CircuitKey { @@ -3189,7 +2988,7 @@ type ForwardHtlcInterceptResponse struct { func (x *ForwardHtlcInterceptResponse) Reset() { *x = ForwardHtlcInterceptResponse{} - mi := &file_routerrpc_router_proto_msgTypes[38] + mi := &file_routerrpc_router_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3201,7 +3000,7 @@ func (x *ForwardHtlcInterceptResponse) String() string { func (*ForwardHtlcInterceptResponse) ProtoMessage() {} func (x *ForwardHtlcInterceptResponse) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[38] + mi := &file_routerrpc_router_proto_msgTypes[36] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3214,7 +3013,7 @@ func (x *ForwardHtlcInterceptResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ForwardHtlcInterceptResponse.ProtoReflect.Descriptor instead. func (*ForwardHtlcInterceptResponse) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{38} + return file_routerrpc_router_proto_rawDescGZIP(), []int{36} } func (x *ForwardHtlcInterceptResponse) GetIncomingCircuitKey() *CircuitKey { @@ -3283,7 +3082,7 @@ type UpdateChanStatusRequest struct { func (x *UpdateChanStatusRequest) Reset() { *x = UpdateChanStatusRequest{} - mi := &file_routerrpc_router_proto_msgTypes[39] + mi := &file_routerrpc_router_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3295,7 +3094,7 @@ func (x *UpdateChanStatusRequest) String() string { func (*UpdateChanStatusRequest) ProtoMessage() {} func (x *UpdateChanStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[39] + mi := &file_routerrpc_router_proto_msgTypes[37] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3308,7 +3107,7 @@ func (x *UpdateChanStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateChanStatusRequest.ProtoReflect.Descriptor instead. func (*UpdateChanStatusRequest) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{39} + return file_routerrpc_router_proto_rawDescGZIP(), []int{37} } func (x *UpdateChanStatusRequest) GetChanPoint() *lnrpc.ChannelPoint { @@ -3333,7 +3132,7 @@ type UpdateChanStatusResponse struct { func (x *UpdateChanStatusResponse) Reset() { *x = UpdateChanStatusResponse{} - mi := &file_routerrpc_router_proto_msgTypes[40] + mi := &file_routerrpc_router_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3345,7 +3144,7 @@ func (x *UpdateChanStatusResponse) String() string { func (*UpdateChanStatusResponse) ProtoMessage() {} func (x *UpdateChanStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[40] + mi := &file_routerrpc_router_proto_msgTypes[38] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3358,7 +3157,7 @@ func (x *UpdateChanStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateChanStatusResponse.ProtoReflect.Descriptor instead. func (*UpdateChanStatusResponse) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{40} + return file_routerrpc_router_proto_rawDescGZIP(), []int{38} } type AddAliasesRequest struct { @@ -3370,7 +3169,7 @@ type AddAliasesRequest struct { func (x *AddAliasesRequest) Reset() { *x = AddAliasesRequest{} - mi := &file_routerrpc_router_proto_msgTypes[41] + mi := &file_routerrpc_router_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3382,7 +3181,7 @@ func (x *AddAliasesRequest) String() string { func (*AddAliasesRequest) ProtoMessage() {} func (x *AddAliasesRequest) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[41] + mi := &file_routerrpc_router_proto_msgTypes[39] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3395,7 +3194,7 @@ func (x *AddAliasesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AddAliasesRequest.ProtoReflect.Descriptor instead. func (*AddAliasesRequest) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{41} + return file_routerrpc_router_proto_rawDescGZIP(), []int{39} } func (x *AddAliasesRequest) GetAliasMaps() []*lnrpc.AliasMap { @@ -3414,7 +3213,7 @@ type AddAliasesResponse struct { func (x *AddAliasesResponse) Reset() { *x = AddAliasesResponse{} - mi := &file_routerrpc_router_proto_msgTypes[42] + mi := &file_routerrpc_router_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3426,7 +3225,7 @@ func (x *AddAliasesResponse) String() string { func (*AddAliasesResponse) ProtoMessage() {} func (x *AddAliasesResponse) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[42] + mi := &file_routerrpc_router_proto_msgTypes[40] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3439,7 +3238,7 @@ func (x *AddAliasesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AddAliasesResponse.ProtoReflect.Descriptor instead. func (*AddAliasesResponse) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{42} + return file_routerrpc_router_proto_rawDescGZIP(), []int{40} } func (x *AddAliasesResponse) GetAliasMaps() []*lnrpc.AliasMap { @@ -3458,7 +3257,7 @@ type DeleteAliasesRequest struct { func (x *DeleteAliasesRequest) Reset() { *x = DeleteAliasesRequest{} - mi := &file_routerrpc_router_proto_msgTypes[43] + mi := &file_routerrpc_router_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3470,7 +3269,7 @@ func (x *DeleteAliasesRequest) String() string { func (*DeleteAliasesRequest) ProtoMessage() {} func (x *DeleteAliasesRequest) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[43] + mi := &file_routerrpc_router_proto_msgTypes[41] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3483,7 +3282,7 @@ func (x *DeleteAliasesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteAliasesRequest.ProtoReflect.Descriptor instead. func (*DeleteAliasesRequest) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{43} + return file_routerrpc_router_proto_rawDescGZIP(), []int{41} } func (x *DeleteAliasesRequest) GetAliasMaps() []*lnrpc.AliasMap { @@ -3502,7 +3301,7 @@ type DeleteAliasesResponse struct { func (x *DeleteAliasesResponse) Reset() { *x = DeleteAliasesResponse{} - mi := &file_routerrpc_router_proto_msgTypes[44] + mi := &file_routerrpc_router_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3514,7 +3313,7 @@ func (x *DeleteAliasesResponse) String() string { func (*DeleteAliasesResponse) ProtoMessage() {} func (x *DeleteAliasesResponse) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[44] + mi := &file_routerrpc_router_proto_msgTypes[42] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3527,7 +3326,7 @@ func (x *DeleteAliasesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteAliasesResponse.ProtoReflect.Descriptor instead. func (*DeleteAliasesResponse) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{44} + return file_routerrpc_router_proto_rawDescGZIP(), []int{42} } func (x *DeleteAliasesResponse) GetAliasMaps() []*lnrpc.AliasMap { @@ -3547,7 +3346,7 @@ type FindBaseAliasRequest struct { func (x *FindBaseAliasRequest) Reset() { *x = FindBaseAliasRequest{} - mi := &file_routerrpc_router_proto_msgTypes[45] + mi := &file_routerrpc_router_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3559,7 +3358,7 @@ func (x *FindBaseAliasRequest) String() string { func (*FindBaseAliasRequest) ProtoMessage() {} func (x *FindBaseAliasRequest) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[45] + mi := &file_routerrpc_router_proto_msgTypes[43] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3572,7 +3371,7 @@ func (x *FindBaseAliasRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use FindBaseAliasRequest.ProtoReflect.Descriptor instead. func (*FindBaseAliasRequest) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{45} + return file_routerrpc_router_proto_rawDescGZIP(), []int{43} } func (x *FindBaseAliasRequest) GetAlias() uint64 { @@ -3592,7 +3391,7 @@ type FindBaseAliasResponse struct { func (x *FindBaseAliasResponse) Reset() { *x = FindBaseAliasResponse{} - mi := &file_routerrpc_router_proto_msgTypes[46] + mi := &file_routerrpc_router_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3604,7 +3403,7 @@ func (x *FindBaseAliasResponse) String() string { func (*FindBaseAliasResponse) ProtoMessage() {} func (x *FindBaseAliasResponse) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[46] + mi := &file_routerrpc_router_proto_msgTypes[44] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3617,7 +3416,7 @@ func (x *FindBaseAliasResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use FindBaseAliasResponse.ProtoReflect.Descriptor instead. func (*FindBaseAliasResponse) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{46} + return file_routerrpc_router_proto_rawDescGZIP(), []int{44} } func (x *FindBaseAliasResponse) GetBase() uint64 { @@ -3643,7 +3442,7 @@ type DeleteForwardingHistoryRequest struct { func (x *DeleteForwardingHistoryRequest) Reset() { *x = DeleteForwardingHistoryRequest{} - mi := &file_routerrpc_router_proto_msgTypes[47] + mi := &file_routerrpc_router_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3655,7 +3454,7 @@ func (x *DeleteForwardingHistoryRequest) String() string { func (*DeleteForwardingHistoryRequest) ProtoMessage() {} func (x *DeleteForwardingHistoryRequest) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[47] + mi := &file_routerrpc_router_proto_msgTypes[45] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3668,7 +3467,7 @@ func (x *DeleteForwardingHistoryRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteForwardingHistoryRequest.ProtoReflect.Descriptor instead. func (*DeleteForwardingHistoryRequest) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{47} + return file_routerrpc_router_proto_rawDescGZIP(), []int{45} } func (x *DeleteForwardingHistoryRequest) GetTimeSpec() isDeleteForwardingHistoryRequest_TimeSpec { @@ -3738,7 +3537,7 @@ type DeleteForwardingHistoryResponse struct { func (x *DeleteForwardingHistoryResponse) Reset() { *x = DeleteForwardingHistoryResponse{} - mi := &file_routerrpc_router_proto_msgTypes[48] + mi := &file_routerrpc_router_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3750,7 +3549,7 @@ func (x *DeleteForwardingHistoryResponse) String() string { func (*DeleteForwardingHistoryResponse) ProtoMessage() {} func (x *DeleteForwardingHistoryResponse) ProtoReflect() protoreflect.Message { - mi := &file_routerrpc_router_proto_msgTypes[48] + mi := &file_routerrpc_router_proto_msgTypes[46] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3763,7 +3562,7 @@ func (x *DeleteForwardingHistoryResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteForwardingHistoryResponse.ProtoReflect.Descriptor instead. func (*DeleteForwardingHistoryResponse) Descriptor() ([]byte, []int) { - return file_routerrpc_router_proto_rawDescGZIP(), []int{48} + return file_routerrpc_router_proto_rawDescGZIP(), []int{46} } func (x *DeleteForwardingHistoryResponse) GetEventsDeleted() uint64 { @@ -3791,7 +3590,7 @@ var File_routerrpc_router_proto protoreflect.FileDescriptor const file_routerrpc_router_proto_rawDesc = "" + "\n" + - "\x16routerrpc/router.proto\x12\trouterrpc\x1a\x0flightning.proto\"\xd1\t\n" + + "\x16routerrpc/router.proto\x12\trouterrpc\x1a\x0flightning.proto\"\xa7\t\n" + "\x12SendPaymentRequest\x12\x12\n" + "\x04dest\x18\x01 \x01(\fR\x04dest\x12\x10\n" + "\x03amt\x18\x02 \x01(\x03R\x03amt\x12!\n" + @@ -3799,8 +3598,7 @@ const file_routerrpc_router_proto_rawDesc = "" + "\x10final_cltv_delta\x18\x04 \x01(\x05R\x0efinalCltvDelta\x12'\n" + "\x0fpayment_request\x18\x05 \x01(\tR\x0epaymentRequest\x12'\n" + "\x0ftimeout_seconds\x18\x06 \x01(\x05R\x0etimeoutSeconds\x12\"\n" + - "\rfee_limit_sat\x18\a \x01(\x03R\vfeeLimitSat\x12.\n" + - "\x10outgoing_chan_id\x18\b \x01(\x04B\x04\x18\x010\x01R\x0eoutgoingChanId\x12\x1d\n" + + "\rfee_limit_sat\x18\a \x01(\x03R\vfeeLimitSat\x12\x1d\n" + "\n" + "cltv_limit\x18\t \x01(\x05R\tcltvLimit\x121\n" + "\vroute_hints\x18\n" + @@ -3828,7 +3626,7 @@ const file_routerrpc_router_proto_rawDesc = "" + "\x05value\x18\x02 \x01(\fR\x05value:\x028\x01\x1aH\n" + "\x1aFirstHopCustomRecordsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\x04R\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\fR\x05value:\x028\x01\"h\n" + + "\x05value\x18\x02 \x01(\fR\x05value:\x028\x01J\x04\b\b\x10\t\"h\n" + "\x13TrackPaymentRequest\x12!\n" + "\fpayment_hash\x18\x01 \x01(\fR\vpaymentHash\x12.\n" + "\x13no_inflight_updates\x18\x02 \x01(\bR\x11noInflightUpdates\"F\n" + @@ -3850,10 +3648,7 @@ const file_routerrpc_router_proto_rawDesc = "" + "\x18first_hop_custom_records\x18\x04 \x03(\v28.routerrpc.SendToRouteRequest.FirstHopCustomRecordsEntryR\x15firstHopCustomRecords\x1aH\n" + "\x1aFirstHopCustomRecordsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\x04R\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\fR\x05value:\x028\x01\"[\n" + - "\x13SendToRouteResponse\x12\x1a\n" + - "\bpreimage\x18\x01 \x01(\fR\bpreimage\x12(\n" + - "\afailure\x18\x02 \x01(\v2\x0e.lnrpc.FailureR\afailure\"\x1c\n" + + "\x05value\x18\x02 \x01(\fR\x05value:\x028\x01\"\x1c\n" + "\x1aResetMissionControlRequest\"\x1d\n" + "\x1bResetMissionControlResponse\"\x1c\n" + "\x1aQueryMissionControlRequest\"Q\n" + @@ -3966,11 +3761,7 @@ const file_routerrpc_router_proto_rawDesc = "" + "\x04info\x18\x01 \x01(\v2\x13.routerrpc.HtlcInfoR\x04info\x12=\n" + "\fwire_failure\x18\x02 \x01(\x0e2\x1a.lnrpc.Failure.FailureCodeR\vwireFailure\x12?\n" + "\x0efailure_detail\x18\x03 \x01(\x0e2\x18.routerrpc.FailureDetailR\rfailureDetail\x12%\n" + - "\x0efailure_string\x18\x04 \x01(\tR\rfailureString\"\x8a\x01\n" + - "\rPaymentStatus\x12-\n" + - "\x05state\x18\x01 \x01(\x0e2\x17.routerrpc.PaymentStateR\x05state\x12\x1a\n" + - "\bpreimage\x18\x02 \x01(\fR\bpreimage\x12(\n" + - "\x05htlcs\x18\x04 \x03(\v2\x12.lnrpc.HTLCAttemptR\x05htlcsJ\x04\b\x03\x10\x04\">\n" + + "\x0efailure_string\x18\x04 \x01(\tR\rfailureString\">\n" + "\n" + "CircuitKey\x12\x17\n" + "\achan_id\x18\x01 \x01(\x04R\x06chanId\x12\x17\n" + @@ -4065,15 +3856,7 @@ const file_routerrpc_router_proto_rawDesc = "" + "\x1aHTLC_INVOICE_TYPE_MISMATCH\x10\x18\x12\r\n" + "\tAMP_ERROR\x10\x19\x12\x16\n" + "\x12AMP_RECONSTRUCTION\x10\x1a\x12\x1e\n" + - "\x1aEXTERNAL_VALIDATION_FAILED\x10\x1b*\xae\x01\n" + - "\fPaymentState\x12\r\n" + - "\tIN_FLIGHT\x10\x00\x12\r\n" + - "\tSUCCEEDED\x10\x01\x12\x12\n" + - "\x0eFAILED_TIMEOUT\x10\x02\x12\x13\n" + - "\x0fFAILED_NO_ROUTE\x10\x03\x12\x10\n" + - "\fFAILED_ERROR\x10\x04\x12$\n" + - " FAILED_INCORRECT_PAYMENT_DETAILS\x10\x05\x12\x1f\n" + - "\x1bFAILED_INSUFFICIENT_BALANCE\x10\x06*Q\n" + + "\x1aEXTERNAL_VALIDATION_FAILED\x10\x1b*Q\n" + "\x18ResolveHoldForwardAction\x12\n" + "\n" + "\x06SETTLE\x10\x00\x12\b\n" + @@ -4085,13 +3868,12 @@ const file_routerrpc_router_proto_rawDesc = "" + "\n" + "\x06ENABLE\x10\x00\x12\v\n" + "\aDISABLE\x10\x01\x12\b\n" + - "\x04AUTO\x10\x022\xb8\x0f\n" + + "\x04AUTO\x10\x022\xc5\r\n" + "\x06Router\x12@\n" + "\rSendPaymentV2\x12\x1d.routerrpc.SendPaymentRequest\x1a\x0e.lnrpc.Payment0\x01\x12B\n" + "\x0eTrackPaymentV2\x12\x1e.routerrpc.TrackPaymentRequest\x1a\x0e.lnrpc.Payment0\x01\x12B\n" + "\rTrackPayments\x12\x1f.routerrpc.TrackPaymentsRequest\x1a\x0e.lnrpc.Payment0\x01\x12K\n" + - "\x10EstimateRouteFee\x12\x1a.routerrpc.RouteFeeRequest\x1a\x1b.routerrpc.RouteFeeResponse\x12Q\n" + - "\vSendToRoute\x12\x1d.routerrpc.SendToRouteRequest\x1a\x1e.routerrpc.SendToRouteResponse\"\x03\x88\x02\x01\x12B\n" + + "\x10EstimateRouteFee\x12\x1a.routerrpc.RouteFeeRequest\x1a\x1b.routerrpc.RouteFeeResponse\x12B\n" + "\rSendToRouteV2\x12\x1d.routerrpc.SendToRouteRequest\x1a\x12.lnrpc.HTLCAttempt\x12d\n" + "\x13ResetMissionControl\x12%.routerrpc.ResetMissionControlRequest\x1a&.routerrpc.ResetMissionControlResponse\x12d\n" + "\x13QueryMissionControl\x12%.routerrpc.QueryMissionControlRequest\x1a&.routerrpc.QueryMissionControlResponse\x12j\n" + @@ -4101,9 +3883,7 @@ const file_routerrpc_router_proto_rawDesc = "" + "\x10QueryProbability\x12\".routerrpc.QueryProbabilityRequest\x1a#.routerrpc.QueryProbabilityResponse\x12I\n" + "\n" + "BuildRoute\x12\x1c.routerrpc.BuildRouteRequest\x1a\x1d.routerrpc.BuildRouteResponse\x12T\n" + - "\x13SubscribeHtlcEvents\x12%.routerrpc.SubscribeHtlcEventsRequest\x1a\x14.routerrpc.HtlcEvent0\x01\x12M\n" + - "\vSendPayment\x12\x1d.routerrpc.SendPaymentRequest\x1a\x18.routerrpc.PaymentStatus\"\x03\x88\x02\x010\x01\x12O\n" + - "\fTrackPayment\x12\x1e.routerrpc.TrackPaymentRequest\x1a\x18.routerrpc.PaymentStatus\"\x03\x88\x02\x010\x01\x12f\n" + + "\x13SubscribeHtlcEvents\x12%.routerrpc.SubscribeHtlcEventsRequest\x1a\x14.routerrpc.HtlcEvent0\x01\x12f\n" + "\x0fHtlcInterceptor\x12'.routerrpc.ForwardHtlcInterceptResponse\x1a&.routerrpc.ForwardHtlcInterceptRequest(\x010\x01\x12[\n" + "\x10UpdateChanStatus\x12\".routerrpc.UpdateChanStatusRequest\x1a#.routerrpc.UpdateChanStatusResponse\x12S\n" + "\x14XAddLocalChanAliases\x12\x1c.routerrpc.AddAliasesRequest\x1a\x1d.routerrpc.AddAliasesResponse\x12\\\n" + @@ -4123,177 +3903,164 @@ func file_routerrpc_router_proto_rawDescGZIP() []byte { return file_routerrpc_router_proto_rawDescData } -var file_routerrpc_router_proto_enumTypes = make([]protoimpl.EnumInfo, 6) -var file_routerrpc_router_proto_msgTypes = make([]protoimpl.MessageInfo, 56) +var file_routerrpc_router_proto_enumTypes = make([]protoimpl.EnumInfo, 5) +var file_routerrpc_router_proto_msgTypes = make([]protoimpl.MessageInfo, 54) var file_routerrpc_router_proto_goTypes = []any{ (FailureDetail)(0), // 0: routerrpc.FailureDetail - (PaymentState)(0), // 1: routerrpc.PaymentState - (ResolveHoldForwardAction)(0), // 2: routerrpc.ResolveHoldForwardAction - (ChanStatusAction)(0), // 3: routerrpc.ChanStatusAction - (MissionControlConfig_ProbabilityModel)(0), // 4: routerrpc.MissionControlConfig.ProbabilityModel - (HtlcEvent_EventType)(0), // 5: routerrpc.HtlcEvent.EventType - (*SendPaymentRequest)(nil), // 6: routerrpc.SendPaymentRequest - (*TrackPaymentRequest)(nil), // 7: routerrpc.TrackPaymentRequest - (*TrackPaymentsRequest)(nil), // 8: routerrpc.TrackPaymentsRequest - (*RouteFeeRequest)(nil), // 9: routerrpc.RouteFeeRequest - (*RouteFeeResponse)(nil), // 10: routerrpc.RouteFeeResponse - (*SendToRouteRequest)(nil), // 11: routerrpc.SendToRouteRequest - (*SendToRouteResponse)(nil), // 12: routerrpc.SendToRouteResponse - (*ResetMissionControlRequest)(nil), // 13: routerrpc.ResetMissionControlRequest - (*ResetMissionControlResponse)(nil), // 14: routerrpc.ResetMissionControlResponse - (*QueryMissionControlRequest)(nil), // 15: routerrpc.QueryMissionControlRequest - (*QueryMissionControlResponse)(nil), // 16: routerrpc.QueryMissionControlResponse - (*XImportMissionControlRequest)(nil), // 17: routerrpc.XImportMissionControlRequest - (*XImportMissionControlResponse)(nil), // 18: routerrpc.XImportMissionControlResponse - (*PairHistory)(nil), // 19: routerrpc.PairHistory - (*PairData)(nil), // 20: routerrpc.PairData - (*GetMissionControlConfigRequest)(nil), // 21: routerrpc.GetMissionControlConfigRequest - (*GetMissionControlConfigResponse)(nil), // 22: routerrpc.GetMissionControlConfigResponse - (*SetMissionControlConfigRequest)(nil), // 23: routerrpc.SetMissionControlConfigRequest - (*SetMissionControlConfigResponse)(nil), // 24: routerrpc.SetMissionControlConfigResponse - (*MissionControlConfig)(nil), // 25: routerrpc.MissionControlConfig - (*BimodalParameters)(nil), // 26: routerrpc.BimodalParameters - (*AprioriParameters)(nil), // 27: routerrpc.AprioriParameters - (*QueryProbabilityRequest)(nil), // 28: routerrpc.QueryProbabilityRequest - (*QueryProbabilityResponse)(nil), // 29: routerrpc.QueryProbabilityResponse - (*BuildRouteRequest)(nil), // 30: routerrpc.BuildRouteRequest - (*BuildRouteResponse)(nil), // 31: routerrpc.BuildRouteResponse - (*SubscribeHtlcEventsRequest)(nil), // 32: routerrpc.SubscribeHtlcEventsRequest - (*HtlcEvent)(nil), // 33: routerrpc.HtlcEvent - (*HtlcInfo)(nil), // 34: routerrpc.HtlcInfo - (*ForwardEvent)(nil), // 35: routerrpc.ForwardEvent - (*ForwardFailEvent)(nil), // 36: routerrpc.ForwardFailEvent - (*SettleEvent)(nil), // 37: routerrpc.SettleEvent - (*FinalHtlcEvent)(nil), // 38: routerrpc.FinalHtlcEvent - (*SubscribedEvent)(nil), // 39: routerrpc.SubscribedEvent - (*LinkFailEvent)(nil), // 40: routerrpc.LinkFailEvent - (*PaymentStatus)(nil), // 41: routerrpc.PaymentStatus - (*CircuitKey)(nil), // 42: routerrpc.CircuitKey - (*ForwardHtlcInterceptRequest)(nil), // 43: routerrpc.ForwardHtlcInterceptRequest - (*ForwardHtlcInterceptResponse)(nil), // 44: routerrpc.ForwardHtlcInterceptResponse - (*UpdateChanStatusRequest)(nil), // 45: routerrpc.UpdateChanStatusRequest - (*UpdateChanStatusResponse)(nil), // 46: routerrpc.UpdateChanStatusResponse - (*AddAliasesRequest)(nil), // 47: routerrpc.AddAliasesRequest - (*AddAliasesResponse)(nil), // 48: routerrpc.AddAliasesResponse - (*DeleteAliasesRequest)(nil), // 49: routerrpc.DeleteAliasesRequest - (*DeleteAliasesResponse)(nil), // 50: routerrpc.DeleteAliasesResponse - (*FindBaseAliasRequest)(nil), // 51: routerrpc.FindBaseAliasRequest - (*FindBaseAliasResponse)(nil), // 52: routerrpc.FindBaseAliasResponse - (*DeleteForwardingHistoryRequest)(nil), // 53: routerrpc.DeleteForwardingHistoryRequest - (*DeleteForwardingHistoryResponse)(nil), // 54: routerrpc.DeleteForwardingHistoryResponse - nil, // 55: routerrpc.SendPaymentRequest.DestCustomRecordsEntry - nil, // 56: routerrpc.SendPaymentRequest.FirstHopCustomRecordsEntry - nil, // 57: routerrpc.SendToRouteRequest.FirstHopCustomRecordsEntry - nil, // 58: routerrpc.BuildRouteRequest.FirstHopCustomRecordsEntry - nil, // 59: routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry - nil, // 60: routerrpc.ForwardHtlcInterceptRequest.InWireCustomRecordsEntry - nil, // 61: routerrpc.ForwardHtlcInterceptResponse.OutWireCustomRecordsEntry - (*lnrpc.RouteHint)(nil), // 62: lnrpc.RouteHint - (lnrpc.FeatureBit)(0), // 63: lnrpc.FeatureBit - (lnrpc.PaymentFailureReason)(0), // 64: lnrpc.PaymentFailureReason - (*lnrpc.Route)(nil), // 65: lnrpc.Route - (*lnrpc.Failure)(nil), // 66: lnrpc.Failure - (lnrpc.Failure_FailureCode)(0), // 67: lnrpc.Failure.FailureCode - (*lnrpc.HTLCAttempt)(nil), // 68: lnrpc.HTLCAttempt - (*lnrpc.ChannelPoint)(nil), // 69: lnrpc.ChannelPoint - (*lnrpc.AliasMap)(nil), // 70: lnrpc.AliasMap - (*lnrpc.Payment)(nil), // 71: lnrpc.Payment + (ResolveHoldForwardAction)(0), // 1: routerrpc.ResolveHoldForwardAction + (ChanStatusAction)(0), // 2: routerrpc.ChanStatusAction + (MissionControlConfig_ProbabilityModel)(0), // 3: routerrpc.MissionControlConfig.ProbabilityModel + (HtlcEvent_EventType)(0), // 4: routerrpc.HtlcEvent.EventType + (*SendPaymentRequest)(nil), // 5: routerrpc.SendPaymentRequest + (*TrackPaymentRequest)(nil), // 6: routerrpc.TrackPaymentRequest + (*TrackPaymentsRequest)(nil), // 7: routerrpc.TrackPaymentsRequest + (*RouteFeeRequest)(nil), // 8: routerrpc.RouteFeeRequest + (*RouteFeeResponse)(nil), // 9: routerrpc.RouteFeeResponse + (*SendToRouteRequest)(nil), // 10: routerrpc.SendToRouteRequest + (*ResetMissionControlRequest)(nil), // 11: routerrpc.ResetMissionControlRequest + (*ResetMissionControlResponse)(nil), // 12: routerrpc.ResetMissionControlResponse + (*QueryMissionControlRequest)(nil), // 13: routerrpc.QueryMissionControlRequest + (*QueryMissionControlResponse)(nil), // 14: routerrpc.QueryMissionControlResponse + (*XImportMissionControlRequest)(nil), // 15: routerrpc.XImportMissionControlRequest + (*XImportMissionControlResponse)(nil), // 16: routerrpc.XImportMissionControlResponse + (*PairHistory)(nil), // 17: routerrpc.PairHistory + (*PairData)(nil), // 18: routerrpc.PairData + (*GetMissionControlConfigRequest)(nil), // 19: routerrpc.GetMissionControlConfigRequest + (*GetMissionControlConfigResponse)(nil), // 20: routerrpc.GetMissionControlConfigResponse + (*SetMissionControlConfigRequest)(nil), // 21: routerrpc.SetMissionControlConfigRequest + (*SetMissionControlConfigResponse)(nil), // 22: routerrpc.SetMissionControlConfigResponse + (*MissionControlConfig)(nil), // 23: routerrpc.MissionControlConfig + (*BimodalParameters)(nil), // 24: routerrpc.BimodalParameters + (*AprioriParameters)(nil), // 25: routerrpc.AprioriParameters + (*QueryProbabilityRequest)(nil), // 26: routerrpc.QueryProbabilityRequest + (*QueryProbabilityResponse)(nil), // 27: routerrpc.QueryProbabilityResponse + (*BuildRouteRequest)(nil), // 28: routerrpc.BuildRouteRequest + (*BuildRouteResponse)(nil), // 29: routerrpc.BuildRouteResponse + (*SubscribeHtlcEventsRequest)(nil), // 30: routerrpc.SubscribeHtlcEventsRequest + (*HtlcEvent)(nil), // 31: routerrpc.HtlcEvent + (*HtlcInfo)(nil), // 32: routerrpc.HtlcInfo + (*ForwardEvent)(nil), // 33: routerrpc.ForwardEvent + (*ForwardFailEvent)(nil), // 34: routerrpc.ForwardFailEvent + (*SettleEvent)(nil), // 35: routerrpc.SettleEvent + (*FinalHtlcEvent)(nil), // 36: routerrpc.FinalHtlcEvent + (*SubscribedEvent)(nil), // 37: routerrpc.SubscribedEvent + (*LinkFailEvent)(nil), // 38: routerrpc.LinkFailEvent + (*CircuitKey)(nil), // 39: routerrpc.CircuitKey + (*ForwardHtlcInterceptRequest)(nil), // 40: routerrpc.ForwardHtlcInterceptRequest + (*ForwardHtlcInterceptResponse)(nil), // 41: routerrpc.ForwardHtlcInterceptResponse + (*UpdateChanStatusRequest)(nil), // 42: routerrpc.UpdateChanStatusRequest + (*UpdateChanStatusResponse)(nil), // 43: routerrpc.UpdateChanStatusResponse + (*AddAliasesRequest)(nil), // 44: routerrpc.AddAliasesRequest + (*AddAliasesResponse)(nil), // 45: routerrpc.AddAliasesResponse + (*DeleteAliasesRequest)(nil), // 46: routerrpc.DeleteAliasesRequest + (*DeleteAliasesResponse)(nil), // 47: routerrpc.DeleteAliasesResponse + (*FindBaseAliasRequest)(nil), // 48: routerrpc.FindBaseAliasRequest + (*FindBaseAliasResponse)(nil), // 49: routerrpc.FindBaseAliasResponse + (*DeleteForwardingHistoryRequest)(nil), // 50: routerrpc.DeleteForwardingHistoryRequest + (*DeleteForwardingHistoryResponse)(nil), // 51: routerrpc.DeleteForwardingHistoryResponse + nil, // 52: routerrpc.SendPaymentRequest.DestCustomRecordsEntry + nil, // 53: routerrpc.SendPaymentRequest.FirstHopCustomRecordsEntry + nil, // 54: routerrpc.SendToRouteRequest.FirstHopCustomRecordsEntry + nil, // 55: routerrpc.BuildRouteRequest.FirstHopCustomRecordsEntry + nil, // 56: routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry + nil, // 57: routerrpc.ForwardHtlcInterceptRequest.InWireCustomRecordsEntry + nil, // 58: routerrpc.ForwardHtlcInterceptResponse.OutWireCustomRecordsEntry + (*lnrpc.RouteHint)(nil), // 59: lnrpc.RouteHint + (lnrpc.FeatureBit)(0), // 60: lnrpc.FeatureBit + (lnrpc.PaymentFailureReason)(0), // 61: lnrpc.PaymentFailureReason + (*lnrpc.Route)(nil), // 62: lnrpc.Route + (lnrpc.Failure_FailureCode)(0), // 63: lnrpc.Failure.FailureCode + (*lnrpc.ChannelPoint)(nil), // 64: lnrpc.ChannelPoint + (*lnrpc.AliasMap)(nil), // 65: lnrpc.AliasMap + (*lnrpc.Payment)(nil), // 66: lnrpc.Payment + (*lnrpc.HTLCAttempt)(nil), // 67: lnrpc.HTLCAttempt } var file_routerrpc_router_proto_depIdxs = []int32{ - 62, // 0: routerrpc.SendPaymentRequest.route_hints:type_name -> lnrpc.RouteHint - 55, // 1: routerrpc.SendPaymentRequest.dest_custom_records:type_name -> routerrpc.SendPaymentRequest.DestCustomRecordsEntry - 63, // 2: routerrpc.SendPaymentRequest.dest_features:type_name -> lnrpc.FeatureBit - 56, // 3: routerrpc.SendPaymentRequest.first_hop_custom_records:type_name -> routerrpc.SendPaymentRequest.FirstHopCustomRecordsEntry - 64, // 4: routerrpc.RouteFeeResponse.failure_reason:type_name -> lnrpc.PaymentFailureReason - 65, // 5: routerrpc.SendToRouteRequest.route:type_name -> lnrpc.Route - 57, // 6: routerrpc.SendToRouteRequest.first_hop_custom_records:type_name -> routerrpc.SendToRouteRequest.FirstHopCustomRecordsEntry - 66, // 7: routerrpc.SendToRouteResponse.failure:type_name -> lnrpc.Failure - 19, // 8: routerrpc.QueryMissionControlResponse.pairs:type_name -> routerrpc.PairHistory - 19, // 9: routerrpc.XImportMissionControlRequest.pairs:type_name -> routerrpc.PairHistory - 20, // 10: routerrpc.PairHistory.history:type_name -> routerrpc.PairData - 25, // 11: routerrpc.GetMissionControlConfigResponse.config:type_name -> routerrpc.MissionControlConfig - 25, // 12: routerrpc.SetMissionControlConfigRequest.config:type_name -> routerrpc.MissionControlConfig - 4, // 13: routerrpc.MissionControlConfig.model:type_name -> routerrpc.MissionControlConfig.ProbabilityModel - 27, // 14: routerrpc.MissionControlConfig.apriori:type_name -> routerrpc.AprioriParameters - 26, // 15: routerrpc.MissionControlConfig.bimodal:type_name -> routerrpc.BimodalParameters - 20, // 16: routerrpc.QueryProbabilityResponse.history:type_name -> routerrpc.PairData - 58, // 17: routerrpc.BuildRouteRequest.first_hop_custom_records:type_name -> routerrpc.BuildRouteRequest.FirstHopCustomRecordsEntry - 65, // 18: routerrpc.BuildRouteResponse.route:type_name -> lnrpc.Route - 5, // 19: routerrpc.HtlcEvent.event_type:type_name -> routerrpc.HtlcEvent.EventType - 35, // 20: routerrpc.HtlcEvent.forward_event:type_name -> routerrpc.ForwardEvent - 36, // 21: routerrpc.HtlcEvent.forward_fail_event:type_name -> routerrpc.ForwardFailEvent - 37, // 22: routerrpc.HtlcEvent.settle_event:type_name -> routerrpc.SettleEvent - 40, // 23: routerrpc.HtlcEvent.link_fail_event:type_name -> routerrpc.LinkFailEvent - 39, // 24: routerrpc.HtlcEvent.subscribed_event:type_name -> routerrpc.SubscribedEvent - 38, // 25: routerrpc.HtlcEvent.final_htlc_event:type_name -> routerrpc.FinalHtlcEvent - 34, // 26: routerrpc.ForwardEvent.info:type_name -> routerrpc.HtlcInfo - 34, // 27: routerrpc.LinkFailEvent.info:type_name -> routerrpc.HtlcInfo - 67, // 28: routerrpc.LinkFailEvent.wire_failure:type_name -> lnrpc.Failure.FailureCode - 0, // 29: routerrpc.LinkFailEvent.failure_detail:type_name -> routerrpc.FailureDetail - 1, // 30: routerrpc.PaymentStatus.state:type_name -> routerrpc.PaymentState - 68, // 31: routerrpc.PaymentStatus.htlcs:type_name -> lnrpc.HTLCAttempt - 42, // 32: routerrpc.ForwardHtlcInterceptRequest.incoming_circuit_key:type_name -> routerrpc.CircuitKey - 59, // 33: routerrpc.ForwardHtlcInterceptRequest.custom_records:type_name -> routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry - 60, // 34: routerrpc.ForwardHtlcInterceptRequest.in_wire_custom_records:type_name -> routerrpc.ForwardHtlcInterceptRequest.InWireCustomRecordsEntry - 42, // 35: routerrpc.ForwardHtlcInterceptResponse.incoming_circuit_key:type_name -> routerrpc.CircuitKey - 2, // 36: routerrpc.ForwardHtlcInterceptResponse.action:type_name -> routerrpc.ResolveHoldForwardAction - 67, // 37: routerrpc.ForwardHtlcInterceptResponse.failure_code:type_name -> lnrpc.Failure.FailureCode - 61, // 38: routerrpc.ForwardHtlcInterceptResponse.out_wire_custom_records:type_name -> routerrpc.ForwardHtlcInterceptResponse.OutWireCustomRecordsEntry - 69, // 39: routerrpc.UpdateChanStatusRequest.chan_point:type_name -> lnrpc.ChannelPoint - 3, // 40: routerrpc.UpdateChanStatusRequest.action:type_name -> routerrpc.ChanStatusAction - 70, // 41: routerrpc.AddAliasesRequest.alias_maps:type_name -> lnrpc.AliasMap - 70, // 42: routerrpc.AddAliasesResponse.alias_maps:type_name -> lnrpc.AliasMap - 70, // 43: routerrpc.DeleteAliasesRequest.alias_maps:type_name -> lnrpc.AliasMap - 70, // 44: routerrpc.DeleteAliasesResponse.alias_maps:type_name -> lnrpc.AliasMap - 6, // 45: routerrpc.Router.SendPaymentV2:input_type -> routerrpc.SendPaymentRequest - 7, // 46: routerrpc.Router.TrackPaymentV2:input_type -> routerrpc.TrackPaymentRequest - 8, // 47: routerrpc.Router.TrackPayments:input_type -> routerrpc.TrackPaymentsRequest - 9, // 48: routerrpc.Router.EstimateRouteFee:input_type -> routerrpc.RouteFeeRequest - 11, // 49: routerrpc.Router.SendToRoute:input_type -> routerrpc.SendToRouteRequest - 11, // 50: routerrpc.Router.SendToRouteV2:input_type -> routerrpc.SendToRouteRequest - 13, // 51: routerrpc.Router.ResetMissionControl:input_type -> routerrpc.ResetMissionControlRequest - 15, // 52: routerrpc.Router.QueryMissionControl:input_type -> routerrpc.QueryMissionControlRequest - 17, // 53: routerrpc.Router.XImportMissionControl:input_type -> routerrpc.XImportMissionControlRequest - 21, // 54: routerrpc.Router.GetMissionControlConfig:input_type -> routerrpc.GetMissionControlConfigRequest - 23, // 55: routerrpc.Router.SetMissionControlConfig:input_type -> routerrpc.SetMissionControlConfigRequest - 28, // 56: routerrpc.Router.QueryProbability:input_type -> routerrpc.QueryProbabilityRequest - 30, // 57: routerrpc.Router.BuildRoute:input_type -> routerrpc.BuildRouteRequest - 32, // 58: routerrpc.Router.SubscribeHtlcEvents:input_type -> routerrpc.SubscribeHtlcEventsRequest - 6, // 59: routerrpc.Router.SendPayment:input_type -> routerrpc.SendPaymentRequest - 7, // 60: routerrpc.Router.TrackPayment:input_type -> routerrpc.TrackPaymentRequest - 44, // 61: routerrpc.Router.HtlcInterceptor:input_type -> routerrpc.ForwardHtlcInterceptResponse - 45, // 62: routerrpc.Router.UpdateChanStatus:input_type -> routerrpc.UpdateChanStatusRequest - 47, // 63: routerrpc.Router.XAddLocalChanAliases:input_type -> routerrpc.AddAliasesRequest - 49, // 64: routerrpc.Router.XDeleteLocalChanAliases:input_type -> routerrpc.DeleteAliasesRequest - 51, // 65: routerrpc.Router.XFindBaseLocalChanAlias:input_type -> routerrpc.FindBaseAliasRequest - 53, // 66: routerrpc.Router.DeleteForwardingHistory:input_type -> routerrpc.DeleteForwardingHistoryRequest - 71, // 67: routerrpc.Router.SendPaymentV2:output_type -> lnrpc.Payment - 71, // 68: routerrpc.Router.TrackPaymentV2:output_type -> lnrpc.Payment - 71, // 69: routerrpc.Router.TrackPayments:output_type -> lnrpc.Payment - 10, // 70: routerrpc.Router.EstimateRouteFee:output_type -> routerrpc.RouteFeeResponse - 12, // 71: routerrpc.Router.SendToRoute:output_type -> routerrpc.SendToRouteResponse - 68, // 72: routerrpc.Router.SendToRouteV2:output_type -> lnrpc.HTLCAttempt - 14, // 73: routerrpc.Router.ResetMissionControl:output_type -> routerrpc.ResetMissionControlResponse - 16, // 74: routerrpc.Router.QueryMissionControl:output_type -> routerrpc.QueryMissionControlResponse - 18, // 75: routerrpc.Router.XImportMissionControl:output_type -> routerrpc.XImportMissionControlResponse - 22, // 76: routerrpc.Router.GetMissionControlConfig:output_type -> routerrpc.GetMissionControlConfigResponse - 24, // 77: routerrpc.Router.SetMissionControlConfig:output_type -> routerrpc.SetMissionControlConfigResponse - 29, // 78: routerrpc.Router.QueryProbability:output_type -> routerrpc.QueryProbabilityResponse - 31, // 79: routerrpc.Router.BuildRoute:output_type -> routerrpc.BuildRouteResponse - 33, // 80: routerrpc.Router.SubscribeHtlcEvents:output_type -> routerrpc.HtlcEvent - 41, // 81: routerrpc.Router.SendPayment:output_type -> routerrpc.PaymentStatus - 41, // 82: routerrpc.Router.TrackPayment:output_type -> routerrpc.PaymentStatus - 43, // 83: routerrpc.Router.HtlcInterceptor:output_type -> routerrpc.ForwardHtlcInterceptRequest - 46, // 84: routerrpc.Router.UpdateChanStatus:output_type -> routerrpc.UpdateChanStatusResponse - 48, // 85: routerrpc.Router.XAddLocalChanAliases:output_type -> routerrpc.AddAliasesResponse - 50, // 86: routerrpc.Router.XDeleteLocalChanAliases:output_type -> routerrpc.DeleteAliasesResponse - 52, // 87: routerrpc.Router.XFindBaseLocalChanAlias:output_type -> routerrpc.FindBaseAliasResponse - 54, // 88: routerrpc.Router.DeleteForwardingHistory:output_type -> routerrpc.DeleteForwardingHistoryResponse - 67, // [67:89] is the sub-list for method output_type - 45, // [45:67] is the sub-list for method input_type - 45, // [45:45] is the sub-list for extension type_name - 45, // [45:45] is the sub-list for extension extendee - 0, // [0:45] is the sub-list for field type_name + 59, // 0: routerrpc.SendPaymentRequest.route_hints:type_name -> lnrpc.RouteHint + 52, // 1: routerrpc.SendPaymentRequest.dest_custom_records:type_name -> routerrpc.SendPaymentRequest.DestCustomRecordsEntry + 60, // 2: routerrpc.SendPaymentRequest.dest_features:type_name -> lnrpc.FeatureBit + 53, // 3: routerrpc.SendPaymentRequest.first_hop_custom_records:type_name -> routerrpc.SendPaymentRequest.FirstHopCustomRecordsEntry + 61, // 4: routerrpc.RouteFeeResponse.failure_reason:type_name -> lnrpc.PaymentFailureReason + 62, // 5: routerrpc.SendToRouteRequest.route:type_name -> lnrpc.Route + 54, // 6: routerrpc.SendToRouteRequest.first_hop_custom_records:type_name -> routerrpc.SendToRouteRequest.FirstHopCustomRecordsEntry + 17, // 7: routerrpc.QueryMissionControlResponse.pairs:type_name -> routerrpc.PairHistory + 17, // 8: routerrpc.XImportMissionControlRequest.pairs:type_name -> routerrpc.PairHistory + 18, // 9: routerrpc.PairHistory.history:type_name -> routerrpc.PairData + 23, // 10: routerrpc.GetMissionControlConfigResponse.config:type_name -> routerrpc.MissionControlConfig + 23, // 11: routerrpc.SetMissionControlConfigRequest.config:type_name -> routerrpc.MissionControlConfig + 3, // 12: routerrpc.MissionControlConfig.model:type_name -> routerrpc.MissionControlConfig.ProbabilityModel + 25, // 13: routerrpc.MissionControlConfig.apriori:type_name -> routerrpc.AprioriParameters + 24, // 14: routerrpc.MissionControlConfig.bimodal:type_name -> routerrpc.BimodalParameters + 18, // 15: routerrpc.QueryProbabilityResponse.history:type_name -> routerrpc.PairData + 55, // 16: routerrpc.BuildRouteRequest.first_hop_custom_records:type_name -> routerrpc.BuildRouteRequest.FirstHopCustomRecordsEntry + 62, // 17: routerrpc.BuildRouteResponse.route:type_name -> lnrpc.Route + 4, // 18: routerrpc.HtlcEvent.event_type:type_name -> routerrpc.HtlcEvent.EventType + 33, // 19: routerrpc.HtlcEvent.forward_event:type_name -> routerrpc.ForwardEvent + 34, // 20: routerrpc.HtlcEvent.forward_fail_event:type_name -> routerrpc.ForwardFailEvent + 35, // 21: routerrpc.HtlcEvent.settle_event:type_name -> routerrpc.SettleEvent + 38, // 22: routerrpc.HtlcEvent.link_fail_event:type_name -> routerrpc.LinkFailEvent + 37, // 23: routerrpc.HtlcEvent.subscribed_event:type_name -> routerrpc.SubscribedEvent + 36, // 24: routerrpc.HtlcEvent.final_htlc_event:type_name -> routerrpc.FinalHtlcEvent + 32, // 25: routerrpc.ForwardEvent.info:type_name -> routerrpc.HtlcInfo + 32, // 26: routerrpc.LinkFailEvent.info:type_name -> routerrpc.HtlcInfo + 63, // 27: routerrpc.LinkFailEvent.wire_failure:type_name -> lnrpc.Failure.FailureCode + 0, // 28: routerrpc.LinkFailEvent.failure_detail:type_name -> routerrpc.FailureDetail + 39, // 29: routerrpc.ForwardHtlcInterceptRequest.incoming_circuit_key:type_name -> routerrpc.CircuitKey + 56, // 30: routerrpc.ForwardHtlcInterceptRequest.custom_records:type_name -> routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry + 57, // 31: routerrpc.ForwardHtlcInterceptRequest.in_wire_custom_records:type_name -> routerrpc.ForwardHtlcInterceptRequest.InWireCustomRecordsEntry + 39, // 32: routerrpc.ForwardHtlcInterceptResponse.incoming_circuit_key:type_name -> routerrpc.CircuitKey + 1, // 33: routerrpc.ForwardHtlcInterceptResponse.action:type_name -> routerrpc.ResolveHoldForwardAction + 63, // 34: routerrpc.ForwardHtlcInterceptResponse.failure_code:type_name -> lnrpc.Failure.FailureCode + 58, // 35: routerrpc.ForwardHtlcInterceptResponse.out_wire_custom_records:type_name -> routerrpc.ForwardHtlcInterceptResponse.OutWireCustomRecordsEntry + 64, // 36: routerrpc.UpdateChanStatusRequest.chan_point:type_name -> lnrpc.ChannelPoint + 2, // 37: routerrpc.UpdateChanStatusRequest.action:type_name -> routerrpc.ChanStatusAction + 65, // 38: routerrpc.AddAliasesRequest.alias_maps:type_name -> lnrpc.AliasMap + 65, // 39: routerrpc.AddAliasesResponse.alias_maps:type_name -> lnrpc.AliasMap + 65, // 40: routerrpc.DeleteAliasesRequest.alias_maps:type_name -> lnrpc.AliasMap + 65, // 41: routerrpc.DeleteAliasesResponse.alias_maps:type_name -> lnrpc.AliasMap + 5, // 42: routerrpc.Router.SendPaymentV2:input_type -> routerrpc.SendPaymentRequest + 6, // 43: routerrpc.Router.TrackPaymentV2:input_type -> routerrpc.TrackPaymentRequest + 7, // 44: routerrpc.Router.TrackPayments:input_type -> routerrpc.TrackPaymentsRequest + 8, // 45: routerrpc.Router.EstimateRouteFee:input_type -> routerrpc.RouteFeeRequest + 10, // 46: routerrpc.Router.SendToRouteV2:input_type -> routerrpc.SendToRouteRequest + 11, // 47: routerrpc.Router.ResetMissionControl:input_type -> routerrpc.ResetMissionControlRequest + 13, // 48: routerrpc.Router.QueryMissionControl:input_type -> routerrpc.QueryMissionControlRequest + 15, // 49: routerrpc.Router.XImportMissionControl:input_type -> routerrpc.XImportMissionControlRequest + 19, // 50: routerrpc.Router.GetMissionControlConfig:input_type -> routerrpc.GetMissionControlConfigRequest + 21, // 51: routerrpc.Router.SetMissionControlConfig:input_type -> routerrpc.SetMissionControlConfigRequest + 26, // 52: routerrpc.Router.QueryProbability:input_type -> routerrpc.QueryProbabilityRequest + 28, // 53: routerrpc.Router.BuildRoute:input_type -> routerrpc.BuildRouteRequest + 30, // 54: routerrpc.Router.SubscribeHtlcEvents:input_type -> routerrpc.SubscribeHtlcEventsRequest + 41, // 55: routerrpc.Router.HtlcInterceptor:input_type -> routerrpc.ForwardHtlcInterceptResponse + 42, // 56: routerrpc.Router.UpdateChanStatus:input_type -> routerrpc.UpdateChanStatusRequest + 44, // 57: routerrpc.Router.XAddLocalChanAliases:input_type -> routerrpc.AddAliasesRequest + 46, // 58: routerrpc.Router.XDeleteLocalChanAliases:input_type -> routerrpc.DeleteAliasesRequest + 48, // 59: routerrpc.Router.XFindBaseLocalChanAlias:input_type -> routerrpc.FindBaseAliasRequest + 50, // 60: routerrpc.Router.DeleteForwardingHistory:input_type -> routerrpc.DeleteForwardingHistoryRequest + 66, // 61: routerrpc.Router.SendPaymentV2:output_type -> lnrpc.Payment + 66, // 62: routerrpc.Router.TrackPaymentV2:output_type -> lnrpc.Payment + 66, // 63: routerrpc.Router.TrackPayments:output_type -> lnrpc.Payment + 9, // 64: routerrpc.Router.EstimateRouteFee:output_type -> routerrpc.RouteFeeResponse + 67, // 65: routerrpc.Router.SendToRouteV2:output_type -> lnrpc.HTLCAttempt + 12, // 66: routerrpc.Router.ResetMissionControl:output_type -> routerrpc.ResetMissionControlResponse + 14, // 67: routerrpc.Router.QueryMissionControl:output_type -> routerrpc.QueryMissionControlResponse + 16, // 68: routerrpc.Router.XImportMissionControl:output_type -> routerrpc.XImportMissionControlResponse + 20, // 69: routerrpc.Router.GetMissionControlConfig:output_type -> routerrpc.GetMissionControlConfigResponse + 22, // 70: routerrpc.Router.SetMissionControlConfig:output_type -> routerrpc.SetMissionControlConfigResponse + 27, // 71: routerrpc.Router.QueryProbability:output_type -> routerrpc.QueryProbabilityResponse + 29, // 72: routerrpc.Router.BuildRoute:output_type -> routerrpc.BuildRouteResponse + 31, // 73: routerrpc.Router.SubscribeHtlcEvents:output_type -> routerrpc.HtlcEvent + 40, // 74: routerrpc.Router.HtlcInterceptor:output_type -> routerrpc.ForwardHtlcInterceptRequest + 43, // 75: routerrpc.Router.UpdateChanStatus:output_type -> routerrpc.UpdateChanStatusResponse + 45, // 76: routerrpc.Router.XAddLocalChanAliases:output_type -> routerrpc.AddAliasesResponse + 47, // 77: routerrpc.Router.XDeleteLocalChanAliases:output_type -> routerrpc.DeleteAliasesResponse + 49, // 78: routerrpc.Router.XFindBaseLocalChanAlias:output_type -> routerrpc.FindBaseAliasResponse + 51, // 79: routerrpc.Router.DeleteForwardingHistory:output_type -> routerrpc.DeleteForwardingHistoryResponse + 61, // [61:80] is the sub-list for method output_type + 42, // [42:61] is the sub-list for method input_type + 42, // [42:42] is the sub-list for extension type_name + 42, // [42:42] is the sub-list for extension extendee + 0, // [0:42] is the sub-list for field type_name } func init() { file_routerrpc_router_proto_init() } @@ -4301,11 +4068,11 @@ func file_routerrpc_router_proto_init() { if File_routerrpc_router_proto != nil { return } - file_routerrpc_router_proto_msgTypes[19].OneofWrappers = []any{ + file_routerrpc_router_proto_msgTypes[18].OneofWrappers = []any{ (*MissionControlConfig_Apriori)(nil), (*MissionControlConfig_Bimodal)(nil), } - file_routerrpc_router_proto_msgTypes[27].OneofWrappers = []any{ + file_routerrpc_router_proto_msgTypes[26].OneofWrappers = []any{ (*HtlcEvent_ForwardEvent)(nil), (*HtlcEvent_ForwardFailEvent)(nil), (*HtlcEvent_SettleEvent)(nil), @@ -4313,7 +4080,7 @@ func file_routerrpc_router_proto_init() { (*HtlcEvent_SubscribedEvent)(nil), (*HtlcEvent_FinalHtlcEvent)(nil), } - file_routerrpc_router_proto_msgTypes[47].OneofWrappers = []any{ + file_routerrpc_router_proto_msgTypes[45].OneofWrappers = []any{ (*DeleteForwardingHistoryRequest_DeleteBeforeTime)(nil), (*DeleteForwardingHistoryRequest_DeleteBeforeDuration)(nil), } @@ -4322,8 +4089,8 @@ func file_routerrpc_router_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_routerrpc_router_proto_rawDesc), len(file_routerrpc_router_proto_rawDesc)), - NumEnums: 6, - NumMessages: 56, + NumEnums: 5, + NumMessages: 54, NumExtensions: 0, NumServices: 1, }, diff --git a/lnrpc/routerrpc/router.pb.json.go b/lnrpc/routerrpc/router.pb.json.go index b5212b37344..bea81725243 100644 --- a/lnrpc/routerrpc/router.pb.json.go +++ b/lnrpc/routerrpc/router.pb.json.go @@ -172,31 +172,6 @@ func RegisterRouterJSONCallbacks(registry map[string]func(ctx context.Context, callback(string(respBytes), nil) } - registry["routerrpc.Router.SendToRoute"] = func(ctx context.Context, - conn *grpc.ClientConn, reqJSON string, callback func(string, error)) { - - req := &SendToRouteRequest{} - err := marshaler.Unmarshal([]byte(reqJSON), req) - if err != nil { - callback("", err) - return - } - - client := NewRouterClient(conn) - resp, err := client.SendToRoute(ctx, req) - if err != nil { - callback("", err) - return - } - - respBytes, err := marshaler.Marshal(resp) - if err != nil { - callback("", err) - return - } - callback(string(respBytes), nil) - } - registry["routerrpc.Router.SendToRouteV2"] = func(ctx context.Context, conn *grpc.ClientConn, reqJSON string, callback func(string, error)) { @@ -439,90 +414,6 @@ func RegisterRouterJSONCallbacks(registry map[string]func(ctx context.Context, }() } - registry["routerrpc.Router.SendPayment"] = func(ctx context.Context, - conn *grpc.ClientConn, reqJSON string, callback func(string, error)) { - - req := &SendPaymentRequest{} - err := marshaler.Unmarshal([]byte(reqJSON), req) - if err != nil { - callback("", err) - return - } - - client := NewRouterClient(conn) - stream, err := client.SendPayment(ctx, req) - if err != nil { - callback("", err) - return - } - - go func() { - for { - select { - case <-stream.Context().Done(): - callback("", stream.Context().Err()) - return - default: - } - - resp, err := stream.Recv() - if err != nil { - callback("", err) - return - } - - respBytes, err := marshaler.Marshal(resp) - if err != nil { - callback("", err) - return - } - callback(string(respBytes), nil) - } - }() - } - - registry["routerrpc.Router.TrackPayment"] = func(ctx context.Context, - conn *grpc.ClientConn, reqJSON string, callback func(string, error)) { - - req := &TrackPaymentRequest{} - err := marshaler.Unmarshal([]byte(reqJSON), req) - if err != nil { - callback("", err) - return - } - - client := NewRouterClient(conn) - stream, err := client.TrackPayment(ctx, req) - if err != nil { - callback("", err) - return - } - - go func() { - for { - select { - case <-stream.Context().Done(): - callback("", stream.Context().Err()) - return - default: - } - - resp, err := stream.Recv() - if err != nil { - callback("", err) - return - } - - respBytes, err := marshaler.Marshal(resp) - if err != nil { - callback("", err) - return - } - callback(string(respBytes), nil) - } - }() - } - registry["routerrpc.Router.UpdateChanStatus"] = func(ctx context.Context, conn *grpc.ClientConn, reqJSON string, callback func(string, error)) { diff --git a/lnrpc/routerrpc/router.proto b/lnrpc/routerrpc/router.proto index 5ddf9226143..a7c1e98c15d 100644 --- a/lnrpc/routerrpc/router.proto +++ b/lnrpc/routerrpc/router.proto @@ -59,17 +59,6 @@ service Router { */ rpc EstimateRouteFee (RouteFeeRequest) returns (RouteFeeResponse); - /* - Deprecated, use SendToRouteV2. SendToRoute attempts to make a payment via - the specified route. This method differs from SendPayment in that it - allows users to specify a full route manually. This can be used for - things like rebalancing, and atomic swaps. It differs from the newer - SendToRouteV2 in that it doesn't return the full HTLC information. - */ - rpc SendToRoute (SendToRouteRequest) returns (SendToRouteResponse) { - option deprecated = true; - } - /* lncli: `sendtoroute` SendToRouteV2 attempts to make a payment via the specified route. This method differs from SendPayment in that it allows users to specify a full @@ -141,23 +130,6 @@ service Router { rpc SubscribeHtlcEvents (SubscribeHtlcEventsRequest) returns (stream HtlcEvent); - /* - Deprecated, use SendPaymentV2. SendPayment attempts to route a payment - described by the passed PaymentRequest to the final destination. The call - returns a stream of payment status updates. - */ - rpc SendPayment (SendPaymentRequest) returns (stream PaymentStatus) { - option deprecated = true; - } - - /* - Deprecated, use TrackPaymentV2. TrackPayment returns an update stream for - the payment identified by the payment hash. - */ - rpc TrackPayment (TrackPaymentRequest) returns (stream PaymentStatus) { - option deprecated = true; - } - /** HtlcInterceptor dispatches a bi-directional streaming RPC in which Forwarded HTLC requests are sent to the client and the client responds with @@ -264,12 +236,7 @@ message SendPaymentRequest { */ int64 fee_limit_sat = 7; - /* - Deprecated, use outgoing_chan_ids. The channel id of the channel that must - be taken to the first hop. If zero, any channel may be used (unless - outgoing_chan_ids are set). - */ - uint64 outgoing_chan_id = 8 [jstype = JS_STRING, deprecated = true]; + reserved 8; /* An optional maximum total time lock for the route. This should not @@ -491,14 +458,6 @@ message SendToRouteRequest { map first_hop_custom_records = 4; } -message SendToRouteResponse { - // The preimage obtained by making the payment. - bytes preimage = 1; - - // The failure message in case the payment failed. - lnrpc.Failure failure = 2; -} - message ResetMissionControlRequest { } @@ -930,62 +889,6 @@ enum FailureDetail { EXTERNAL_VALIDATION_FAILED = 27; } -enum PaymentState { - /* - Payment is still in flight. - */ - IN_FLIGHT = 0; - - /* - Payment completed successfully. - */ - SUCCEEDED = 1; - - /* - There are more routes to try, but the payment timeout was exceeded. - */ - FAILED_TIMEOUT = 2; - - /* - All possible routes were tried and failed permanently. Or were no - routes to the destination at all. - */ - FAILED_NO_ROUTE = 3; - - /* - A non-recoverable error has occurred. - */ - FAILED_ERROR = 4; - - /* - Payment details incorrect (unknown hash, invalid amt or - invalid final cltv delta) - */ - FAILED_INCORRECT_PAYMENT_DETAILS = 5; - - /* - Insufficient local balance. - */ - FAILED_INSUFFICIENT_BALANCE = 6; -} - -message PaymentStatus { - // Current state the payment is in. - PaymentState state = 1; - - /* - The pre-image of the payment when state is SUCCEEDED. - */ - bytes preimage = 2; - - reserved 3; - - /* - The HTLCs made in attempt to settle the payment [EXPERIMENTAL]. - */ - repeated lnrpc.HTLCAttempt htlcs = 4; -} - message CircuitKey { /// The id of the channel that the is part of this circuit. uint64 chan_id = 1; diff --git a/lnrpc/routerrpc/router.swagger.json b/lnrpc/routerrpc/router.swagger.json index e5b21eee0ff..c4f0e7f4da8 100644 --- a/lnrpc/routerrpc/router.swagger.json +++ b/lnrpc/routerrpc/router.swagger.json @@ -734,6 +734,18 @@ ], "default": "APRIORI" }, + "PaymentPaymentStatus": { + "type": "string", + "enum": [ + "UNKNOWN", + "IN_FLIGHT", + "SUCCEEDED", + "FAILED", + "INITIATED" + ], + "default": "UNKNOWN", + "description": " - UNKNOWN: Deprecated. This status will never be returned.\n - IN_FLIGHT: Payment has inflight HTLCs.\n - SUCCEEDED: Payment is settled.\n - FAILED: Payment is failed.\n - INITIATED: Payment is created and has not attempted any HTLCs." + }, "lnrpcAMPRecord": { "type": "object", "properties": { @@ -1129,7 +1141,7 @@ "description": "The optional payment request being fulfilled." }, "status": { - "$ref": "#/definitions/lnrpcPaymentPaymentStatus", + "$ref": "#/definitions/PaymentPaymentStatus", "description": "The status of the payment." }, "fee_sat": { @@ -1187,18 +1199,6 @@ "default": "FAILURE_REASON_NONE", "description": " - FAILURE_REASON_NONE: Payment isn't failed (yet).\n - FAILURE_REASON_TIMEOUT: There are more routes to try, but the payment timeout was exceeded.\n - FAILURE_REASON_NO_ROUTE: All possible routes were tried and failed permanently. Or were no\nroutes to the destination at all.\n - FAILURE_REASON_ERROR: A non-recoverable error has occured.\n - FAILURE_REASON_INCORRECT_PAYMENT_DETAILS: Payment details incorrect (unknown hash, invalid amt or\ninvalid final cltv delta)\n - FAILURE_REASON_INSUFFICIENT_BALANCE: Insufficient local balance.\n - FAILURE_REASON_CANCELED: The payment was canceled." }, - "lnrpcPaymentPaymentStatus": { - "type": "string", - "enum": [ - "UNKNOWN", - "IN_FLIGHT", - "SUCCEEDED", - "FAILED", - "INITIATED" - ], - "default": "UNKNOWN", - "description": " - UNKNOWN: Deprecated. This status will never be returned.\n - IN_FLIGHT: Payment has inflight HTLCs.\n - SUCCEEDED: Payment is settled.\n - FAILED: Payment is failed.\n - INITIATED: Payment is created and has not attempted any HTLCs." - }, "lnrpcRoute": { "type": "object", "properties": { @@ -1870,42 +1870,6 @@ }, "description": "PairHistory contains the mission control state for a particular node pair." }, - "routerrpcPaymentState": { - "type": "string", - "enum": [ - "IN_FLIGHT", - "SUCCEEDED", - "FAILED_TIMEOUT", - "FAILED_NO_ROUTE", - "FAILED_ERROR", - "FAILED_INCORRECT_PAYMENT_DETAILS", - "FAILED_INSUFFICIENT_BALANCE" - ], - "default": "IN_FLIGHT", - "description": " - IN_FLIGHT: Payment is still in flight.\n - SUCCEEDED: Payment completed successfully.\n - FAILED_TIMEOUT: There are more routes to try, but the payment timeout was exceeded.\n - FAILED_NO_ROUTE: All possible routes were tried and failed permanently. Or were no\nroutes to the destination at all.\n - FAILED_ERROR: A non-recoverable error has occurred.\n - FAILED_INCORRECT_PAYMENT_DETAILS: Payment details incorrect (unknown hash, invalid amt or\ninvalid final cltv delta)\n - FAILED_INSUFFICIENT_BALANCE: Insufficient local balance." - }, - "routerrpcPaymentStatus": { - "type": "object", - "properties": { - "state": { - "$ref": "#/definitions/routerrpcPaymentState", - "description": "Current state the payment is in." - }, - "preimage": { - "type": "string", - "format": "byte", - "description": "The pre-image of the payment when state is SUCCEEDED." - }, - "htlcs": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/lnrpcHTLCAttempt" - }, - "description": "The HTLCs made in attempt to settle the payment [EXPERIMENTAL]." - } - } - }, "routerrpcQueryMissionControlResponse": { "type": "object", "properties": { @@ -2031,11 +1995,6 @@ "format": "int64", "description": "The maximum number of satoshis that will be paid as a fee of the payment.\nIf this field is left to the default value of 0, only zero-fee routes will\nbe considered. This usually means single hop routes connecting directly to\nthe destination. To send the payment without a fee limit, use max int here.\n\nThe fields fee_limit_sat and fee_limit_msat are mutually exclusive." }, - "outgoing_chan_id": { - "type": "string", - "format": "uint64", - "description": "Deprecated, use outgoing_chan_ids. The channel id of the channel that must\nbe taken to the first hop. If zero, any channel may be used (unless\noutgoing_chan_ids are set)." - }, "cltv_limit": { "type": "integer", "format": "int32", @@ -2159,20 +2118,6 @@ } } }, - "routerrpcSendToRouteResponse": { - "type": "object", - "properties": { - "preimage": { - "type": "string", - "format": "byte", - "description": "The preimage obtained by making the payment." - }, - "failure": { - "$ref": "#/definitions/lnrpcFailure", - "description": "The failure message in case the payment failed." - } - } - }, "routerrpcSetMissionControlConfigRequest": { "type": "object", "properties": { diff --git a/lnrpc/routerrpc/router.yaml b/lnrpc/routerrpc/router.yaml index 1aad4033367..cba907e10c2 100644 --- a/lnrpc/routerrpc/router.yaml +++ b/lnrpc/routerrpc/router.yaml @@ -13,8 +13,6 @@ http: - selector: routerrpc.Router.EstimateRouteFee post: "/v2/router/route/estimatefee" body: "*" - - selector: routerrpc.Router.SendToRoute - # deprecated, no REST endpoint - selector: routerrpc.Router.SendToRouteV2 post: "/v2/router/route/send" body: "*" @@ -38,10 +36,6 @@ http: body: "*" - selector: routerrpc.Router.SubscribeHtlcEvents get: "/v2/router/htlcevents" - - selector: routerrpc.Router.SendPayment - # deprecated, no REST endpoint - - selector: routerrpc.Router.TrackPayment - # deprecated, no REST endpoint - selector: routerrpc.Router.HtlcInterceptor post: "/v2/router/htlcinterceptor" body: "*" diff --git a/lnrpc/routerrpc/router_backend.go b/lnrpc/routerrpc/router_backend.go index 3bb4d82e9eb..09d60aba589 100644 --- a/lnrpc/routerrpc/router_backend.go +++ b/lnrpc/routerrpc/router_backend.go @@ -447,19 +447,8 @@ func (r *RouterBackend) parseQueryRoutesRequest(in *lnrpc.QueryRoutesRequest) ( BlindedPaymentPathSet: blindedPathSet, } - // We set the outgoing channel restrictions if the user provides a - // list of channel ids. We also handle the case where the user - // provides the deprecated `OutgoingChanId` field. - switch { - case len(in.OutgoingChanIds) > 0 && in.OutgoingChanId != 0: - return nil, errors.New("outgoing_chan_id and " + - "outgoing_chan_ids cannot both be set") - - case len(in.OutgoingChanIds) > 0: + if len(in.OutgoingChanIds) > 0 { restrictions.OutgoingChannelIDs = in.OutgoingChanIds - - case in.OutgoingChanId != 0: - restrictions.OutgoingChannelIDs = []uint64{in.OutgoingChanId} } // Pass along a last hop restriction if specified. @@ -880,21 +869,8 @@ func (r *RouterBackend) extractIntentFromSendRequest( } payIntent.TimePref = rpcPayReq.TimePref - // Pass along restrictions on the outgoing channels that may be used. payIntent.OutgoingChannelIDs = rpcPayReq.OutgoingChanIds - // Add the deprecated single outgoing channel restriction if present. - if rpcPayReq.OutgoingChanId != 0 { - if payIntent.OutgoingChannelIDs != nil { - return nil, errors.New("outgoing_chan_id and " + - "outgoing_chan_ids are mutually exclusive") - } - - payIntent.OutgoingChannelIDs = append( - payIntent.OutgoingChannelIDs, rpcPayReq.OutgoingChanId, - ) - } - // Pass along a last hop restriction if specified. if len(rpcPayReq.LastHopPubkey) > 0 { lastHop, err := route.NewVertexFromBytes( diff --git a/lnrpc/routerrpc/router_backend_test.go b/lnrpc/routerrpc/router_backend_test.go index e572f8066f0..d4ff2242002 100644 --- a/lnrpc/routerrpc/router_backend_test.go +++ b/lnrpc/routerrpc/router_backend_test.go @@ -33,39 +33,25 @@ var ( node2 = route.Vertex{11} ) -var ( - singleChanID = "singleChanID" - multiChanID = "multiChanID" - bothChanIds = "bothChanIds" -) - // TestQueryRoutes asserts that query routes rpc parameters are properly parsed // and passed onto path finding. func TestQueryRoutes(t *testing.T) { t.Run("no mission control", func(t *testing.T) { - testQueryRoutes(t, false, false, true, singleChanID) + testQueryRoutes(t, false, false, true) }) t.Run("no mission control and msat", func(t *testing.T) { - testQueryRoutes(t, false, true, true, singleChanID) + testQueryRoutes(t, false, true, true) }) t.Run("with mission control", func(t *testing.T) { - testQueryRoutes(t, true, false, true, singleChanID) + testQueryRoutes(t, true, false, true) }) t.Run("no mission control bad cltv limit", func(t *testing.T) { - testQueryRoutes(t, false, false, false, singleChanID) - }) - - t.Run("both outgoing chan id and chan ids", func(t *testing.T) { - testQueryRoutes(t, true, false, true, bothChanIds) - }) - - t.Run("multiple outgoing chan ids", func(t *testing.T) { - testQueryRoutes(t, false, true, true, multiChanID) + testQueryRoutes(t, false, false, false) }) } func testQueryRoutes(t *testing.T, useMissionControl bool, useMsat bool, - setTimelock bool, outgoingChanConfig string) { + setTimelock bool) { ignoreNodeBytes, err := hex.DecodeString(ignoreNodeKey) if err != nil { @@ -82,7 +68,6 @@ func testQueryRoutes(t *testing.T, useMissionControl bool, useMsat bool, var ( lastHop = route.Vertex{64} - outgoingChan = uint64(383322) outgoingChanIds = []uint64{383322, 383323} ) @@ -137,17 +122,7 @@ func testQueryRoutes(t *testing.T, useMissionControl bool, useMsat bool, } } - switch outgoingChanConfig { - case singleChanID: - request.OutgoingChanId = outgoingChan - - case multiChanID: - request.OutgoingChanIds = outgoingChanIds - - case bothChanIds: - request.OutgoingChanId = outgoingChan - request.OutgoingChanIds = outgoingChanIds - } + request.OutgoingChanIds = outgoingChanIds findRoute := func(req *routing.RouteRequest) (*route.Route, float64, error) { @@ -190,19 +165,9 @@ func testQueryRoutes(t *testing.T, useMissionControl bool, useMsat bool, t.Fatal("unexpected last hop") } - switch outgoingChanConfig { - case singleChanID: - require.Equal( - t, restrictions.OutgoingChannelIDs, - []uint64{outgoingChan}, - ) - - case multiChanID: - require.Equal( - t, restrictions.OutgoingChannelIDs, - outgoingChanIds, - ) - } + require.Equal( + t, restrictions.OutgoingChannelIDs, outgoingChanIds, + ) if !restrictions.DestFeatures.HasFeature(lnwire.MPPOptional) { t.Fatal("unexpected dest features") @@ -265,13 +230,6 @@ func testQueryRoutes(t *testing.T, useMissionControl bool, useMsat bool, resp, err := backend.QueryRoutes(t.Context(), request) - // If we're using both OutgoingChanId and OutgoingChanIds, we should get - // an error. - if outgoingChanConfig == bothChanIds { - require.Error(t, err) - return - } - // If no MaxTotalTimelock was set for the QueryRoutes request, make // sure an error was returned. if !setTimelock { @@ -573,17 +531,6 @@ func TestExtractIntentFromSendRequest(t *testing.T) { valid: false, expectedErrorMsg: "time preference out of range", }, - { - name: "Outgoing channel exclusivity violation", - backend: &RouterBackend{}, - sendReq: &SendPaymentRequest{ - OutgoingChanId: 38484, - OutgoingChanIds: []uint64{383322}, - }, - valid: false, - expectedErrorMsg: "outgoing_chan_id and " + - "outgoing_chan_ids are mutually exclusive", - }, { name: "Invalid last hop pubkey length", backend: &RouterBackend{}, diff --git a/lnrpc/routerrpc/router_grpc.pb.go b/lnrpc/routerrpc/router_grpc.pb.go index ed62db135cd..38ad4b0abb6 100644 --- a/lnrpc/routerrpc/router_grpc.pb.go +++ b/lnrpc/routerrpc/router_grpc.pb.go @@ -42,14 +42,6 @@ type RouterClient interface { // EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it // may cost to send an HTLC to the target end destination. EstimateRouteFee(ctx context.Context, in *RouteFeeRequest, opts ...grpc.CallOption) (*RouteFeeResponse, error) - // Deprecated: Do not use. - // - // Deprecated, use SendToRouteV2. SendToRoute attempts to make a payment via - // the specified route. This method differs from SendPayment in that it - // allows users to specify a full route manually. This can be used for - // things like rebalancing, and atomic swaps. It differs from the newer - // SendToRouteV2 in that it doesn't return the full HTLC information. - SendToRoute(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*SendToRouteResponse, error) // lncli: `sendtoroute` // SendToRouteV2 attempts to make a payment via the specified route. This // method differs from SendPayment in that it allows users to specify a full @@ -95,17 +87,6 @@ type RouterClient interface { // SubscribeHtlcEvents creates a uni-directional stream from the server to // the client which delivers a stream of htlc events. SubscribeHtlcEvents(ctx context.Context, in *SubscribeHtlcEventsRequest, opts ...grpc.CallOption) (Router_SubscribeHtlcEventsClient, error) - // Deprecated: Do not use. - // - // Deprecated, use SendPaymentV2. SendPayment attempts to route a payment - // described by the passed PaymentRequest to the final destination. The call - // returns a stream of payment status updates. - SendPayment(ctx context.Context, in *SendPaymentRequest, opts ...grpc.CallOption) (Router_SendPaymentClient, error) - // Deprecated: Do not use. - // - // Deprecated, use TrackPaymentV2. TrackPayment returns an update stream for - // the payment identified by the payment hash. - TrackPayment(ctx context.Context, in *TrackPaymentRequest, opts ...grpc.CallOption) (Router_TrackPaymentClient, error) // * // HtlcInterceptor dispatches a bi-directional streaming RPC in which // Forwarded HTLC requests are sent to the client and the client responds with @@ -258,16 +239,6 @@ func (c *routerClient) EstimateRouteFee(ctx context.Context, in *RouteFeeRequest return out, nil } -// Deprecated: Do not use. -func (c *routerClient) SendToRoute(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*SendToRouteResponse, error) { - out := new(SendToRouteResponse) - err := c.cc.Invoke(ctx, "/routerrpc.Router/SendToRoute", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *routerClient) SendToRouteV2(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*lnrpc.HTLCAttempt, error) { out := new(lnrpc.HTLCAttempt) err := c.cc.Invoke(ctx, "/routerrpc.Router/SendToRouteV2", in, out, opts...) @@ -372,74 +343,8 @@ func (x *routerSubscribeHtlcEventsClient) Recv() (*HtlcEvent, error) { return m, nil } -// Deprecated: Do not use. -func (c *routerClient) SendPayment(ctx context.Context, in *SendPaymentRequest, opts ...grpc.CallOption) (Router_SendPaymentClient, error) { - stream, err := c.cc.NewStream(ctx, &Router_ServiceDesc.Streams[4], "/routerrpc.Router/SendPayment", opts...) - if err != nil { - return nil, err - } - x := &routerSendPaymentClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Router_SendPaymentClient interface { - Recv() (*PaymentStatus, error) - grpc.ClientStream -} - -type routerSendPaymentClient struct { - grpc.ClientStream -} - -func (x *routerSendPaymentClient) Recv() (*PaymentStatus, error) { - m := new(PaymentStatus) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Deprecated: Do not use. -func (c *routerClient) TrackPayment(ctx context.Context, in *TrackPaymentRequest, opts ...grpc.CallOption) (Router_TrackPaymentClient, error) { - stream, err := c.cc.NewStream(ctx, &Router_ServiceDesc.Streams[5], "/routerrpc.Router/TrackPayment", opts...) - if err != nil { - return nil, err - } - x := &routerTrackPaymentClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Router_TrackPaymentClient interface { - Recv() (*PaymentStatus, error) - grpc.ClientStream -} - -type routerTrackPaymentClient struct { - grpc.ClientStream -} - -func (x *routerTrackPaymentClient) Recv() (*PaymentStatus, error) { - m := new(PaymentStatus) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - func (c *routerClient) HtlcInterceptor(ctx context.Context, opts ...grpc.CallOption) (Router_HtlcInterceptorClient, error) { - stream, err := c.cc.NewStream(ctx, &Router_ServiceDesc.Streams[6], "/routerrpc.Router/HtlcInterceptor", opts...) + stream, err := c.cc.NewStream(ctx, &Router_ServiceDesc.Streams[4], "/routerrpc.Router/HtlcInterceptor", opts...) if err != nil { return nil, err } @@ -541,14 +446,6 @@ type RouterServer interface { // EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it // may cost to send an HTLC to the target end destination. EstimateRouteFee(context.Context, *RouteFeeRequest) (*RouteFeeResponse, error) - // Deprecated: Do not use. - // - // Deprecated, use SendToRouteV2. SendToRoute attempts to make a payment via - // the specified route. This method differs from SendPayment in that it - // allows users to specify a full route manually. This can be used for - // things like rebalancing, and atomic swaps. It differs from the newer - // SendToRouteV2 in that it doesn't return the full HTLC information. - SendToRoute(context.Context, *SendToRouteRequest) (*SendToRouteResponse, error) // lncli: `sendtoroute` // SendToRouteV2 attempts to make a payment via the specified route. This // method differs from SendPayment in that it allows users to specify a full @@ -594,17 +491,6 @@ type RouterServer interface { // SubscribeHtlcEvents creates a uni-directional stream from the server to // the client which delivers a stream of htlc events. SubscribeHtlcEvents(*SubscribeHtlcEventsRequest, Router_SubscribeHtlcEventsServer) error - // Deprecated: Do not use. - // - // Deprecated, use SendPaymentV2. SendPayment attempts to route a payment - // described by the passed PaymentRequest to the final destination. The call - // returns a stream of payment status updates. - SendPayment(*SendPaymentRequest, Router_SendPaymentServer) error - // Deprecated: Do not use. - // - // Deprecated, use TrackPaymentV2. TrackPayment returns an update stream for - // the payment identified by the payment hash. - TrackPayment(*TrackPaymentRequest, Router_TrackPaymentServer) error // * // HtlcInterceptor dispatches a bi-directional streaming RPC in which // Forwarded HTLC requests are sent to the client and the client responds with @@ -661,9 +547,6 @@ func (UnimplementedRouterServer) TrackPayments(*TrackPaymentsRequest, Router_Tra func (UnimplementedRouterServer) EstimateRouteFee(context.Context, *RouteFeeRequest) (*RouteFeeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method EstimateRouteFee not implemented") } -func (UnimplementedRouterServer) SendToRoute(context.Context, *SendToRouteRequest) (*SendToRouteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SendToRoute not implemented") -} func (UnimplementedRouterServer) SendToRouteV2(context.Context, *SendToRouteRequest) (*lnrpc.HTLCAttempt, error) { return nil, status.Errorf(codes.Unimplemented, "method SendToRouteV2 not implemented") } @@ -691,12 +574,6 @@ func (UnimplementedRouterServer) BuildRoute(context.Context, *BuildRouteRequest) func (UnimplementedRouterServer) SubscribeHtlcEvents(*SubscribeHtlcEventsRequest, Router_SubscribeHtlcEventsServer) error { return status.Errorf(codes.Unimplemented, "method SubscribeHtlcEvents not implemented") } -func (UnimplementedRouterServer) SendPayment(*SendPaymentRequest, Router_SendPaymentServer) error { - return status.Errorf(codes.Unimplemented, "method SendPayment not implemented") -} -func (UnimplementedRouterServer) TrackPayment(*TrackPaymentRequest, Router_TrackPaymentServer) error { - return status.Errorf(codes.Unimplemented, "method TrackPayment not implemented") -} func (UnimplementedRouterServer) HtlcInterceptor(Router_HtlcInterceptorServer) error { return status.Errorf(codes.Unimplemented, "method HtlcInterceptor not implemented") } @@ -809,24 +686,6 @@ func _Router_EstimateRouteFee_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _Router_SendToRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SendToRouteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RouterServer).SendToRoute(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/routerrpc.Router/SendToRoute", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RouterServer).SendToRoute(ctx, req.(*SendToRouteRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Router_SendToRouteV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SendToRouteRequest) if err := dec(in); err != nil { @@ -992,48 +851,6 @@ func (x *routerSubscribeHtlcEventsServer) Send(m *HtlcEvent) error { return x.ServerStream.SendMsg(m) } -func _Router_SendPayment_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(SendPaymentRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RouterServer).SendPayment(m, &routerSendPaymentServer{stream}) -} - -type Router_SendPaymentServer interface { - Send(*PaymentStatus) error - grpc.ServerStream -} - -type routerSendPaymentServer struct { - grpc.ServerStream -} - -func (x *routerSendPaymentServer) Send(m *PaymentStatus) error { - return x.ServerStream.SendMsg(m) -} - -func _Router_TrackPayment_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(TrackPaymentRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RouterServer).TrackPayment(m, &routerTrackPaymentServer{stream}) -} - -type Router_TrackPaymentServer interface { - Send(*PaymentStatus) error - grpc.ServerStream -} - -type routerTrackPaymentServer struct { - grpc.ServerStream -} - -func (x *routerTrackPaymentServer) Send(m *PaymentStatus) error { - return x.ServerStream.SendMsg(m) -} - func _Router_HtlcInterceptor_Handler(srv interface{}, stream grpc.ServerStream) error { return srv.(RouterServer).HtlcInterceptor(&routerHtlcInterceptorServer{stream}) } @@ -1161,10 +978,6 @@ var Router_ServiceDesc = grpc.ServiceDesc{ MethodName: "EstimateRouteFee", Handler: _Router_EstimateRouteFee_Handler, }, - { - MethodName: "SendToRoute", - Handler: _Router_SendToRoute_Handler, - }, { MethodName: "SendToRouteV2", Handler: _Router_SendToRouteV2_Handler, @@ -1239,16 +1052,6 @@ var Router_ServiceDesc = grpc.ServiceDesc{ Handler: _Router_SubscribeHtlcEvents_Handler, ServerStreams: true, }, - { - StreamName: "SendPayment", - Handler: _Router_SendPayment_Handler, - ServerStreams: true, - }, - { - StreamName: "TrackPayment", - Handler: _Router_TrackPayment_Handler, - ServerStreams: true, - }, { StreamName: "HtlcInterceptor", Handler: _Router_HtlcInterceptor_Handler, diff --git a/lnrpc/routerrpc/router_server.go b/lnrpc/routerrpc/router_server.go index e3ac207e597..23e5acef2c9 100644 --- a/lnrpc/routerrpc/router_server.go +++ b/lnrpc/routerrpc/router_server.go @@ -96,10 +96,6 @@ var ( Entity: "offchain", Action: "write", }}, - "/routerrpc.Router/SendToRoute": {{ - Entity: "offchain", - Action: "write", - }}, "/routerrpc.Router/TrackPaymentV2": {{ Entity: "offchain", Action: "read", @@ -144,14 +140,6 @@ var ( Entity: "offchain", Action: "read", }}, - "/routerrpc.Router/SendPayment": {{ - Entity: "offchain", - Action: "write", - }}, - "/routerrpc.Router/TrackPayment": {{ - Entity: "offchain", - Action: "read", - }}, "/routerrpc.Router/HtlcInterceptor": {{ Entity: "offchain", Action: "write", diff --git a/lnrpc/routerrpc/router_server_deprecated.go b/lnrpc/routerrpc/router_server_deprecated.go index a08cafcdd71..4b3ed635858 100644 --- a/lnrpc/routerrpc/router_server_deprecated.go +++ b/lnrpc/routerrpc/router_server_deprecated.go @@ -2,125 +2,11 @@ package routerrpc import ( "context" - "encoding/hex" - "errors" - "fmt" - "github.com/lightningnetwork/lnd/lnrpc" "github.com/lightningnetwork/lnd/lnwire" "github.com/lightningnetwork/lnd/routing/route" ) -// legacyTrackPaymentServer is a wrapper struct that transforms a stream of main -// rpc payment structs into the legacy PaymentStatus format. -type legacyTrackPaymentServer struct { - Router_TrackPaymentServer -} - -// Send converts a Payment object and sends it as a PaymentStatus object on the -// embedded stream. -func (i *legacyTrackPaymentServer) Send(p *lnrpc.Payment) error { - var state PaymentState - switch p.Status { - case lnrpc.Payment_IN_FLIGHT: - state = PaymentState_IN_FLIGHT - case lnrpc.Payment_SUCCEEDED: - state = PaymentState_SUCCEEDED - case lnrpc.Payment_FAILED: - switch p.FailureReason { - case lnrpc.PaymentFailureReason_FAILURE_REASON_NONE: - return fmt.Errorf("expected fail reason") - - case lnrpc.PaymentFailureReason_FAILURE_REASON_TIMEOUT: - state = PaymentState_FAILED_TIMEOUT - - case lnrpc.PaymentFailureReason_FAILURE_REASON_NO_ROUTE: - state = PaymentState_FAILED_NO_ROUTE - - case lnrpc.PaymentFailureReason_FAILURE_REASON_ERROR: - state = PaymentState_FAILED_ERROR - - case lnrpc.PaymentFailureReason_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS: - state = PaymentState_FAILED_INCORRECT_PAYMENT_DETAILS - - case lnrpc.PaymentFailureReason_FAILURE_REASON_INSUFFICIENT_BALANCE: - state = PaymentState_FAILED_INSUFFICIENT_BALANCE - - default: - return fmt.Errorf("unknown failure reason %v", - p.FailureReason) - } - default: - return fmt.Errorf("unknown state %v", p.Status) - } - - preimage, err := hex.DecodeString(p.PaymentPreimage) - if err != nil { - return err - } - - legacyState := PaymentStatus{ - State: state, - Preimage: preimage, - Htlcs: p.Htlcs, - } - - return i.Router_TrackPaymentServer.Send(&legacyState) -} - -// TrackPayment returns a stream of payment state updates. The stream is -// closed when the payment completes. -func (s *Server) TrackPayment(request *TrackPaymentRequest, - stream Router_TrackPaymentServer) error { - - legacyStream := legacyTrackPaymentServer{ - Router_TrackPaymentServer: stream, - } - return s.TrackPaymentV2(request, &legacyStream) -} - -// SendPayment attempts to route a payment described by the passed -// PaymentRequest to the final destination. If we are unable to route the -// payment, or cannot find a route that satisfies the constraints in the -// PaymentRequest, then an error will be returned. Otherwise, the payment -// pre-image, along with the final route will be returned. -func (s *Server) SendPayment(request *SendPaymentRequest, - stream Router_SendPaymentServer) error { - - if request.MaxParts > 1 { - return errors.New("for multi-part payments, use SendPaymentV2") - } - - legacyStream := legacyTrackPaymentServer{ - Router_TrackPaymentServer: stream, - } - return s.SendPaymentV2(request, &legacyStream) -} - -// SendToRoute sends a payment through a predefined route. The response of this -// call contains structured error information. -func (s *Server) SendToRoute(ctx context.Context, - req *SendToRouteRequest) (*SendToRouteResponse, error) { - - resp, err := s.SendToRouteV2(ctx, req) - if err != nil { - return nil, err - } - - if resp == nil { - return nil, nil - } - - // Need to convert to legacy response message because proto identifiers - // don't line up. - legacyResp := &SendToRouteResponse{ - Preimage: resp.Preimage, - Failure: resp.Failure, - } - - return legacyResp, nil -} - // QueryProbability returns the current success probability estimate for a // given node pair and amount. func (s *Server) QueryProbability(_ context.Context, diff --git a/lntest/harness_assertion.go b/lntest/harness_assertion.go index e2fcdebdcdd..b7579800447 100644 --- a/lntest/harness_assertion.go +++ b/lntest/harness_assertion.go @@ -2552,38 +2552,6 @@ func (h *HarnessTest) AssertNumInvoices(hn *node.HarnessNode, return invoices } -// ReceiveSendToRouteUpdate waits until a message is received on the -// SendToRoute client stream or the timeout is reached. -func (h *HarnessTest) ReceiveSendToRouteUpdate( - stream rpc.SendToRouteClient) (*lnrpc.SendResponse, error) { - - chanMsg := make(chan *lnrpc.SendResponse, 1) - errChan := make(chan error, 1) - go func() { - // Consume one message. This will block until the message is - // received. - resp, err := stream.Recv() - if err != nil { - errChan <- err - - return - } - chanMsg <- resp - }() - - select { - case <-time.After(DefaultTimeout): - require.Fail(h, "timeout", "timeout waiting for send resp") - return nil, nil - - case err := <-errChan: - return nil, err - - case updateMsg := <-chanMsg: - return updateMsg, nil - } -} - // AssertInvoiceEqual asserts that two lnrpc.Invoices are equivalent. A custom // comparison function is defined for these tests, since proto message returned // from unary and streaming RPCs (as of protobuf 1.23.0 and grpc 1.29.1) aren't diff --git a/lntest/rpc/lnd.go b/lntest/rpc/lnd.go index 946b37b8817..a9dc742e619 100644 --- a/lntest/rpc/lnd.go +++ b/lntest/rpc/lnd.go @@ -560,32 +560,6 @@ func (h *HarnessRPC) QueryRoutes( return routes } -type SendToRouteClient lnrpc.Lightning_SendToRouteClient - -// SendToRoute makes a RPC call to SendToRoute and asserts. -func (h *HarnessRPC) SendToRoute() SendToRouteClient { - // SendToRoute needs to have the context alive for the entire test case - // as the returned client will be used for send and receive payment - // stream. Thus we use runCtx here instead of a timeout context. - client, err := h.LN.SendToRoute(h.runCtx) - h.NoError(err, "SendToRoute") - - return client -} - -// SendToRouteSync makes a RPC call to SendToRouteSync and asserts. -func (h *HarnessRPC) SendToRouteSync( - req *lnrpc.SendToRouteRequest) *lnrpc.SendResponse { - - ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout) - defer cancel() - - resp, err := h.LN.SendToRouteSync(ctxt, req) - h.NoError(err, "SendToRouteSync") - - return resp -} - // UpdateChannelPolicy makes a RPC call to UpdateChannelPolicy and asserts. func (h *HarnessRPC) UpdateChannelPolicy( req *lnrpc.PolicyUpdateRequest) *lnrpc.PolicyUpdateResponse { diff --git a/lnwire/lnwire_test.go b/lnwire/lnwire_test.go index dbd483f1070..9dfef7f5dd7 100644 --- a/lnwire/lnwire_test.go +++ b/lnwire/lnwire_test.go @@ -137,8 +137,11 @@ func TestDecodeUnknownAddressType(t *testing.T) { // Add an onion address. onionAddr := &tor.OnionAddr{ - OnionService: "abcdefghijklmnop.onion", - Port: 9065, + OnionService: "abcdefghij" + + "abcdefghijabcdefghij" + + "abcdefghijabcdefghij" + + "234567.onion", + Port: 9065, } // Now add an address with an unknown type. diff --git a/lnwire/message_test.go b/lnwire/message_test.go index f1232e85f99..3ec8736acf2 100644 --- a/lnwire/message_test.go +++ b/lnwire/message_test.go @@ -964,24 +964,6 @@ func randTCP6Addr(t testing.TB, r *rand.Rand) *net.TCPAddr { return &net.TCPAddr{IP: addrIP, Port: addrPort} } -func randV2OnionAddr(t testing.TB, r *rand.Rand) *tor.OnionAddr { - t.Helper() - - var serviceID [tor.V2DecodedLen]byte - _, err := r.Read(serviceID[:]) - require.NoError(t, err, "unable to read serviceID") - - var port [2]byte - _, err = r.Read(port[:]) - require.NoError(t, err, "unable to read port") - - onionService := tor.Base32Encoding.EncodeToString(serviceID[:]) - onionService += tor.OnionSuffix - addrPort := int(binary.BigEndian.Uint16(port[:])) - - return &tor.OnionAddr{OnionService: onionService, Port: addrPort} -} - func randV3OnionAddr(t testing.TB, r *rand.Rand) *tor.OnionAddr { t.Helper() @@ -1021,11 +1003,10 @@ func randDNSAddr(t testing.TB, r *rand.Rand) *lnwire.DNSAddress { func randAddrs(t testing.TB, r *rand.Rand) []net.Addr { tcp4Addr := randTCP4Addr(t, r) tcp6Addr := randTCP6Addr(t, r) - v2OnionAddr := randV2OnionAddr(t, r) v3OnionAddr := randV3OnionAddr(t, r) dnsAddr := randDNSAddr(t, r) - return []net.Addr{tcp4Addr, tcp6Addr, v2OnionAddr, v3OnionAddr, dnsAddr} + return []net.Addr{tcp4Addr, tcp6Addr, v3OnionAddr, dnsAddr} } func randAlias(r *rand.Rand) lnwire.NodeAlias { diff --git a/lnwire/node_announcement.go b/lnwire/node_announcement.go index 468ac794e70..cba14725bb2 100644 --- a/lnwire/node_announcement.go +++ b/lnwire/node_announcement.go @@ -7,6 +7,8 @@ import ( "io" "net" "unicode/utf8" + + "github.com/lightningnetwork/lnd/tor" ) // ErrUnknownAddrType is an error returned if we encounter an unknown address type @@ -131,9 +133,32 @@ func (a *NodeAnnouncement1) Decode(r io.Reader, _ uint32) error { return err } + // Strip any v2 onion addresses post-decode. lnd no longer relays, + // persists, or re-encodes v2 onion addresses since Tor dropped + // support for v2 services in October 2021; keeping the remaining + // valid addresses lets the rest of the announcement (node identity, + // v3, IPv4/IPv6) round-trip through the wire codec. + a.Addresses = stripLegacyV2OnionAddrs(a.Addresses) + return a.ExtraOpaqueData.ValidateTLV() } +// stripLegacyV2OnionAddrs returns addrs with any legacy v2 onion addresses +// removed. Tor v2 onion services have been obsolete since October 2021 and +// lnd no longer relays or persists them. +func stripLegacyV2OnionAddrs(addrs []net.Addr) []net.Addr { + filtered := addrs[:0] + for _, addr := range addrs { + onion, ok := addr.(*tor.OnionAddr) + if ok && len(onion.OnionService) == tor.V2Len { + continue + } + filtered = append(filtered, addr) + } + + return filtered +} + // Encode serializes the target NodeAnnouncement1 into the passed io.Writer // observing the protocol version specified. // diff --git a/lnwire/writer.go b/lnwire/writer.go index ddf67e8a289..ae08da29526 100644 --- a/lnwire/writer.go +++ b/lnwire/writer.go @@ -44,6 +44,14 @@ var ( // ErrUnknownServiceLength is returned when the onion service length is // unknown. ErrUnknownServiceLength = errors.New("unknown onion service length") + + // ErrV2OnionAddrNotSupported is returned by the wire-format encoder + // when a message references a v2 onion address. lnd no longer relays + // or persists v2 onion addresses since Tor dropped support for v2 + // services in October 2021. + ErrV2OnionAddrNotSupported = errors.New( + "v2 onion addresses are no longer supported", + ) ) // ErrOutpointIndexTooBig is used when the outpoint index exceeds the max value @@ -336,14 +344,13 @@ func WriteOnionAddr(buf *bytes.Buffer, addr *tor.OnionAddr) error { // Decide the suffixIndex and descriptor. switch len(addr.OnionService) { - case tor.V2Len: - descriptor = []byte{byte(v2OnionAddr)} - suffixIndex = tor.V2Len - tor.OnionSuffixLen - case tor.V3Len: descriptor = []byte{byte(v3OnionAddr)} suffixIndex = tor.V3Len - tor.OnionSuffixLen + case tor.V2Len: + return ErrV2OnionAddrNotSupported + default: return ErrUnknownServiceLength } diff --git a/lnwire/writer_test.go b/lnwire/writer_test.go index bb2bada06ad..29ebfbbc3b0 100644 --- a/lnwire/writer_test.go +++ b/lnwire/writer_test.go @@ -501,25 +501,24 @@ func TestWriteOnionAddr(t *testing.T) { // the error is returned. name: "invalid base32 encoding", addr: &tor.OnionAddr{ - OnionService: "1234567890123456.onion", + OnionService: "1111111111" + + "11111111111111111111" + + "11111111111111111111" + + "111111.onion", }, expectedErr: base32.CorruptInputError(0), expectedBytes: nil, }, { - // Check write onion v2. - name: "onion address v2", + // A valid-length v2 onion address must be rejected + // since lnd no longer encodes v2 services on the wire. + name: "onion address v2 rejected", addr: &tor.OnionAddr{ OnionService: "abcdefghijklmnop.onion", Port: 9065, }, - expectedErr: nil, - expectedBytes: []byte{ - 0x3, // The descriptor. - 0x0, 0x44, 0x32, 0x14, 0xc7, // The host. - 0x42, 0x54, 0xb6, 0x35, 0xcf, - 0x23, 0x69, // The port. - }, + expectedErr: ErrV2OnionAddrNotSupported, + expectedBytes: nil, }, { // Check write onion v3. @@ -566,8 +565,11 @@ func TestWriteNetAddrs(t *testing.T) { Port: 8080, } onionAddr := &tor.OnionAddr{ - OnionService: "abcdefghijklmnop.onion", - Port: 9065, + OnionService: "abcdefghij" + + "abcdefghijabcdefghij" + + "abcdefghijabcdefghij" + + "234567.onion", + Port: 9065, } dnsAddr := &DNSAddress{ Hostname: "example.com", @@ -602,14 +604,18 @@ func TestWriteNetAddrs(t *testing.T) { addr: []net.Addr{tcpAddr, onionAddr, dnsAddr}, expectedErr: nil, expectedBytes: []byte{ - // 7 bytes for TCP and 13 bytes for onion, + // 7 bytes for TCP, 38 bytes for v3 onion, // 15 bytes for DNS. - 0x0, 0x23, + 0x0, 0x3c, // TCP address. 0x1, 0x7f, 0x0, 0x0, 0x1, 0x1f, 0x90, - // Onion address. - 0x3, 0x0, 0x44, 0x32, 0x14, 0xc7, 0x42, - 0x54, 0xb6, 0x35, 0xcf, 0x23, 0x69, + // V3 onion address. + 0x4, 0x0, 0x44, 0x32, 0x14, 0xc7, 0x42, 0x40, + 0x11, 0xc, 0x85, 0x31, 0xd0, 0x90, 0x4, + 0x43, 0x21, 0x4c, 0x74, 0x24, 0x1, 0x10, + 0xc8, 0x53, 0x1d, 0x9, 0x0, 0x44, 0x32, + 0x14, 0xc7, 0x42, 0x75, 0xbe, 0x77, 0xdf, + 0x23, 0x69, // DNS address. 0x5, 0xb, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x1f, 0x90, diff --git a/rpcserver.go b/rpcserver.go index d4a9ce51bb5..4019499c72a 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -7,7 +7,6 @@ import ( "errors" "fmt" "image/color" - "io" "maps" "math" "net" @@ -76,7 +75,6 @@ import ( paymentsdb "github.com/lightningnetwork/lnd/payments/db" "github.com/lightningnetwork/lnd/peer" "github.com/lightningnetwork/lnd/peernotifier" - "github.com/lightningnetwork/lnd/record" "github.com/lightningnetwork/lnd/routing" "github.com/lightningnetwork/lnd/routing/blindedpath" "github.com/lightningnetwork/lnd/routing/route" @@ -398,22 +396,6 @@ func MainRPCServerPermissions() map[string][]bakery.Op { Entity: "offchain", Action: "read", }}, - "/lnrpc.Lightning/SendPayment": {{ - Entity: "offchain", - Action: "write", - }}, - "/lnrpc.Lightning/SendPaymentSync": {{ - Entity: "offchain", - Action: "write", - }}, - "/lnrpc.Lightning/SendToRoute": {{ - Entity: "offchain", - Action: "write", - }}, - "/lnrpc.Lightning/SendToRouteSync": {{ - Entity: "offchain", - Action: "write", - }}, "/lnrpc.Lightning/AddInvoice": {{ Entity: "invoices", Action: "write", @@ -5694,777 +5676,6 @@ func (r *rpcServer) SubscribeChannelEvents(req *lnrpc.ChannelEventSubscription, } } -// paymentStream enables different types of payment streams, such as: -// lnrpc.Lightning_SendPaymentServer and lnrpc.Lightning_SendToRouteServer to -// execute sendPayment. We use this struct as a sort of bridge to enable code -// re-use between SendPayment and SendToRoute. -type paymentStream struct { - getCtx func() context.Context - recv func() (*rpcPaymentRequest, error) - send func(*lnrpc.SendResponse) error -} - -// rpcPaymentRequest wraps lnrpc.SendRequest so that routes from -// lnrpc.SendToRouteRequest can be passed to sendPayment. -type rpcPaymentRequest struct { - *lnrpc.SendRequest - route *route.Route -} - -// SendPayment dispatches a bi-directional streaming RPC for sending payments -// through the Lightning Network. A single RPC invocation creates a persistent -// bi-directional stream allowing clients to rapidly send payments through the -// Lightning Network with a single persistent connection. -func (r *rpcServer) SendPayment( - stream lnrpc.Lightning_SendPaymentServer) error { - - var lock sync.Mutex - - return r.sendPayment(&paymentStream{ - getCtx: stream.Context, - recv: func() (*rpcPaymentRequest, error) { - req, err := stream.Recv() - if err != nil { - return nil, err - } - - return &rpcPaymentRequest{ - SendRequest: req, - }, nil - }, - send: func(r *lnrpc.SendResponse) error { - // Calling stream.Send concurrently is not safe. - lock.Lock() - defer lock.Unlock() - return stream.Send(r) - }, - }) -} - -// SendToRoute dispatches a bi-directional streaming RPC for sending payments -// through the Lightning Network via predefined routes passed in. A single RPC -// invocation creates a persistent bi-directional stream allowing clients to -// rapidly send payments through the Lightning Network with a single persistent -// connection. -func (r *rpcServer) SendToRoute( - stream lnrpc.Lightning_SendToRouteServer) error { - - var lock sync.Mutex - - return r.sendPayment(&paymentStream{ - getCtx: stream.Context, - recv: func() (*rpcPaymentRequest, error) { - req, err := stream.Recv() - if err != nil { - return nil, err - } - - return r.unmarshallSendToRouteRequest(req) - }, - send: func(r *lnrpc.SendResponse) error { - // Calling stream.Send concurrently is not safe. - lock.Lock() - defer lock.Unlock() - return stream.Send(r) - }, - }) -} - -// unmarshallSendToRouteRequest unmarshalls an rpc sendtoroute request -func (r *rpcServer) unmarshallSendToRouteRequest( - req *lnrpc.SendToRouteRequest) (*rpcPaymentRequest, error) { - - if req.Route == nil { - return nil, fmt.Errorf("unable to send, no route provided") - } - - route, err := r.routerBackend.UnmarshallRoute(req.Route) - if err != nil { - return nil, err - } - - return &rpcPaymentRequest{ - SendRequest: &lnrpc.SendRequest{ - PaymentHash: req.PaymentHash, - PaymentHashString: req.PaymentHashString, - }, - route: route, - }, nil -} - -// rpcPaymentIntent is a small wrapper struct around the of values we can -// receive from a client over RPC if they wish to send a payment. We'll either -// extract these fields from a payment request (which may include routing -// hints), or we'll get a fully populated route from the user that we'll pass -// directly to the channel router for dispatching. -type rpcPaymentIntent struct { - msat lnwire.MilliSatoshi - feeLimit lnwire.MilliSatoshi - cltvLimit uint32 - dest route.Vertex - rHash [32]byte - cltvDelta uint16 - routeHints [][]zpay32.HopHint - outgoingChannelIDs []uint64 - lastHop *route.Vertex - destFeatures *lnwire.FeatureVector - paymentAddr fn.Option[[32]byte] - payReq []byte - metadata []byte - blindedPathSet *routing.BlindedPaymentPathSet - - destCustomRecords record.CustomSet - - route *route.Route -} - -// extractPaymentIntent attempts to parse the complete details required to -// dispatch a client from the information presented by an RPC client. There are -// three ways a client can specify their payment details: a payment request, -// via manual details, or via a complete route. -// -//nolint:funlen -func (r *rpcServer) extractPaymentIntent( - rpcPayReq *rpcPaymentRequest) (rpcPaymentIntent, error) { - - payIntent := rpcPaymentIntent{} - - // If a route was specified, then we can use that directly. - if rpcPayReq.route != nil { - // If the user is using the REST interface, then they'll be - // passing the payment hash as a hex encoded string. - if rpcPayReq.PaymentHashString != "" { - paymentHash, err := hex.DecodeString( - rpcPayReq.PaymentHashString, - ) - if err != nil { - return payIntent, err - } - - copy(payIntent.rHash[:], paymentHash) - } else { - copy(payIntent.rHash[:], rpcPayReq.PaymentHash) - } - - payIntent.route = rpcPayReq.route - return payIntent, nil - } - - // If there are no routes specified, pass along a outgoing channel - // restriction if specified. The main server rpc does not support - // multiple channel restrictions. - if rpcPayReq.OutgoingChanId != 0 { - payIntent.outgoingChannelIDs = []uint64{ - rpcPayReq.OutgoingChanId, - } - } - - // Pass along a last hop restriction if specified. - if len(rpcPayReq.LastHopPubkey) > 0 { - lastHop, err := route.NewVertexFromBytes( - rpcPayReq.LastHopPubkey, - ) - if err != nil { - return payIntent, err - } - payIntent.lastHop = &lastHop - } - - // Take the CLTV limit from the request if set, otherwise use the max. - cltvLimit, err := routerrpc.ValidateCLTVLimit( - rpcPayReq.CltvLimit, r.cfg.MaxOutgoingCltvExpiry, - ) - if err != nil { - return payIntent, err - } - payIntent.cltvLimit = cltvLimit - - customRecords := record.CustomSet(rpcPayReq.DestCustomRecords) - if err := customRecords.Validate(); err != nil { - return payIntent, err - } - payIntent.destCustomRecords = customRecords - - validateDest := func(dest route.Vertex) error { - if rpcPayReq.AllowSelfPayment { - return nil - } - - if dest == r.selfNode { - return errors.New("self-payments not allowed") - } - - return nil - } - - // If the payment request field isn't blank, then the details of the - // invoice are encoded entirely within the encoded payReq. So we'll - // attempt to decode it, populating the payment accordingly. - if rpcPayReq.PaymentRequest != "" { - payReq, err := zpay32.Decode( - rpcPayReq.PaymentRequest, r.cfg.ActiveNetParams.Params, - zpay32.WithErrorOnUnknownFeatureBit(), - ) - if err != nil { - return payIntent, err - } - - // Next, we'll ensure that this payreq hasn't already expired. - err = routerrpc.ValidatePayReqExpiry( - r.routerBackend.Clock, payReq, - ) - if err != nil { - return payIntent, err - } - - // If the amount was not included in the invoice, then we let - // the payer specify the amount of satoshis they wish to send. - // We override the amount to pay with the amount provided from - // the payment request. - if payReq.MilliSat == nil { - amt, err := lnrpc.UnmarshallAmt( - rpcPayReq.Amt, rpcPayReq.AmtMsat, - ) - if err != nil { - return payIntent, err - } - if amt == 0 { - return payIntent, errors.New("amount must be " + - "specified when paying a zero amount " + - "invoice") - } - - payIntent.msat = amt - } else { - payIntent.msat = *payReq.MilliSat - } - - // Calculate the fee limit that should be used for this payment. - payIntent.feeLimit = lnrpc.CalculateFeeLimit( - rpcPayReq.FeeLimit, payIntent.msat, - ) - - copy(payIntent.rHash[:], payReq.PaymentHash[:]) - destKey := payReq.Destination.SerializeCompressed() - copy(payIntent.dest[:], destKey) - payIntent.cltvDelta = uint16(payReq.MinFinalCLTVExpiry()) - payIntent.routeHints = payReq.RouteHints - payIntent.payReq = []byte(rpcPayReq.PaymentRequest) - payIntent.destFeatures = payReq.Features - payIntent.paymentAddr = payReq.PaymentAddr - payIntent.metadata = payReq.Metadata - - if len(payReq.BlindedPaymentPaths) > 0 { - pathSet, err := routerrpc.BuildBlindedPathSet( - payReq.BlindedPaymentPaths, - ) - if err != nil { - return payIntent, err - } - payIntent.blindedPathSet = pathSet - - // Replace the destination node with the target public - // key of the blinded path set. - copy( - payIntent.dest[:], - pathSet.TargetPubKey().SerializeCompressed(), - ) - - pathFeatures := pathSet.Features() - if !pathFeatures.IsEmpty() { - payIntent.destFeatures = pathFeatures.Clone() - } - } - - if err := validateDest(payIntent.dest); err != nil { - return payIntent, err - } - - // Do bounds checking with the block padding. - err = routing.ValidateCLTVLimit( - payIntent.cltvLimit, payIntent.cltvDelta, true, - ) - if err != nil { - return payIntent, err - } - - return payIntent, nil - } - - // At this point, a destination MUST be specified, so we'll convert it - // into the proper representation now. The destination will either be - // encoded as raw bytes, or via a hex string. - var pubBytes []byte - if len(rpcPayReq.Dest) != 0 { - pubBytes = rpcPayReq.Dest - } else { - var err error - pubBytes, err = hex.DecodeString(rpcPayReq.DestString) - if err != nil { - return payIntent, err - } - } - if len(pubBytes) != 33 { - return payIntent, errors.New("invalid key length") - } - copy(payIntent.dest[:], pubBytes) - - if err := validateDest(payIntent.dest); err != nil { - return payIntent, err - } - - // Payment address may not be needed by legacy invoices. - if len(rpcPayReq.PaymentAddr) != 0 && len(rpcPayReq.PaymentAddr) != 32 { - return payIntent, errors.New("invalid payment address length") - } - - // Set the payment address if it was explicitly defined with the - // rpcPaymentRequest. - // Note that the payment address for the payIntent should be nil if none - // was provided with the rpcPaymentRequest. - if len(rpcPayReq.PaymentAddr) != 0 { - var addr [32]byte - copy(addr[:], rpcPayReq.PaymentAddr) - payIntent.paymentAddr = fn.Some(addr) - } - - // Otherwise, If the payment request field was not specified - // (and a custom route wasn't specified), construct the payment - // from the other fields. - payIntent.msat, err = lnrpc.UnmarshallAmt( - rpcPayReq.Amt, rpcPayReq.AmtMsat, - ) - if err != nil { - return payIntent, err - } - - // Calculate the fee limit that should be used for this payment. - payIntent.feeLimit = lnrpc.CalculateFeeLimit( - rpcPayReq.FeeLimit, payIntent.msat, - ) - - if rpcPayReq.FinalCltvDelta != 0 { - payIntent.cltvDelta = uint16(rpcPayReq.FinalCltvDelta) - } else { - // If no final cltv delta is given, assume the default that we - // use when creating an invoice. We do not assume the default of - // 9 blocks that is defined in BOLT-11, because this is never - // enough for other lnd nodes. - payIntent.cltvDelta = uint16(r.cfg.Bitcoin.TimeLockDelta) - } - - // Do bounds checking with the block padding so the router isn't left - // with a zombie payment in case the user messes up. - err = routing.ValidateCLTVLimit( - payIntent.cltvLimit, payIntent.cltvDelta, true, - ) - if err != nil { - return payIntent, err - } - - // If the user is manually specifying payment details, then the payment - // hash may be encoded as a string. - switch { - case rpcPayReq.PaymentHashString != "": - paymentHash, err := hex.DecodeString( - rpcPayReq.PaymentHashString, - ) - if err != nil { - return payIntent, err - } - - copy(payIntent.rHash[:], paymentHash) - - default: - copy(payIntent.rHash[:], rpcPayReq.PaymentHash) - } - - // Unmarshal any custom destination features. - payIntent.destFeatures = routerrpc.UnmarshalFeatures( - rpcPayReq.DestFeatures, - ) - - return payIntent, nil -} - -type paymentIntentResponse struct { - Route *route.Route - Preimage [32]byte - Err error -} - -// dispatchPaymentIntent attempts to fully dispatch an RPC payment intent. -// We'll either pass the payment as a whole to the channel router, or give it a -// pre-built route. The first error this method returns denotes if we were -// unable to save the payment. The second error returned denotes if the payment -// didn't succeed. -func (r *rpcServer) dispatchPaymentIntent(ctx context.Context, - payIntent *rpcPaymentIntent) (*paymentIntentResponse, error) { - - // Construct a payment request to send to the channel router. If the - // payment is successful, the route chosen will be returned. Otherwise, - // we'll get a non-nil error. - var ( - preImage [32]byte - route *route.Route - routerErr error - ) - - // If a route was specified, then we'll pass the route directly to the - // router, otherwise we'll create a payment session to execute it. - if payIntent.route == nil { - payment := &routing.LightningPayment{ - Target: payIntent.dest, - Amount: payIntent.msat, - FinalCLTVDelta: payIntent.cltvDelta, - FeeLimit: payIntent.feeLimit, - CltvLimit: payIntent.cltvLimit, - RouteHints: payIntent.routeHints, - OutgoingChannelIDs: payIntent.outgoingChannelIDs, - LastHop: payIntent.lastHop, - PaymentRequest: payIntent.payReq, - PayAttemptTimeout: routing.DefaultPayAttemptTimeout, - DestCustomRecords: payIntent.destCustomRecords, - DestFeatures: payIntent.destFeatures, - PaymentAddr: payIntent.paymentAddr, - Metadata: payIntent.metadata, - BlindedPathSet: payIntent.blindedPathSet, - - // Don't enable multi-part payments on the main rpc. - // Users need to use routerrpc for that. - MaxParts: 1, - } - err := payment.SetPaymentHash(payIntent.rHash) - if err != nil { - return nil, err - } - - preImage, route, routerErr = r.server.chanRouter.SendPayment( - ctx, payment, - ) - } else { - var attempt *paymentsdb.HTLCAttempt - attempt, routerErr = r.server.chanRouter.SendToRoute( - ctx, payIntent.rHash, payIntent.route, nil, - ) - - if routerErr == nil { - preImage = attempt.Settle.Preimage - } - - route = payIntent.route - } - - // If the route failed, then we'll return a nil save err, but a non-nil - // routing err. - if routerErr != nil { - rpcsLog.Warnf("Unable to send payment: %v", routerErr) - - return &paymentIntentResponse{ - Err: routerErr, - }, nil - } - - return &paymentIntentResponse{ - Route: route, - Preimage: preImage, - }, nil -} - -// sendPayment takes a paymentStream (a source of pre-built routes or payment -// requests) and continually attempt to dispatch payment requests written to -// the write end of the stream. Responses will also be streamed back to the -// client via the write end of the stream. This method is by both SendToRoute -// and SendPayment as the logic is virtually identical. -func (r *rpcServer) sendPayment(stream *paymentStream) error { - payChan := make(chan *rpcPaymentIntent) - errChan := make(chan error, 1) - - // We don't allow payments to be sent while the daemon itself is still - // syncing as we may be trying to sent a payment over a "stale" - // channel. - if !r.server.Started() { - return ErrServerNotActive - } - - // TODO(roasbeef): check payment filter to see if already used? - - // In order to limit the level of concurrency and prevent a client from - // attempting to OOM the server, we'll set up a semaphore to create an - // upper ceiling on the number of outstanding payments. - const numOutstandingPayments = 2000 - htlcSema := make(chan struct{}, numOutstandingPayments) - for i := 0; i < numOutstandingPayments; i++ { - htlcSema <- struct{}{} - } - - // We keep track of the running goroutines and set up a quit signal we - // can use to request them to exit if the method returns because of an - // encountered error. - var wg sync.WaitGroup - reqQuit := make(chan struct{}) - defer close(reqQuit) - - // Launch a new goroutine to handle reading new payment requests from - // the client. This way we can handle errors independently of blocking - // and waiting for the next payment request to come through. - // TODO(joostjager): Callers expect result to come in in the same order - // as the request were sent, but this is far from guarantueed in the - // code below. - wg.Add(1) - go func() { - defer wg.Done() - - for { - select { - case <-reqQuit: - return - - default: - // Receive the next pending payment within the - // stream sent by the client. If we read the - // EOF sentinel, then the client has closed the - // stream, and we can exit normally. - nextPayment, err := stream.recv() - if err == io.EOF { - close(payChan) - return - } else if err != nil { - rpcsLog.Errorf("Failed receiving from "+ - "stream: %v", err) - - select { - case errChan <- err: - default: - } - return - } - - // Populate the next payment, either from the - // payment request, or from the explicitly set - // fields. If the payment proto wasn't well - // formed, then we'll send an error reply and - // wait for the next payment. - payIntent, err := r.extractPaymentIntent( - nextPayment, - ) - if err != nil { - if err := stream.send(&lnrpc.SendResponse{ - PaymentError: err.Error(), - PaymentHash: payIntent.rHash[:], - }); err != nil { - rpcsLog.Errorf("Failed "+ - "sending on "+ - "stream: %v", err) - - select { - case errChan <- err: - default: - } - return - } - continue - } - - // If the payment was well formed, then we'll - // send to the dispatch goroutine, or exit, - // which ever comes first. - select { - case payChan <- &payIntent: - case <-reqQuit: - return - } - } - } - }() - -sendLoop: - for { - select { - - // If we encounter and error either during sending or - // receiving, we return directly, closing the stream. - case err := <-errChan: - return err - - case <-r.quit: - return errors.New("rpc server shutting down") - - case payIntent, ok := <-payChan: - // If the receive loop is done, we break the send loop - // and wait for the ongoing payments to finish before - // exiting. - if !ok { - break sendLoop - } - - // We launch a new goroutine to execute the current - // payment so we can continue to serve requests while - // this payment is being dispatched. - wg.Add(1) - go func(payIntent *rpcPaymentIntent) { - defer wg.Done() - - // Attempt to grab a free semaphore slot, using - // a defer to eventually release the slot - // regardless of payment success. - select { - case <-htlcSema: - case <-reqQuit: - return - } - defer func() { - htlcSema <- struct{}{} - }() - - resp, saveErr := r.dispatchPaymentIntent( - stream.getCtx(), payIntent, - ) - - switch { - // If we were unable to save the state of the - // payment, then we'll return the error to the - // user, and terminate. - case saveErr != nil: - rpcsLog.Errorf("Failed dispatching "+ - "payment intent: %v", saveErr) - - select { - case errChan <- saveErr: - default: - } - return - - // If we receive payment error than, instead of - // terminating the stream, send error response - // to the user. - case resp.Err != nil: - err := stream.send(&lnrpc.SendResponse{ - PaymentError: resp.Err.Error(), - PaymentHash: payIntent.rHash[:], - }) - if err != nil { - rpcsLog.Errorf("Failed "+ - "sending error "+ - "response: %v", err) - - select { - case errChan <- err: - default: - } - } - return - } - - backend := r.routerBackend - marshalledRouted, err := backend.MarshallRoute( - resp.Route, - ) - if err != nil { - errChan <- err - return - } - - err = stream.send(&lnrpc.SendResponse{ - PaymentHash: payIntent.rHash[:], - PaymentPreimage: resp.Preimage[:], - PaymentRoute: marshalledRouted, - }) - if err != nil { - rpcsLog.Errorf("Failed sending "+ - "response: %v", err) - - select { - case errChan <- err: - default: - } - return - } - }(payIntent) - } - } - - // Wait for all goroutines to finish before closing the stream. - wg.Wait() - return nil -} - -// SendPaymentSync is the synchronous non-streaming version of SendPayment. -// This RPC is intended to be consumed by clients of the REST proxy. -// Additionally, this RPC expects the destination's public key and the payment -// hash (if any) to be encoded as hex strings. -func (r *rpcServer) SendPaymentSync(ctx context.Context, - nextPayment *lnrpc.SendRequest) (*lnrpc.SendResponse, error) { - - return r.sendPaymentSync(ctx, &rpcPaymentRequest{ - SendRequest: nextPayment, - }) -} - -// SendToRouteSync is the synchronous non-streaming version of SendToRoute. -// This RPC is intended to be consumed by clients of the REST proxy. -// Additionally, this RPC expects the payment hash (if any) to be encoded as -// hex strings. -func (r *rpcServer) SendToRouteSync(ctx context.Context, - req *lnrpc.SendToRouteRequest) (*lnrpc.SendResponse, error) { - - if req.Route == nil { - return nil, fmt.Errorf("unable to send, no routes provided") - } - - paymentRequest, err := r.unmarshallSendToRouteRequest(req) - if err != nil { - return nil, err - } - - return r.sendPaymentSync(ctx, paymentRequest) -} - -// sendPaymentSync is the synchronous variant of sendPayment. It will block and -// wait until the payment has been fully completed. -func (r *rpcServer) sendPaymentSync(ctx context.Context, - nextPayment *rpcPaymentRequest) (*lnrpc.SendResponse, error) { - - // We don't allow payments to be sent while the daemon itself is still - // syncing as we may be trying to sent a payment over a "stale" - // channel. - if !r.server.Started() { - return nil, ErrServerNotActive - } - - // First we'll attempt to map the proto describing the next payment to - // an intent that we can pass to local sub-systems. - payIntent, err := r.extractPaymentIntent(nextPayment) - if err != nil { - return nil, err - } - - // With the payment validated, we'll now attempt to dispatch the - // payment. - resp, saveErr := r.dispatchPaymentIntent(ctx, &payIntent) - switch { - case saveErr != nil: - return nil, saveErr - - case resp.Err != nil: - return &lnrpc.SendResponse{ - PaymentError: resp.Err.Error(), - PaymentHash: payIntent.rHash[:], - }, nil - } - - rpcRoute, err := r.routerBackend.MarshallRoute(resp.Route) - if err != nil { - return nil, err - } - - return &lnrpc.SendResponse{ - PaymentHash: payIntent.rHash[:], - PaymentPreimage: resp.Preimage[:], - PaymentRoute: rpcRoute, - }, nil -} - // AddInvoice attempts to add a new invoice to the invoice database. Any // duplicated invoices are rejected, therefore all invoices *must* have a // unique payment preimage. diff --git a/sample-lnd.conf b/sample-lnd.conf index 018741c1102..b91fcf2c73b 100644 --- a/sample-lnd.conf +++ b/sample-lnd.conf @@ -1012,9 +1012,6 @@ ; Example: ; tor.password=plsdonthackme -; Automatically set up a v2 onion service to listen for inbound connections. -; tor.v2=false - ; Automatically set up a v3 onion service to listen for inbound connections. ; tor.v3=false diff --git a/server.go b/server.go index 83131c6f2b3..28dc92d376f 100644 --- a/server.go +++ b/server.go @@ -3379,8 +3379,8 @@ func (s *server) initialPeerBootstrap(ctx context.Context, } } -// createNewHiddenService automatically sets up a v2 or v3 onion service in -// order to listen for inbound connections over Tor. +// createNewHiddenService automatically sets up a v3 onion service in order to +// listen for inbound connections over Tor. func (s *server) createNewHiddenService(ctx context.Context) error { // Determine the different ports the server is listening on. The onion // service's virtual port will map to these ports and one will be picked @@ -3408,12 +3408,7 @@ func (s *server) createNewHiddenService(ctx context.Context) error { ), } - switch { - case s.cfg.Tor.V2: - onionCfg.Type = tor.V2 - case s.cfg.Tor.V3: - onionCfg.Type = tor.V3 - } + onionCfg.Type = tor.V3 addr, err := s.torController.AddOnion(onionCfg) if err != nil { diff --git a/tor/README.md b/tor/README.md index f23ccf60894..41fc8d8917f 100644 --- a/tor/README.md +++ b/tor/README.md @@ -9,10 +9,10 @@ Tor daemon. So far, supported functions include: * Limited Tor Control functionality (synchronous messages only). So far, this includes: * Support for SAFECOOKIE, HASHEDPASSWORD, and NULL authentication methods. - * Creating v2 and v3 onion services. + * Creating v3 onion services. -In the future, the Tor Control functionality will be extended to support v3 -onion services, asynchronous messages, etc. +In the future, the Tor Control functionality will be extended to support +asynchronous messages, etc. ## Installation and Updating diff --git a/tor/cmd_onion.go b/tor/cmd_onion.go index 6e60504a93e..17cccf69ac3 100644 --- a/tor/cmd_onion.go +++ b/tor/cmd_onion.go @@ -19,25 +19,33 @@ var ( // ErrNoPrivateKey is an error returned by the OnionStore.PrivateKey // method when a private key hasn't yet been stored. ErrNoPrivateKey = errors.New("private key not found") + + // ErrNonV3OnionKey is returned when a restored onion private key is + // not a v3 (ED25519-V3) key. lnd no longer creates or recovers v2 + // onion services; users with an old v2 key file must remove it so + // a fresh v3 service can be generated. + ErrNonV3OnionKey = errors.New("restored onion private key is not a " + + "v3 (ED25519-V3) key; remove the old onion key file to " + + "generate a new v3 service") ) // OnionType denotes the type of the onion service. type OnionType int const ( - // V2 denotes that the onion service is V2. - V2 OnionType = iota - // V3 denotes that the onion service is V3. - V3 + V3 OnionType = iota ) const ( - // V2KeyParam is a parameter that Tor accepts for a new V2 service. - V2KeyParam = "RSA1024" - // V3KeyParam is a parameter that Tor accepts for a new V3 service. V3KeyParam = "ED25519-V3" + + // v2KeyParam is the parameter Tor used for legacy v2 onion service + // private keys. lnd no longer generates or restores v2 services, but + // the prefix is still used to detect stale on-disk keys and surface a + // clear error. + v2KeyParam = "RSA1024" ) // OnionStore is a store containing information about a particular onion @@ -128,14 +136,19 @@ func (f *OnionFile) PrivateKey() ([]byte, error) { return nil, err } - // If the privateKey starts with either v2 or v3 key params then - // it's likely not encrypted and we can return the data as is. - if bytes.HasPrefix(privateKeyContent, []byte(V2KeyParam)) || - bytes.HasPrefix(privateKeyContent, []byte(V3KeyParam)) { - + // If the privateKey starts with the v3 key param then it's likely + // not encrypted and we can return the data as is. + if bytes.HasPrefix(privateKeyContent, []byte(V3KeyParam)) { return privateKeyContent, nil } + // A plaintext legacy v2 (RSA1024) key on disk is unsupported. + // Surface a dedicated error so the user can act on it instead of + // being redirected to --tor.encryptkey. + if bytes.HasPrefix(privateKeyContent, []byte(v2KeyParam)) { + return nil, ErrNonV3OnionKey + } + // If the privateKeyContent is encrypted but --tor.encryptkey // wasn't set we return an error. if !f.encryptKey { @@ -151,6 +164,13 @@ func (f *OnionFile) PrivateKey() ([]byte, error) { return nil, err } + // Run the same validator over the decrypted contents so an encrypted + // legacy key is rejected with a clear error rather than being passed + // to Tor. + if !bytes.HasPrefix(privateKeyContent, []byte(V3KeyParam)) { + return nil, ErrNonV3OnionKey + } + return privateKeyContent, nil } @@ -192,14 +212,7 @@ func (c *Controller) prepareKeyparam(cfg AddOnionConfig) (string, error) { // create a new onion service and return its private key. Otherwise, // we'll request the server to recreate the onion server from our // private key. - var keyParam string - switch cfg.Type { - // TODO(yy): drop support for v2. - case V2: - keyParam = "NEW:" + V2KeyParam - case V3: - keyParam = "NEW:" + V3KeyParam - } + keyParam := "NEW:" + V3KeyParam if cfg.Store != nil { privateKey, err := cfg.Store.PrivateKey() @@ -208,7 +221,16 @@ func (c *Controller) prepareKeyparam(cfg AddOnionConfig) (string, error) { case ErrNoPrivateKey: // Recover the onion service with the private key found. + // Refuse to hand a non-v3 key (for example, a legacy + // RSA1024:... v2 key) to Tor; the caller must remove the old + // key file rather than silently regenerate a fresh v3 + // service, which would change the advertised onion identity. case nil: + if !bytes.HasPrefix( + privateKey, []byte(V3KeyParam+":"), + ) { + return "", ErrNonV3OnionKey + } keyParam = string(privateKey) default: @@ -273,13 +295,9 @@ func (c *Controller) prepareAddOnion(cfg AddOnionConfig) (string, string, // creating new service via `ADD_ONION`. func (c *Controller) AddOnion(cfg AddOnionConfig) (*OnionAddr, error) { // Before sending the request to create an onion service to the Tor - // server, we'll make sure that it supports V3 onion services if that - // was the type requested. - // TODO(yy): drop support for v2. - if cfg.Type == V3 { - if err := supportsV3(c.version); err != nil { - return nil, err - } + // server, we'll make sure that it supports V3 onion services. + if err := supportsV3(c.version); err != nil { + return nil, err } // Construct the cmd command. @@ -298,13 +316,13 @@ func (c *Controller) AddOnion(cfg AddOnionConfig) (*OnionAddr, error) { // If successful, the reply from the server should be of the following // format, depending on whether a private key has been requested: // - // C: ADD_ONION RSA1024:[Blob Redacted] Port=80,8080 + // C: ADD_ONION ED25519-V3:[Blob Redacted] Port=80,8080 // S: 250-ServiceID=testonion1234567 // S: 250 OK // - // C: ADD_ONION NEW:RSA1024 Port=80,8080 + // C: ADD_ONION NEW:ED25519-V3 Port=80,8080 // S: 250-ServiceID=testonion1234567 - // S: 250-PrivateKey=RSA1024:[Blob Redacted] + // S: 250-PrivateKey=ED25519-V3:[Blob Redacted] // S: 250 OK // // We're interested in retrieving the service ID, which is the public diff --git a/tor/cmd_onion_test.go b/tor/cmd_onion_test.go index 0fea80dbbbd..d267f4dcde9 100644 --- a/tor/cmd_onion_test.go +++ b/tor/cmd_onion_test.go @@ -11,8 +11,8 @@ import ( ) var ( - privateKey = []byte("RSA1024 hide_me_plz") - anotherKey = []byte("another_key") + privateKey = []byte("ED25519-V3 hide_me_plz") + anotherKey = []byte("ED25519-V3 another_key") ) // TestOnionFile tests that the File implementation of the OnionStore @@ -69,7 +69,7 @@ func TestOnionFile(t *testing.T) { // TestPrepareKeyParam checks that the key param is created as expected. func TestPrepareKeyParam(t *testing.T) { - testKey := []byte("hide_me_plz") + v3Key := []byte("ED25519-V3:hide_me_plz") dummyErr := errors.New("dummy") // Create a dummy controller. @@ -82,15 +82,15 @@ func TestPrepareKeyParam(t *testing.T) { require.Equal(t, "NEW:ED25519-V3", keyParam) require.NoError(t, err) - // Create a mock store which returns the test private key. + // Create a mock store which returns a valid v3 private key. store := &mockStore{} - store.On("PrivateKey").Return(testKey, nil) + store.On("PrivateKey").Return(v3Key, nil) - // Check that the test private is returned. + // Check that the stored v3 private key is returned. cfg = AddOnionConfig{Type: V3, Store: store} keyParam, err = controller.prepareKeyparam(cfg) - require.Equal(t, string(testKey), keyParam) + require.Equal(t, string(v3Key), keyParam) require.NoError(t, err) store.AssertExpectations(t) @@ -117,6 +117,21 @@ func TestPrepareKeyParam(t *testing.T) { require.Empty(t, keyParam) require.ErrorIs(t, dummyErr, err) store.AssertExpectations(t) + + // A restored legacy v2 (RSA1024) onion key must be rejected; lnd no + // longer creates or recovers v2 services, and silently regenerating + // a fresh v3 service would change the advertised onion identity. + store = &mockStore{} + store.On("PrivateKey").Return( + []byte("RSA1024:legacy-v2-key-bytes"), nil, + ) + + cfg = AddOnionConfig{Type: V3, Store: store} + keyParam, err = controller.prepareKeyparam(cfg) + + require.Empty(t, keyParam) + require.ErrorIs(t, err, ErrNonV3OnionKey) + store.AssertExpectations(t) } // TestPrepareAddOnion checks that the cmd used to add onion service is created @@ -126,7 +141,7 @@ func TestPrepareAddOnion(t *testing.T) { // Create a mock store. store := &mockStore{} - testKey := []byte("hide_me_plz") + testKey := []byte("ED25519-V3:hide_me_plz") testCases := []struct { name string @@ -139,14 +154,14 @@ func TestPrepareAddOnion(t *testing.T) { name: "empty target IP and ports", targetIPAddress: "", cfg: AddOnionConfig{VirtualPort: 9735}, - expectedCmd: "ADD_ONION NEW:RSA1024 Port=9735,9735 ", + expectedCmd: "ADD_ONION NEW:ED25519-V3 Port=9735,9735 ", expectedErr: nil, }, { name: "specified target IP and empty ports", targetIPAddress: "127.0.0.1", cfg: AddOnionConfig{VirtualPort: 9735}, - expectedCmd: "ADD_ONION NEW:RSA1024 " + + expectedCmd: "ADD_ONION NEW:ED25519-V3 " + "Port=9735,127.0.0.1:9735 ", expectedErr: nil, }, @@ -157,7 +172,7 @@ func TestPrepareAddOnion(t *testing.T) { VirtualPort: 9735, TargetPorts: []int{18000, 18001}, }, - expectedCmd: "ADD_ONION NEW:RSA1024 " + + expectedCmd: "ADD_ONION NEW:ED25519-V3 " + "Port=9735,127.0.0.1:18000 " + "Port=9735,127.0.0.1:18001 ", expectedErr: nil, @@ -169,7 +184,7 @@ func TestPrepareAddOnion(t *testing.T) { VirtualPort: 9735, Store: store, }, - expectedCmd: "ADD_ONION hide_me_plz " + + expectedCmd: "ADD_ONION ED25519-V3:hide_me_plz " + "Port=9735,9735 ", expectedErr: nil, }, @@ -212,7 +227,15 @@ func (m *mockStore) StorePrivateKey(key []byte) error { func (m *mockStore) PrivateKey() ([]byte, error) { args := m.Called() - return []byte("hide_me_plz"), args.Error(1) + + // Allow callers to set the returned key bytes via the mock's first + // return value; fall back to a valid v3 key prefix for tests that + // only care about a successful key load. + if key, ok := args.Get(0).([]byte); ok && key != nil { + return key, args.Error(1) + } + + return []byte("ED25519-V3:hide_me_plz"), args.Error(1) } func (m *mockStore) DeletePrivateKey() error { diff --git a/tor/tor.go b/tor/tor.go index 37d3fc2892f..c666748de0b 100644 --- a/tor/tor.go +++ b/tor/tor.go @@ -300,27 +300,6 @@ func IsOnionFakeIP(addr net.Addr) bool { return err == nil } -// OnionHostToFakeIP encodes an Onion v2 address into a fake IPv6 address that -// encodes the same information but can be used for libraries that operate on an -// IP address base only, like btcd's address manager. For example, this will -// turn the onion host ld47qlr6h2b7hrrf.onion into the ip6 address -// fd87:d87e:eb43:58f9:f82e:3e3e:83f3:c625. -func OnionHostToFakeIP(host string) (net.IP, error) { - if len(host) != V2Len { - return nil, fmt.Errorf("invalid onion v2 host: %v", host) - } - - data, err := Base32Encoding.DecodeString(host[:V2Len-OnionSuffixLen]) - if err != nil { - return nil, err - } - - ip := make([]byte, len(onionPrefixBytes)+len(data)) - copy(ip, onionPrefixBytes) - copy(ip[len(onionPrefixBytes):], data) - return ip, nil -} - // FakeIPToOnionHost turns a fake IPv6 address that encodes an Onion v2 address // back into its onion host address representation. For example, this will turn // the fake tcp6 address [fd87:d87e:eb43:58f9:f82e:3e3e:83f3:c625]:8333 back diff --git a/tor/tor_test.go b/tor/tor_test.go index 594b77df11f..3e9ba2f2ea7 100644 --- a/tor/tor_test.go +++ b/tor/tor_test.go @@ -13,14 +13,6 @@ const ( testFakeIP = "fd87:d87e:eb43:58f9:f82e:3e3e:83f3:c625" ) -// TestOnionHostToFakeIP tests that an onion host address can be converted into -// a fake tcp6 address successfully. -func TestOnionHostToFakeIP(t *testing.T) { - ip, err := OnionHostToFakeIP(testOnion) - require.NoError(t, err) - require.Equal(t, testFakeIP, ip.String()) -} - // TestFakeIPToOnionHost tests that a fake tcp6 address can be converted back // into its original .onion host address successfully. func TestFakeIPToOnionHost(t *testing.T) { diff --git a/watchtower/standalone.go b/watchtower/standalone.go index 55200120904..2962bbc3398 100644 --- a/watchtower/standalone.go +++ b/watchtower/standalone.go @@ -158,8 +158,8 @@ func (w *Standalone) Stop() error { return nil } -// createNewHiddenService automatically sets up a v2 or v3 onion service in -// order to listen for inbound connections over Tor. +// createNewHiddenService automatically sets up a v3 onion service in order to +// listen for inbound connections over Tor. func (w *Standalone) createNewHiddenService() error { // Get all the ports the watchtower is listening on. These will be used to // map the hidden service's virtual port. diff --git a/watchtower/wtdb/codec_test.go b/watchtower/wtdb/codec_test.go index 3f2e59864e2..e4a05eee939 100644 --- a/watchtower/wtdb/codec_test.go +++ b/watchtower/wtdb/codec_test.go @@ -59,24 +59,6 @@ func randTCP6Addr(r *rand.Rand) (*net.TCPAddr, error) { return &net.TCPAddr{IP: addrIP, Port: addrPort}, nil } -func randV2OnionAddr(r *rand.Rand) (*tor.OnionAddr, error) { - var serviceID [tor.V2DecodedLen]byte - if _, err := r.Read(serviceID[:]); err != nil { - return nil, err - } - - var port [2]byte - if _, err := r.Read(port[:]); err != nil { - return nil, err - } - - onionService := tor.Base32Encoding.EncodeToString(serviceID[:]) - onionService += tor.OnionSuffix - addrPort := int(binary.BigEndian.Uint16(port[:])) - - return &tor.OnionAddr{OnionService: onionService, Port: addrPort}, nil -} - func randV3OnionAddr(r *rand.Rand) (*tor.OnionAddr, error) { var serviceID [tor.V3DecodedLen]byte if _, err := r.Read(serviceID[:]); err != nil { @@ -106,17 +88,12 @@ func randAddrs(r *rand.Rand) ([]net.Addr, error) { return nil, err } - v2OnionAddr, err := randV2OnionAddr(r) - if err != nil { - return nil, err - } - v3OnionAddr, err := randV3OnionAddr(r) if err != nil { return nil, err } - return []net.Addr{tcp4Addr, tcp6Addr, v2OnionAddr, v3OnionAddr}, nil + return []net.Addr{tcp4Addr, tcp6Addr, v3OnionAddr}, nil } // dbObject is abstract object support encoding and decoding.