// Returns whether or not a peer is blacklisted private bool IsPeerBlacklisted(PeerCandidate Peer) { // Lock blacklist to prevent race conditions lock (PeerBlackList) { // Return whether or not the blacklist contains this peer return(PeerBlackList.Contains(Peer.Id)); } }