config: expose distinct accept-amp flag

This mirrors the accept-keysend flag, but also permits users to
eventually toggle off keysend separately from AMP.
This commit is contained in:
Conner Fromknecht
2021-05-06 09:19:05 -07:00
parent 64d07558d9
commit 2ecd1de713
6 changed files with 53 additions and 32 deletions

View File

@@ -427,6 +427,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
HtlcHoldDuration: invoices.DefaultHtlcHoldDuration,
Clock: clock.NewDefaultClock(),
AcceptKeySend: cfg.AcceptKeySend,
AcceptAMP: cfg.AcceptAMP,
GcCanceledInvoicesOnStartup: cfg.GcCanceledInvoicesOnStartup,
GcCanceledInvoicesOnTheFly: cfg.GcCanceledInvoicesOnTheFly,
KeysendHoldTime: cfg.KeysendHoldTime,