2019-08-31 14:30:56 +02:00
|
|
|
lightning-autocleaninvoice -- Set up auto-delete of expired invoice
|
|
|
|
===================================================================
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2022-01-26 18:18:49 +01:00
|
|
|
**autocleaninvoice** [*cycle\_seconds*] [*expired\_by*]
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
The **autocleaninvoice** RPC command sets up automatic cleaning of
|
|
|
|
expired invoices.
|
|
|
|
|
|
|
|
Autoclean will be done every *cycle\_seconds* seconds. Setting
|
|
|
|
*cycle\_seconds* to 0 disables autoclean. If not specified, this
|
|
|
|
defaults to 3600 (one hour).
|
|
|
|
|
|
|
|
Every autoclean cycle, expired invoices, which have already been expired
|
|
|
|
for at least *expired\_by* seconds, will be deleted. If *expired\_by* is
|
|
|
|
not specified, this defaults to 86400 (one day).
|
|
|
|
|
|
|
|
On startup of the daemon, no autoclean is set up.
|
|
|
|
|
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
2021-05-26 07:51:01 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
|
|
On success, an object is returned, containing:
|
|
|
|
- **enabled** (boolean): whether invoice autocleaning is active
|
|
|
|
|
|
|
|
If **enabled** is *true*:
|
|
|
|
- **expired_by** (u64): how long an invoice must be expired (seconds) before we delete it
|
|
|
|
- **cycle_seconds** (u64): how long an invoice must be expired (seconds) before we delete it
|
2021-09-03 12:07:59 +02:00
|
|
|
|
2021-05-26 07:51:01 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
ZmnSCPxj <<ZmnSCPxj@protonmail.com>> is mainly responsible.
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
|
|
|
|
lightning-delexpiredinvoice(7), lightning-delinvoice(7)
|
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
---------
|
|
|
|
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|
2020-08-25 03:33:16 +02:00
|
|
|
|
2022-07-13 17:45:39 +02:00
|
|
|
[comment]: # ( SHA256STAMP:c5aedf100597dd0bd1bbbdf82964327035cd49df00d7b0aef6454e3b1ef39dbc)
|