diff --git a/discovery/gossiper.go b/discovery/gossiper.go index 4f792fd4..e669f61a 100644 --- a/discovery/gossiper.go +++ b/discovery/gossiper.go @@ -2336,17 +2336,17 @@ func (d *AuthenticatedGossiper) processNetworkAnnouncement( source: nMsg.source, msg: chanAnn, }) - if e1Ann != nil { + if src, err := chanInfo.NodeKey1(); err == nil && e1Ann != nil { announcements = append(announcements, networkMsg{ peer: nMsg.peer, - source: nMsg.source, + source: src, msg: e1Ann, }) } - if e2Ann != nil { + if src, err := chanInfo.NodeKey2(); err == nil && e2Ann != nil { announcements = append(announcements, networkMsg{ peer: nMsg.peer, - source: nMsg.source, + source: src, msg: e2Ann, }) }