lnrpc: add all_payments opt to DeleteAllPayments

This commit is contained in:
Mohamed Awnallah 2024-04-22 01:48:58 +02:00
parent acc595195c
commit 4f48cc69fb
No known key found for this signature in database
GPG Key ID: 5D55706029E9B87E
3 changed files with 955 additions and 932 deletions

File diff suppressed because it is too large Load Diff

View File

@ -4231,6 +4231,10 @@ message DeleteAllPaymentsRequest {
Only delete failed HTLCs from payments, not the payment itself.
*/
bool failed_htlcs_only = 2;
// Delete all payments. NOTE: Using this option requires careful
// consideration as it is a destructive operation.
bool all_payments = 3;
}
message DeletePaymentResponse {

View File

@ -2268,6 +2268,13 @@
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "all_payments",
"description": "Delete all payments. NOTE: Using this option requires careful\nconsideration as it is a destructive operation.",
"in": "query",
"required": false,
"type": "boolean"
}
],
"tags": [