code: def AddConnectedPeer(self, peer):
          
          # if present
          self.RemoveFromQueue(peer.address)
          self.AddKnownAddress(peer.address)
  
          if len(self.Peers) > settings.CONNECTED_PEER_MAX:
              peer.Disconnect("Max connected peers reached", isDead=False)
  
          if peer not in self.Peers:
              self.Peers.append(peer)
          else:
              # either peer is already in the list and it has reconnected before it timed out on our side
              # or it's trying to connect multiple times
              # or we hit the max connected peer count
              self.RemoveKnownAddress(peer.address)
              peer.Disconnect()
docs: Add a new connect peer to the known peers list.
  
          Args:
              peer (NeoNode): instance.