htlcswitch/mock: add mock fwding log to initSwitchWithDB
This commit is contained in:
parent
5fd1206da6
commit
1b7afc6da5
@ -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),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user