forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
invoices: Implement autocleaninvoice.
- Loading branch information
Showing
13 changed files
with
227 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
LIGHTNING-AUTOCLEANINVOICE(7) | ||
============================= | ||
:doctype: manpage | ||
|
||
NAME | ||
---- | ||
lightning-autocleaninvoice - Set up auto-delete of expired invoice | ||
|
||
SYNOPSIS | ||
-------- | ||
*autocleaninvoice* ['cycle_seconds'] ['expired_by'] | ||
|
||
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 | ||
------------ | ||
On success, an empty object is returned. | ||
|
||
AUTHOR | ||
------ | ||
ZmnSCPxj <[email protected]> is mainly responsible. | ||
|
||
SEE ALSO | ||
-------- | ||
lightning-delexpiredinvoice(7), lightning-delinvoice(7) | ||
|
||
RESOURCES | ||
--------- | ||
Main web site: https://github.com/ElementsProject/lightning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
'\" t | ||
.\" Title: lightning-delexpiredinvoice | ||
.\" Author: [see the "AUTHOR" section] | ||
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> | ||
.\" Date: 03/17/2018 | ||
.\" Manual: \ \& | ||
.\" Source: \ \& | ||
.\" Language: English | ||
.\" | ||
.TH "LIGHTNING\-DELEXPIRE" "7" "03/17/2018" "\ \&" "\ \&" | ||
.\" ----------------------------------------------------------------- | ||
.\" * Define some portability stuff | ||
.\" ----------------------------------------------------------------- | ||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.\" http://bugs.debian.org/507673 | ||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html | ||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.ie \n(.g .ds Aq \(aq | ||
.el .ds Aq ' | ||
.\" ----------------------------------------------------------------- | ||
.\" * set default formatting | ||
.\" ----------------------------------------------------------------- | ||
.\" disable hyphenation | ||
.nh | ||
.\" disable justification (adjust text to left margin only) | ||
.ad l | ||
.\" ----------------------------------------------------------------- | ||
.\" * MAIN CONTENT STARTS HERE * | ||
.\" ----------------------------------------------------------------- | ||
.SH "NAME" | ||
lightning-delexpiredinvoice \- Protocol for removing expired invoices\&. | ||
.SH "SYNOPSIS" | ||
.sp | ||
\fBdelexpiredinvoice\fR [\fImaxexpirytime\fR] | ||
.SH "DESCRIPTION" | ||
.sp | ||
The \fBdelexpiredinvoice\fR RPC command removes all invoices that have expired on or before the given \fImaxexpirytime\fR\&. | ||
.sp | ||
If \fImaxexpirytime\fR is not specified then all expired invoices are deleted\&. | ||
.SH "RETURN VALUE" | ||
.sp | ||
On success, an empty object is returned\&. | ||
.SH "AUTHOR" | ||
.sp | ||
ZmnSCPxj <ZmnSCPxj@protonmail\&.com> is mainly responsible\&. | ||
.SH "SEE ALSO" | ||
.sp | ||
lightning\-delinvoice(7), lightning\-autocleaninvoice(7) | ||
.SH "RESOURCES" | ||
.sp | ||
Main web site: https://github\&.com/ElementsProject/lightning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,15 +20,15 @@ deleted. | |
|
||
RETURN VALUE | ||
------------ | ||
On success, does nothing. | ||
On success, an empty object is returned. | ||
|
||
AUTHOR | ||
------ | ||
ZmnSCPxj <[email protected]> is mainly responsible. | ||
|
||
SEE ALSO | ||
-------- | ||
lightning-delinvoice(7) | ||
lightning-delinvoice(7), lightning-autocleaninvoice(7) | ||
|
||
RESOURCES | ||
--------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ Rusty Russell <[email protected]> is mainly responsible. | |
SEE ALSO | ||
-------- | ||
lightning-listinvoice(7), lightning-waitinvoice(7), lightning-invoice(7), | ||
lightning-delexpiredinvoice(7) | ||
lightning-delexpiredinvoice(7), lightning-autocleaninvoice(7) | ||
|
||
RESOURCES | ||
--------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters