mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-18 05:13:36 +01:00
lnwire: add Stfu to LinkUpdater interface
This commit is contained in:
parent
0176fca826
commit
b172227cb3
@ -67,3 +67,15 @@ func (s *Stfu) Decode(r io.Reader, _ uint32) error {
|
||||
func (s *Stfu) MsgType() MessageType {
|
||||
return MsgStfu
|
||||
}
|
||||
|
||||
// A compile time check to ensure Stfu implements the
|
||||
// lnwire.LinkUpdater interface.
|
||||
var _ LinkUpdater = (*Stfu)(nil)
|
||||
|
||||
// TargetChanID returns the channel id of the link for which this message is
|
||||
// intended.
|
||||
//
|
||||
// NOTE: Part of peer.LinkUpdater interface.
|
||||
func (s *Stfu) TargetChanID() ChannelID {
|
||||
return s.ChanID
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user