routing: add clock to router config

This commit is contained in:
Joost Jager committed 2020-03-09 11:43:44 +01:00
1 parent c357511051
commit 8558534417
3 files changed
+10 -2

No files matched your search

+1
View File
@@ -740,6 +740,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB,
AssumeChannelValid: cfg.Routing.UseAssumeChannelValid(),
NextPaymentID: sequencer.NextID,
PathFindingConfig: pathFindingConfig,
Clock: clock.NewDefaultClock(),
})
if err != nil {
return nil, fmt.Errorf("can't create router: %v", err)