lnwire: let gossip messages implement GossipMessage

This commit is contained in:
Elle Mouton authored and yyforyongyu committed 2025-11-12 22:54:03 +08:00
1 parent 4d3bf6379a
commit ef0e6b78bb
9 files changed
+60

No files matched your search

+4
View File
@@ -45,6 +45,7 @@ type AnnounceSignatures interface {
ChanID() ChannelID
Message
GossipMessage
}
// ChannelAnnouncement is an interface that must be satisfied by any message
@@ -66,6 +67,7 @@ type ChannelAnnouncement interface {
Node2KeyBytes() [33]byte
Message
GossipMessage
}
// CompareResult represents the result after comparing two things.
@@ -122,6 +124,7 @@ type ChannelUpdate interface {
SetSCID(scid ShortChannelID)
Message
GossipMessage
}
// NodeAnnouncement is an interface that must be satisfied by any message used
@@ -138,6 +141,7 @@ type NodeAnnouncement interface {
TimestampDesc() string
Message
GossipMessage
}
// ForwardingPolicy defines the set of forwarding constraints advertised in a