Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
LIGHTNING-AUTOCLEAN-STATUS(7)			 LIGHTNING-AUTOCLEAN-STATUS(7)

NAME
       lightning-autoclean-status  -- Examine auto-delete of old invoices/pay-
       ments/forwards

SYNOPSIS
       autoclean-status	[subsystem]

DESCRIPTION
       The autoclean-status RPC	command	tells you about	the status of the  au-
       toclean plugin, optionally for only one subsystem.

         subsystem  (string,  optional) (one of "succeededforwards", "failed-
	  forwards", "succeededpays", "failedpays", "paidinvoices",  "expired-
	  invoices"): What subsystem to	ask about. Currently supported subsys-
	  tems 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 sta-
	     tus).

RETURN VALUE
       Note that the ages parameters are set by	various	autoclean-...-age  pa-
       rameters	 in your configuration:	see lightningd-config(5).  On success,
       an object containing autoclean is returned. It is an object containing:

         succeededforwards (object, optional):

	    enabled (boolean):	Whether	autocleaning is	enabled	for successful
	     listforwards.
	    cleaned (u64): Total number of deletions done (ever).

	  If enabled is	true: -	age (u64): Age (in seconds) to delete success-
	  ful listforwards.
         failedforwards (object, optional):

	    enabled (boolean):	Whether	autocleaning  is  enabled  for	failed
	     listforwards.
	    cleaned (u64): Total number of deletions done (ever).

	  If  enabled  is true:	- age (u64): Age (in seconds) to delete	failed
	  listforwards.
         succeededpays	(object, optional):

	    enabled (boolean):	Whether	autocleaning is	enabled	for successful
	     listpays/listsendpays.
	    cleaned (u64): Total number of deletions done (ever).

	  If enabled is	true: -	age (u64): Age (in seconds) to delete success-
	  ful listpays/listsendpays.
         failedpays (object, optional):

	    enabled (boolean):	Whether	autocleaning  is  enabled  for	failed
	     listpays/listsendpays.
	    cleaned (u64): Total number of deletions done (ever).

	  If  enabled  is true:	- age (u64): Age (in seconds) to delete	failed
	  listpays/listsendpays.

         paidinvoices (object,	optional):

	    enabled (boolean):	 Whether  autocleaning	is  enabled  for  paid
	     listinvoices.
	    cleaned (u64): Total number of deletions done (ever).

	  If  enabled  is  true: - age (u64): Age (in seconds) to paid listin-
	  voices.
         expiredinvoices (object, optional):

	    enabled (boolean):	Whether	autocleaning is	 enabled  for  expired
	     (unpaid) listinvoices.
	    cleaned (u64): Total number of deletions done (ever).

	  If enabled is	true: -	age (u64): Age (in seconds) to expired listin-
	  voices.

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

SEE ALSO
       lightningd-config(5), lightning-listinvoices(7),	lightning-listpays(7),
       lightning-listforwards(7)

RESOURCES
       Main web	site: <https://github.com/ElementsProject/lightning>

EXAMPLES
       Example 1:

       Request:

       $ lightning-cli autoclean-status	-k "subsystem"="expiredinvoices"

       {
	 "id": "example:autoclean-status#1",
	 "method": "autoclean-status",
	 "params": {
	   "subsystem":	"expiredinvoices"
	 }
       }

       Response:

       {
	 "autoclean": {
	   "expiredinvoices": {
	     "enabled":	true,
	     "age": 300,
	     "cleaned":	0
	   }
	 }
       }

       Example 2:

       Request:

       $ lightning-cli autoclean-status

       {
	 "id": "example:autoclean-status#2",
	 "method": "autoclean-status",
	 "params": {}
       }

       Response:

       {
	 "autoclean": {
	   "succeededforwards":	{
	     "enabled":	false,
	     "cleaned":	0
	   },
	   "failedforwards": {
	     "enabled":	false,
	     "cleaned":	0
	   },
	   "succeededpays": {
	     "enabled":	false,
	     "cleaned":	7
	   },
	   "failedpays": {
	     "enabled":	false,
	     "cleaned":	0
	   },
	   "paidinvoices": {
	     "enabled":	false,
	     "cleaned":	0
	   },
	   "expiredinvoices": {
	     "enabled":	true,
	     "age": 300,
	     "cleaned":	0
	   }
	 }
       }

Core Lightning v25.02				 LIGHTNING-AUTOCLEAN-STATUS(7)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=lightning-autoclean-status&sektion=7&manpath=FreeBSD+Ports+14.3.quarterly>

home | help