htlcswitch/mock: add mock fwding log to initSwitchWithDB

This commit is contained in:
Conner Fromknecht 2018-03-06 15:31:05 -05:00
parent 5fd1206da6
commit 1b7afc6da5
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF

@ -137,6 +137,9 @@ func initSwitchWithDB(db *channeldb.DB) (*Switch, error) {
return New(Config{
DB: db,
SwitchPackager: channeldb.NewSwitchPackager(),
FwdingLog: &mockForwardingLog{
events: make(map[time.Time]channeldb.ForwardingEvent),
},
})
}