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
2020-08-24 08:34:58 +02:00
committed by GitHub
8 changed files with 524 additions and 171 deletions

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"`