lnrpc: making PendingChannels req/resp naming scheme consistent
In this commit we rename the lnrpc.PendingChannelRequest and lnrpc.PendingChannelResponse to lnrpc.PendingChannelsRequest/lnrpc.PendingChannelsResponse. We do this as we strive to ensure that the naming scheme across the RPC interface is consistent.
This commit is contained in:
7 files changed
+426
-421
No files matched your search
+391
-386
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -170,7 +170,7 @@ func request_Lightning_GetInfo_0(ctx context.Context, marshaler runtime.Marshale
|
||||
}
|
||||
|
||||
func request_Lightning_PendingChannels_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq PendingChannelRequest
|
||||
var protoReq PendingChannelsRequest
|
||||
var metadata runtime.ServerMetadata
|
||||
|
||||
msg, err := client.PendingChannels(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||||
|
||||
+3
-3
@@ -202,7 +202,7 @@ service Lightning {
|
||||
workflow and is waiting for confirmations for the funding txn, or is in the
|
||||
process of closure, either initiated cooperatively or non-cooperatively.
|
||||
*/
|
||||
rpc PendingChannels (PendingChannelRequest) returns (PendingChannelResponse) {
|
||||
rpc PendingChannels (PendingChannelsRequest) returns (PendingChannelsResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/channels/pending"
|
||||
};
|
||||
@@ -913,8 +913,8 @@ message PendingHTLC {
|
||||
uint32 stage = 6 [ json_name = "stage" ];
|
||||
}
|
||||
|
||||
message PendingChannelRequest {}
|
||||
message PendingChannelResponse {
|
||||
message PendingChannelsRequest {}
|
||||
message PendingChannelsResponse {
|
||||
message PendingChannel {
|
||||
string remote_node_pub = 1 [ json_name = "remote_node_pub" ];
|
||||
string channel_point = 2 [ json_name = "channel_point" ];
|
||||
|
||||
+12
-12
@@ -109,7 +109,7 @@
|
||||
"200": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/lnrpcPendingChannelResponse"
|
||||
"$ref": "#/definitions/lnrpcPendingChannelsResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -696,11 +696,11 @@
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"PendingChannelResponseClosedChannel": {
|
||||
"PendingChannelsResponseClosedChannel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"channel": {
|
||||
"$ref": "#/definitions/PendingChannelResponsePendingChannel",
|
||||
"$ref": "#/definitions/PendingChannelsResponsePendingChannel",
|
||||
"title": "/ The pending channel to be closed"
|
||||
},
|
||||
"closing_txid": {
|
||||
@@ -709,11 +709,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"PendingChannelResponseForceClosedChannel": {
|
||||
"PendingChannelsResponseForceClosedChannel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"channel": {
|
||||
"$ref": "#/definitions/PendingChannelResponsePendingChannel",
|
||||
"$ref": "#/definitions/PendingChannelsResponsePendingChannel",
|
||||
"title": "/ The pending channel to be force closed"
|
||||
},
|
||||
"closing_txid": {
|
||||
@@ -748,7 +748,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"PendingChannelResponsePendingChannel": {
|
||||
"PendingChannelsResponsePendingChannel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"remote_node_pub": {
|
||||
@@ -771,11 +771,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"PendingChannelResponsePendingOpenChannel": {
|
||||
"PendingChannelsResponsePendingOpenChannel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"channel": {
|
||||
"$ref": "#/definitions/PendingChannelResponsePendingChannel",
|
||||
"$ref": "#/definitions/PendingChannelsResponsePendingChannel",
|
||||
"title": "/ The pending channel"
|
||||
},
|
||||
"confirmation_height": {
|
||||
@@ -1746,7 +1746,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcPendingChannelResponse": {
|
||||
"lnrpcPendingChannelsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"total_limbo_balance": {
|
||||
@@ -1757,21 +1757,21 @@
|
||||
"pending_open_channels": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/PendingChannelResponsePendingOpenChannel"
|
||||
"$ref": "#/definitions/PendingChannelsResponsePendingOpenChannel"
|
||||
},
|
||||
"title": "/ Channels pending opening"
|
||||
},
|
||||
"pending_closing_channels": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/PendingChannelResponseClosedChannel"
|
||||
"$ref": "#/definitions/PendingChannelsResponseClosedChannel"
|
||||
},
|
||||
"title": "/ Channels pending closing"
|
||||
},
|
||||
"pending_force_closing_channels": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/PendingChannelResponseForceClosedChannel"
|
||||
"$ref": "#/definitions/PendingChannelsResponseForceClosedChannel"
|
||||
},
|
||||
"title": "/ Channels pending force closing"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user