lnrpc: add the deletecanceledinvoice rpc call

This commit is contained in:
MPins
2025-07-22 23:34:50 -03:00
parent 6f09d9653f
commit 0146e374fd
7 changed files with 1964 additions and 1616 deletions

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).