public boolean discoveryEndpointMatches(final DiscoveryPeer peer) {
    return peer.getEndpoint().getHost().equals(endpoint.getHost())
        && peer.getEndpoint().getUdpPort() == endpoint.getUdpPort();
  }
Represents an Ethereum node that we are interacting with through the discovery and wire
protocols.
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/DiscoveryPeer.java