lnrpc: rename non_succeeded to include_incomplete

This commit is contained in:
Olaoluwa Osuntokun committed 2019-06-13 16:01:10 -07:00
1 parent 41b7da9bd1
commit d333b2d981
4 files changed
+507 -500

No files matched your search

+498 -495
View File
File diff suppressed because it is too large. Load diff
+6 -2
View File
@@ -2171,8 +2171,12 @@ message Payment {
} }
message ListPaymentsRequest { message ListPaymentsRequest {
/// Set to also return payments that are not (yet) succeeded. /**
bool non_succeeded = 1; If true, then return payments that have not yet fully completed. This means
that pending payments, as well as failed payments will show up if this
field is set to True.
*/
bool include_incomplete = 1;
} }
message ListPaymentsResponse { message ListPaymentsResponse {
+2 -2
View File
@@ -940,8 +940,8 @@
}, },
"parameters": [ "parameters": [
{ {
"name": "non_succeeded", "name": "include_incomplete",
"description": "/ Set to also return payments that are not (yet) succeeded.", "description": "*\nIf true, then return payments that have not yet fully completed. This means\nthat pending payments, as well as failed payments will show up if this\nfield is set to True.",
"in": "query", "in": "query",
"required": false, "required": false,
"type": "boolean", "type": "boolean",
+1 -1
View File
@@ -4145,7 +4145,7 @@ func (r *rpcServer) ListPayments(ctx context.Context,
// To keep compatibility with the old API, we only return // To keep compatibility with the old API, we only return
// non-suceeded payments if requested. // non-suceeded payments if requested.
if payment.Status != channeldb.StatusSucceeded && if payment.Status != channeldb.StatusSucceeded &&
!req.NonSucceeded { !req.IncludeIncomplete {
continue continue
} }