@Test public void fromDiscoveryPeer_shouldConvertRealPeer() throws Exception { final DiscoveryPeer peer = new DiscoveryPeer( Bytes.fromHexString( "0x03B86ED9F747A7FA99963F39E3B176B45E9E863108A2D145EA3A4E76D8D0935194"), new InetSocketAddress(InetAddress.getByAddress(new byte[] {127, 0, 0, 1}), 9000), ENR_FORK_ID, PERSISTENT_SUBNETS); final Multiaddr expectedMultiAddr = Multiaddr.fromString( "/ip4/127.0.0.1/tcp/9000/p2p/16Uiu2HAmR4wQRGWgCNy5uzx7HfuV59Q6X1MVzBRmvreuHgEQcCnF"); assertThat(MultiaddrUtil.fromDiscoveryPeer(peer)).isEqualTo(expectedMultiAddr); }
public static Multiaddr fromDiscoveryPeer(final DiscoveryPeer peer) { return fromInetSocketAddress(peer.getNodeAddress(), getNodeId(peer)); }
MultiaddrUtil { public static Multiaddr fromDiscoveryPeer(final DiscoveryPeer peer) { return fromInetSocketAddress(peer.getNodeAddress(), getNodeId(peer)); } }
MultiaddrUtil { public static Multiaddr fromDiscoveryPeer(final DiscoveryPeer peer) { return fromInetSocketAddress(peer.getNodeAddress(), getNodeId(peer)); }  }
MultiaddrUtil { public static Multiaddr fromDiscoveryPeer(final DiscoveryPeer peer) { return fromInetSocketAddress(peer.getNodeAddress(), getNodeId(peer)); }  static Multiaddr fromDiscoveryPeer(final DiscoveryPeer peer); static Multiaddr fromDiscoveryPeerAsUdp(final DiscoveryPeer peer); static Multiaddr fromInetSocketAddress(
      final InetSocketAddress address, final NodeId nodeId); }
MultiaddrUtil { public static Multiaddr fromDiscoveryPeer(final DiscoveryPeer peer) { return fromInetSocketAddress(peer.getNodeAddress(), getNodeId(peer)); }  static Multiaddr fromDiscoveryPeer(final DiscoveryPeer peer); static Multiaddr fromDiscoveryPeerAsUdp(final DiscoveryPeer peer); static Multiaddr fromInetSocketAddress(
      final InetSocketAddress address, final NodeId nodeId);  }