Skip to content

Commit

Permalink
discovery: Lower ignored ChannelUpdate log to debug
Browse files Browse the repository at this point in the history
User doesn't have to do anything about this, so logging at debug level
is fine.
  • Loading branch information
matheusd committed Nov 15, 2023
1 parent affc655 commit 7e40ab0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions discovery/gossiper.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,13 +559,14 @@ func (d *AuthenticatedGossiper) ProcessRemoteAnnouncement(msg lnwire.Message,
// from the remote.
case *lnwire.ChannelAnnouncement:
ownKey := d.selfKey.SerializeCompressed()
ownErr := fmt.Errorf("ignoring remote ChannelAnnouncement " +
"for own channel")
ownErr := fmt.Errorf("ignoring remote ChannelAnnouncement "+
"for own channel %s received from %v", m.ShortChannelID,
peer)

if bytes.Equal(m.NodeID1[:], ownKey) ||
bytes.Equal(m.NodeID2[:], ownKey) {

log.Warn(ownErr)
log.Debug(ownErr)
errChan <- ownErr
return errChan
}
Expand Down

0 comments on commit 7e40ab0

Please sign in to comment.