htlcswitch: thread clock from switch to mailbox

This commit is contained in:
Conner Fromknecht committed 2020-04-14 10:49:26 -07:00
1 parent 63f3d0b012
commit 37dca27a3d
5 files changed
+55 -4

No files matched your search

+2
View File
@@ -177,6 +177,8 @@ func initSwitchWithDB(startingHeight uint32, db *channeldb.DB) (*Switch, error)
LogEventTicker: ticker.NewForce(DefaultLogInterval),
AckEventTicker: ticker.NewForce(DefaultAckInterval),
HtlcNotifier: &mockHTLCNotifier{},
Clock: clock.NewDefaultClock(),
HTLCExpiry: time.Hour,
}
return New(cfg, startingHeight)