mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-05 08:41:42 +02:00
lnrpc: add the deletecanceledinvoice rpc call
This commit is contained in:
@@ -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