// Adds a peer to the list of blacklisted peers private void AddBlacklistedPeer(PeerCandidate Peer) { // Lock blacklist to prevent race conditions lock (PeerBlackList) { // Add the peer id to the list PeerBlackList.Add(Peer.Id); } }