lnrpc: add the deletecanceledinvoice rpc call

This commit is contained in:
MPins committed 2025-07-25 21:09:18 -03:00
1 parent 6f09d9653f
commit 0146e374fd
7 files changed
+1964 -1616

No files matched your search

+17
View File
@@ -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).