peer+lnwire: move LinkUpdater to lnwire

The purpose of this interface is to distinguish messages that are
bound to a particular channel_id from those that are not. There is
no reason this ought to be a property of the peer package as it is
entirely determined by the contents of the message itself. Therefore
we move it to the lnwire package so it can be used without having
import cycles elsewhere in the codebase.
This commit is contained in:
Keagan McClelland committed 2024-03-06 11:59:19 -08:00
1 parent 3761912680
commit f5f0286e34
3 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -1750,7 +1750,7 @@ out:
// will consider them as link updates and send them to
// chanStream. These messages will be queued inside chanStream
// if the channel is not active yet.
case LinkUpdater:
case lnwire.LinkUpdater:
targetChan = msg.TargetChanID()
isLinkUpdate = p.hasChannel(targetChan)