From 8499885ebb0863f133af42f2e8d5f3fe32fa2ada Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Tue, 12 Feb 2019 03:13:27 +0100 Subject: [PATCH] Use grpc files from lnd v0.5.2-beta --- lib/lnrpc/rpc.proto | 10 +++++++++- lib/lnrpc/rpc_pb.rb | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/lnrpc/rpc.proto b/lib/lnrpc/rpc.proto index fbb05ef..abf0929 100644 --- a/lib/lnrpc/rpc.proto +++ b/lib/lnrpc/rpc.proto @@ -392,7 +392,7 @@ service Lightning { */ rpc AbandonChannel (AbandonChannelRequest) returns (AbandonChannelResponse) { option (google.api.http) = { - delete: "/v1/channels/{channel_point.funding_txid_str}/{channel_point.output_index}" + delete: "/v1/channels/abandon/{channel_point.funding_txid_str}/{channel_point.output_index}" }; } @@ -1090,6 +1090,8 @@ message GetInfoResponse { /// The version of the LND software that the node is running. string version = 14 [ json_name = "version" ]; + /// Number of inactive channels + uint32 num_inactive_channels = 15 [json_name = "num_inactive_channels"]; } message ConfirmationUpdate { @@ -1365,6 +1367,12 @@ message Hop { uint32 expiry = 5 [json_name = "expiry"]; int64 amt_to_forward_msat = 6 [json_name = "amt_to_forward_msat"]; int64 fee_msat = 7 [json_name = "fee_msat"]; + + /** + An optional public key of the hop. If the public key is given, the payment + can be executed without relying on a copy of the channel graph. + */ + string pub_key = 8 [json_name = "pub_key"]; } /** diff --git a/lib/lnrpc/rpc_pb.rb b/lib/lnrpc/rpc_pb.rb index 016cc21..84a63a7 100644 --- a/lib/lnrpc/rpc_pb.rb +++ b/lib/lnrpc/rpc_pb.rb @@ -233,6 +233,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do repeated :uris, :string, 12 optional :best_header_timestamp, :int64, 13 optional :version, :string, 14 + optional :num_inactive_channels, :uint32, 15 end add_message "lnrpc.ConfirmationUpdate" do optional :block_sha, :bytes, 1 @@ -362,6 +363,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do optional :expiry, :uint32, 5 optional :amt_to_forward_msat, :int64, 6 optional :fee_msat, :int64, 7 + optional :pub_key, :string, 8 end add_message "lnrpc.Route" do optional :total_time_lock, :uint32, 1