Class SeedPeers

java.lang.Object
org.bitcoinj.net.discovery.SeedPeers
All Implemented Interfaces:
PeerDiscovery

public class SeedPeers extends Object implements PeerDiscovery
SeedPeers stores a pre-determined list of Bitcoin node addresses. These nodes are selected based on being active on the network for a long period of time. The intention is to be a last resort way of finding a connection to the network, in case IRC and DNS fail. The list comes from the Bitcoin C++ source code.
  • Constructor Details

    • SeedPeers

      public SeedPeers(NetworkParameters params)
      Supports finding peers by IP addresses
      Parameters:
      params - Network parameters to be used for port information.
    • SeedPeers

      public SeedPeers(int[] seedAddrs, NetworkParameters params)
      Supports finding peers by IP addresses
      Parameters:
      seedAddrs - IP addresses for seed addresses.
      params - Network parameters to be used for port information.
  • Method Details