@Test public void getPeer_one() throws Exception{ SeedPeers seedPeers = new SeedPeers(MAINNET); assertThat(seedPeers.getPeer(), notNullValue()); }
@Nullable public InetSocketAddress getPeer() throws PeerDiscoveryException { try { return nextPeer(); } catch (UnknownHostException e) { throw new PeerDiscoveryException(e); } }
SeedPeers implements PeerDiscovery { @Nullable public InetSocketAddress getPeer() throws PeerDiscoveryException { try { return nextPeer(); } catch (UnknownHostException e) { throw new PeerDiscoveryException(e); } } }
SeedPeers implements PeerDiscovery { @Nullable public InetSocketAddress getPeer() throws PeerDiscoveryException { try { return nextPeer(); } catch (UnknownHostException e) { throw new PeerDiscoveryException(e); } } SeedPeers(NetworkParameters params);  SeedPeers(int[] seedAddrs, NetworkParameters params); }
SeedPeers implements PeerDiscovery { @Nullable public InetSocketAddress getPeer() throws PeerDiscoveryException { try { return nextPeer(); } catch (UnknownHostException e) { throw new PeerDiscoveryException(e); } } SeedPeers(NetworkParameters params);  SeedPeers(int[] seedAddrs, NetworkParameters params); @Nullable InetSocketAddress getPeer(); @Override List<InetSocketAddress> getPeers(long services, long timeoutValue, TimeUnit timeoutUnit); @Override void shutdown(); }
SeedPeers implements PeerDiscovery { @Nullable public InetSocketAddress getPeer() throws PeerDiscoveryException { try { return nextPeer(); } catch (UnknownHostException e) { throw new PeerDiscoveryException(e); } } SeedPeers(NetworkParameters params);  SeedPeers(int[] seedAddrs, NetworkParameters params); @Nullable InetSocketAddress getPeer(); @Override List<InetSocketAddress> getPeers(long services, long timeoutValue, TimeUnit timeoutUnit); @Override void shutdown();  }