invoices: add RegistryConfig struct

This commit is contained in:
Joost Jager committed 2019-12-11 16:08:07 +01:00
1 parent 56282db30a
commit 499f2b16cf
4 files changed
+39 -19

No files matched your search

+5 -3
View File
@@ -378,6 +378,10 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB,
return nil, err
}
registryConfig := invoices.RegistryConfig{
FinalCltvRejectDelta: defaultFinalCltvRejectDelta,
}
s := &server{
chanDB: chanDB,
cc: cc,
@@ -386,9 +390,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB,
readPool: readPool,
chansToRestore: chansToRestore,
invoices: invoices.NewRegistry(
chanDB, defaultFinalCltvRejectDelta,
),
invoices: invoices.NewRegistry(chanDB, &registryConfig),
channelNotifier: channelnotifier.New(chanDB),