Skip to content

Commit b172227

Browse files
committed
lnwire: add Stfu to LinkUpdater interface
1 parent 0176fca commit b172227

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lnwire/stfu.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,15 @@ func (s *Stfu) Decode(r io.Reader, _ uint32) error {
6767
func (s *Stfu) MsgType() MessageType {
6868
return MsgStfu
6969
}
70+
71+
// A compile time check to ensure Stfu implements the
72+
// lnwire.LinkUpdater interface.
73+
var _ LinkUpdater = (*Stfu)(nil)
74+
75+
// TargetChanID returns the channel id of the link for which this message is
76+
// intended.
77+
//
78+
// NOTE: Part of peer.LinkUpdater interface.
79+
func (s *Stfu) TargetChanID() ChannelID {
80+
return s.ChanID
81+
}

0 commit comments

Comments
 (0)