You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if p.blacklist.Contains(pid) {
log.Warning("already have connection to peer: ", pid)
continue
}
if p.blacklist.Contains(pid) {
log.Warning("ignoring connection from blacklisted peer: ", pid)
continue
}
this bug came to existence when the blacklist was promoted to an interface; initially there were two map checks, and they became two checks on the same object.
https://github.com/libp2p/go-libp2p-pubsub/blob/master/pubsub.go#L294
The second if should always be false, correct?
blame cc @vyzo
The text was updated successfully, but these errors were encountered: