Merge pull request #3838 from bhandras/i1404

channeldb+invoices: fix what pending invoice means in ChannelDB
This commit is contained in:
Joost Jager authored and GitHub committed 2019-12-19 21:02:57 +01:00
commit 5ea63158e0
5 files changed
+124 -35

No files matched your search

+3 -1
View File
@@ -7806,7 +7806,9 @@ func (m *PaymentHash) GetRHash() []byte {
}
type ListInvoiceRequest struct {
/// If set, only unsettled invoices will be returned in the response.
//*
//If set, only invoices that are not settled and not canceled will be returned
//in the response.
PendingOnly bool `protobuf:"varint,1,opt,name=pending_only,proto3" json:"pending_only,omitempty"`
//*
//The index of an invoice that will be used as either the start or end of a
+4 -1
View File
@@ -2516,7 +2516,10 @@ message PaymentHash {
}
message ListInvoiceRequest {
/// If set, only unsettled invoices will be returned in the response.
/**
If set, only invoices that are not settled and not canceled will be returned
in the response.
*/
bool pending_only = 1 [json_name = "pending_only"];
/**
+1 -1
View File
@@ -896,7 +896,7 @@
"parameters": [
{
"name": "pending_only",
"description": "/ If set, only unsettled invoices will be returned in the response.",
"description": "*\nIf set, only invoices that are not settled and not canceled will be returned\nin the response.",
"in": "query",
"required": false,
"type": "boolean",