mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-27 20:27:48 +02:00
htlcswitch tests: add missing OnChannelFailure to test link configs
This commit is contained in:
@@ -1489,7 +1489,8 @@ func newSingleLinkTestHarness(chanAmt, chanReserve btcutil.Amount) (
|
|||||||
},
|
},
|
||||||
FetchLastChannelUpdate: mockGetChanUpdateMessage,
|
FetchLastChannelUpdate: mockGetChanUpdateMessage,
|
||||||
PreimageCache: pCache,
|
PreimageCache: pCache,
|
||||||
OnChannelFailure: func(lnwire.ChannelID, lnwire.ShortChannelID, LinkFailureError) {
|
OnChannelFailure: func(lnwire.ChannelID,
|
||||||
|
lnwire.ShortChannelID, LinkFailureError) {
|
||||||
},
|
},
|
||||||
UpdateContractSignals: func(*contractcourt.ContractSignals) error {
|
UpdateContractSignals: func(*contractcourt.ContractSignals) error {
|
||||||
return nil
|
return nil
|
||||||
@@ -3879,6 +3880,9 @@ func restartLink(aliceChannel *lnwallet.LightningChannel, aliceSwitch *Switch,
|
|||||||
},
|
},
|
||||||
FetchLastChannelUpdate: mockGetChanUpdateMessage,
|
FetchLastChannelUpdate: mockGetChanUpdateMessage,
|
||||||
PreimageCache: pCache,
|
PreimageCache: pCache,
|
||||||
|
OnChannelFailure: func(lnwire.ChannelID,
|
||||||
|
lnwire.ShortChannelID, LinkFailureError) {
|
||||||
|
},
|
||||||
UpdateContractSignals: func(*contractcourt.ContractSignals) error {
|
UpdateContractSignals: func(*contractcourt.ContractSignals) error {
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user