package com.msgilligan.peerlist.config;

import com.google.bitcoin.core.NetworkParameters;
import com.google.bitcoin.net.discovery.DnsDiscovery;
import com.google.bitcoin.net.discovery.PeerDiscovery;
import com.google.bitcoin.params.MainNetParams;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * User: sean
 * Date: 2/22/14
 * Time: 7:56 PM
 */
@Configuration
public class BitcoinConfig {
    @Bean
    public NetworkParameters networkParameters() {
        return MainNetParams.get();
    }

    @Bean
    public PeerDiscovery peerDiscovery(NetworkParameters params) {
        return new DnsDiscovery(params);
    }
}

@@ -185,32 +185,83 @@
 .PeerDiscovery;%0A
+import com.google.bitcoin.net.discovery.SeedPeers;%0A
 import com.googl
@@ -292,16 +292,16 @@
 Params;%0A
-
 import o
@@ -406,16 +406,55 @@
 ation;%0A%0A
+import java.io.FileNotFoundException;%0A%0A
 /**%0A * U
@@ -728,49 +728,159 @@
 ms) 
-%7B%0A        return new DnsDiscovery(params)
+throws FileNotFoundException %7B%0A        PeerDiscovery pd;%0A//        pd = new DnsDiscovery(params);%0A        pd = new SeedPeers(params);%0A        return pd
 ;%0A  

Use SeedPeers for PeerDiscovery.