Examples of PeerDiscovery


Examples of org.bitcoinj.net.discovery.PeerDiscovery

                if (params == RegTestParams.get()) {
                    vPeerGroup.setMaxConnections(1);
                } else {
                    // TODO: Replace this with a DNS seed that crawls for NODE_GETUTXOS (or whatever it's renamed to).
                    PeerDiscovery hardCodedPeers = new PeerDiscovery() {
                        @Override
                        public InetSocketAddress[] getPeers(long timeoutValue, TimeUnit timeoutUnit) throws PeerDiscoveryException {
                            InetSocketAddress[] result = new InetSocketAddress[2];
                            result[0] = new InetSocketAddress("vinumeris.com", params.getPort());
                            result[1] = new InetSocketAddress("riker.plan99.net", params.getPort());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.