Use grpc files from lnd v0.5.2-beta

This commit is contained in:
bumi 2019-02-12 03:13:27 +01:00
parent ae08c564aa
commit 8499885ebb
2 changed files with 11 additions and 1 deletions

View File

@ -392,7 +392,7 @@ service Lightning {
*/ */
rpc AbandonChannel (AbandonChannelRequest) returns (AbandonChannelResponse) { rpc AbandonChannel (AbandonChannelRequest) returns (AbandonChannelResponse) {
option (google.api.http) = { 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. /// The version of the LND software that the node is running.
string version = 14 [ json_name = "version" ]; string version = 14 [ json_name = "version" ];
/// Number of inactive channels
uint32 num_inactive_channels = 15 [json_name = "num_inactive_channels"];
} }
message ConfirmationUpdate { message ConfirmationUpdate {
@ -1365,6 +1367,12 @@ message Hop {
uint32 expiry = 5 [json_name = "expiry"]; uint32 expiry = 5 [json_name = "expiry"];
int64 amt_to_forward_msat = 6 [json_name = "amt_to_forward_msat"]; int64 amt_to_forward_msat = 6 [json_name = "amt_to_forward_msat"];
int64 fee_msat = 7 [json_name = "fee_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"];
} }
/** /**

View File

@ -233,6 +233,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
repeated :uris, :string, 12 repeated :uris, :string, 12
optional :best_header_timestamp, :int64, 13 optional :best_header_timestamp, :int64, 13
optional :version, :string, 14 optional :version, :string, 14
optional :num_inactive_channels, :uint32, 15
end end
add_message "lnrpc.ConfirmationUpdate" do add_message "lnrpc.ConfirmationUpdate" do
optional :block_sha, :bytes, 1 optional :block_sha, :bytes, 1
@ -362,6 +363,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :expiry, :uint32, 5 optional :expiry, :uint32, 5
optional :amt_to_forward_msat, :int64, 6 optional :amt_to_forward_msat, :int64, 6
optional :fee_msat, :int64, 7 optional :fee_msat, :int64, 7
optional :pub_key, :string, 8
end end
add_message "lnrpc.Route" do add_message "lnrpc.Route" do
optional :total_time_lock, :uint32, 1 optional :total_time_lock, :uint32, 1