GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LIGHTNING-AUTOCLEAN-ONCE(7) LIGHTNING-AUTOCLEAN-ONCE(7)

lightning-autoclean-once -- A single deletion of old invoices/payments/forwards

autoclean-once subsystem age

The autoclean-once RPC command tell the autoclean plugin to do a single sweep to delete old entries. This is a manual alternative (or addition) to the various autoclean-...-age parameters which cause autoclean to run once per hour: see lightningd-config(5).

subsystem (string) (one of "succeededforwards", "failedforwards", "succeededpays", "failedpays", "paidinvoices", "expiredinvoices"): What subsystem to clean. Currently supported subsystems are:
  • failedforwards: routed payments which did not succeed (failed or local_failed in listforwards status).

  • succeededforwards: routed payments which succeeded (settled in listforwards status).

  • failedpays: payment attempts which did not succeed (failed in listpays status).

  • succeededpays: payment attempts which succeeded (complete in listpays status).

  • expiredinvoices: invoices which were not paid (and cannot be) (expired in listinvoices status).

  • paidinvoices: invoices which were paid (paid in listinvoices status).

age (u64): Non-zero number in seconds. How many seconds old an entry must be to delete it.

On success, an object containing autoclean is returned. It is an object containing:

succeededforwards (object, optional):
  • cleaned (u64): Total number of deletions done this run.

  • uncleaned (u64): The total number of entries not deleted this run.

failedforwards (object, optional):
  • cleaned (u64): Total number of deletions done this run.

  • uncleaned (u64): The total number of entries not deleted this run.

succeededpays (object, optional):
  • cleaned (u64): Total number of deletions done this run.

  • uncleaned (u64): The total number of entries not deleted this run.

failedpays (object, optional):
  • cleaned (u64): Total number of deletions done this run.

  • uncleaned (u64): The total number of entries not deleted this run.

paidinvoices (object, optional):
  • cleaned (u64): Total number of deletions done this run.

  • uncleaned (u64): The total number of entries not deleted this run.

expiredinvoices (object, optional):
  • cleaned (u64): Total number of deletions done this run.

  • uncleaned (u64): The total number of entries not deleted this run.

Rusty Russell <rusty@rustcorp.com.au> is mainly responsible.

lightningd-config(5), lightning-autoclean-status(7)

Main web site: https://github.com/ElementsProject/lightning

Example 1:

Request:

$ lightning-cli autoclean-once "failedpays" "1"

{

"id": "example:autoclean-once#1",
"method": "autoclean-once",
"params": [
"failedpays",
1
] }

Response:

{

"autoclean": {
"failedpays": {
"cleaned": 0,
"uncleaned": 7
}
} }

Example 2:

Request:

$ lightning-cli autoclean-once "succeededpays" "1"

{

"id": "example:autoclean-once#2",
"method": "autoclean-once",
"params": [
"succeededpays",
1
] }

Response:

{

"autoclean": {
"succeededpays": {
"cleaned": 7,
"uncleaned": 0
}
} }
Core Lightning v25.02.2

Search for    or go to Top of page |  Section 7 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.