Skip to content

Commit

Permalink
discovery: prevent logging certain validation barrier errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wpaulino committed Apr 29, 2021
1 parent eb44131 commit 0ada228
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 @@ -1031,7 +1031,8 @@ func (d *AuthenticatedGossiper) networkHandler() {
announcement.msg,
)
if err != nil {
if err != routing.ErrVBarrierShuttingDown {
if err != routing.ErrVBarrierShuttingDown &&
err != routing.ErrParentValidationFailed {
log.Warnf("unexpected error "+
"during validation "+
"barrier shutdown: %v",
Expand Down Expand Up @@ -1561,7 +1562,7 @@ func (d *AuthenticatedGossiper) processNetworkAnnouncement(
routing.ErrIgnored) {

log.Debug(err)
} else {
} else if err != routing.ErrVBarrierShuttingDown {
log.Error(err)
}

Expand Down Expand Up @@ -2042,7 +2043,7 @@ func (d *AuthenticatedGossiper) processNetworkAnnouncement(
if routing.IsError(err, routing.ErrOutdated,
routing.ErrIgnored) {
log.Debug(err)
} else {
} else if err != routing.ErrVBarrierShuttingDown {
d.rejectMtx.Lock()
d.recentRejects[msg.ShortChannelID.ToUint64()] = struct{}{}
d.rejectMtx.Unlock()
Expand Down

0 comments on commit 0ada228

Please sign in to comment.