lnrpc: add the deletecanceledinvoice rpc call
This commit is contained in:
7 files changed
+1964
-1616
No files matched your search
@@ -341,6 +341,13 @@ service Lightning {
|
||||
*/
|
||||
rpc SubscribeInvoices (InvoiceSubscription) returns (stream Invoice);
|
||||
|
||||
/* lncli: `deletecanceledinvoice`
|
||||
DeleteCanceledInvoice removes a canceled invoice from the database. If the
|
||||
invoice is not in the canceled state, an error will be returned.
|
||||
*/
|
||||
rpc DeleteCanceledInvoice (DelCanceledInvoiceReq)
|
||||
returns (DelCanceledInvoiceResp);
|
||||
|
||||
/* lncli: `decodepayreq`
|
||||
DecodePayReq takes an encoded payment request string and attempts to decode
|
||||
it, returning a full description of the conditions encoded within the
|
||||
@@ -4234,6 +4241,16 @@ message InvoiceSubscription {
|
||||
uint64 settle_index = 2;
|
||||
}
|
||||
|
||||
message DelCanceledInvoiceReq {
|
||||
// Invoice payment hash to delete.
|
||||
string invoice_hash = 1;
|
||||
}
|
||||
|
||||
message DelCanceledInvoiceResp {
|
||||
// The status of the delete operation.
|
||||
string status = 1;
|
||||
}
|
||||
|
||||
enum PaymentFailureReason {
|
||||
/*
|
||||
Payment isn't failed (yet).
|
||||
|
||||
Reference in new issue
Block a user