htlcswitch: prevent ChannelLink from leaking ChannelPoint pointer

This commit is contained in:
Keagan McClelland committed 2024-03-08 15:48:02 -08:00
1 parent db39a905cb
commit 16be46c1e5
3 files changed
+11 -9

No files matched your search

+4 -1
View File
@@ -907,7 +907,10 @@ func (f *mockChannelLink) PeerPubKey() [33]byte {
return f.peer.PubKey()
}
func (f *mockChannelLink) ChannelPoint() *wire.OutPoint { return &wire.OutPoint{} }
func (f *mockChannelLink) ChannelPoint() wire.OutPoint {
return wire.OutPoint{}
}
func (f *mockChannelLink) Stop() {}
func (f *mockChannelLink) EligibleToForward() bool { return f.eligible }
func (f *mockChannelLink) MayAddOutgoingHtlc(lnwire.MilliSatoshi) error { return nil }