From 1b7afc6da558c326bd6a39ed117f2715495c31ec Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Tue, 6 Mar 2018 15:31:05 -0500 Subject: [PATCH] htlcswitch/mock: add mock fwding log to initSwitchWithDB --- htlcswitch/mock.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htlcswitch/mock.go b/htlcswitch/mock.go index ca16c02f..871ecb21 100644 --- a/htlcswitch/mock.go +++ b/htlcswitch/mock.go @@ -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), + }, }) }