Merge pull request #4493 from bhandras/invoice_gc

invoices: garbage collect settled/canceled invoices
This commit is contained in:
András Bánki-Horváth authored and GitHub committed 2020-08-24 08:34:58 +02:00
commit c3821e5ad1
8 files changed
+524 -171

No files matched your search

+4
View File
@@ -245,6 +245,10 @@ type Config struct {
KeysendHoldTime time.Duration `long:"keysend-hold-time" description:"If non-zero, keysend payments are accepted but not immediately settled. If the payment isn't settled manually after the specified time, it is canceled automatically. [experimental]"`
GcCanceledInvoicesOnStartup bool `long:"gc-canceled-invoices-on-startup" description:"If true, we'll attempt to garbage collect canceled invoices upon start."`
GcCanceledInvoicesOnTheFly bool `long:"gc-canceled-invoices-on-the-fly" description:"If true, we'll delete newly canceled invoices on the fly."`
Routing *routing.Conf `group:"routing" namespace:"routing"`
Workers *lncfg.Workers `group:"workers" namespace:"workers"`