fundingmgr+server: don't use global cfg

This commit is contained in:
Oliver Gugger committed 2020-05-14 16:18:01 +02:00
1 parent d44f205e3f
commit 7ce70321ac
3 files changed
+20 -9

No files matched your search

+2
View File
@@ -1144,6 +1144,8 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB,
NotifyOpenChannelEvent: s.channelNotifier.NotifyOpenChannelEvent,
OpenChannelPredicate: chanPredicate,
NotifyPendingOpenChannelEvent: s.channelNotifier.NotifyPendingOpenChannelEvent,
EnableUpfrontShutdown: cfg.EnableUpfrontShutdown,
RegisteredChains: cfg.registeredChains,
})
if err != nil {
return nil, err