From b172227cb30bbc514186a86f82b984353b27f847 Mon Sep 17 00:00:00 2001 From: Keagan McClelland Date: Mon, 11 Dec 2023 13:03:47 -0800 Subject: [PATCH] lnwire: add Stfu to LinkUpdater interface --- lnwire/stfu.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lnwire/stfu.go b/lnwire/stfu.go index 0ba1730f4..a052a517a 100644 --- a/lnwire/stfu.go +++ b/lnwire/stfu.go @@ -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 +}