htlcswitch: interceptor expiry check

This commit is contained in:
Joost Jager
2022-01-28 12:56:17 +01:00
parent bae0b6bdf9
commit 13dff2fb3e
6 changed files with 143 additions and 14 deletions

View File

@@ -185,7 +185,7 @@ func initSwitchWithDB(startingHeight uint32, db *channeldb.DB) (*Switch, error)
events: make(map[time.Time]channeldb.ForwardingEvent),
},
FetchLastChannelUpdate: func(lnwire.ShortChannelID) (*lnwire.ChannelUpdate, error) {
return nil, nil
return &lnwire.ChannelUpdate{}, nil
},
Notifier: &mock.ChainNotifier{
SpendChan: make(chan *chainntnfs.SpendDetail),