Title: Hard Coded Peers? Post by: Anonymous on December 28, 2011, 02:32:11 AM I was developing my own bitcoin version, and I need to know. Can someone provide a list of clients that are trusted clients, to always be up, and at the latest version, 24/7. Something that would be hard coded into a bitcoin client.
Title: Re: Hard Coded Peers? Post by: jim618 on December 28, 2011, 11:53:52 AM Hi Macintosh264,
You are using bitcoinj I believe so can use the class com.google.bitcoin.discovery.DnsDiscovery to get your peers rather than hardcoding them. In MultiBit I have the following (in the class MultiBitService): // use DNS for production, IRC for test if (useTestNet) { peerGroup.addPeerDiscovery(new IrcDiscovery(IRC_CHANNEL_TEST)); } else { peerGroup.addPeerDiscovery(new DnsDiscovery(networkParameters)); } In the code of DnsDiscovery is: public static final String[] defaultHosts = new String[]{ "bitseed.xf2.org", // Static "bitseed.bitcoin.org.uk", // Static "dnsseed.bluematt.me" // Auto generated }; /** * Supports finding peers through DNS A records. Community run DNS entry points will be used. * * @param netParams Network parameters to be used for port information. */ public DnsDiscovery(NetworkParameters netParams) { this(getDefaultHostNames(), netParams); } /** * Supports finding peers through DNS A records. * * @param hostNames Host names to be examined for seed addresses. * @param netParams Network parameters to be used for port information. */ public DnsDiscovery(String[] hostNames, NetworkParameters netParams) { this.hostNames = hostNames; this.netParams = netParams; } Title: Re: Hard Coded Peers? Post by: kokjo on December 28, 2011, 11:58:19 AM I was developing my own bitcoin version, and I need to know. Can someone provide a list of clients that are trusted clients, to always be up, and at the latest version, 24/7. Something that would be hard coded into a bitcoin client. trusted peers are NOT the way to go. and running the latest version is not possible as it is a opensource project with forks, and alternative clientsTitle: Re: Hard Coded Peers? Post by: Red Emerald on December 29, 2011, 08:28:14 AM I was developing my own bitcoin version, and I need to know. Can someone provide a list of clients that are trusted clients, to always be up, and at the latest version, 24/7. Something that would be hard coded into a bitcoin client. trusted peers are NOT the way to go. and running the latest version is not possible as it is a opensource project with forks, and alternative clientstrusted peers are what bitcoin uses if it can't hit the IRC channel. What do you propose instead? I think he means latest version of the protocol, not the client. These two things get confused all the time because they are both called "bitcoin." Title: Re: Hard Coded Peers? Post by: kokjo on December 29, 2011, 10:23:32 AM I was developing my own bitcoin version, and I need to know. Can someone provide a list of clients that are trusted clients, to always be up, and at the latest version, 24/7. Something that would be hard coded into a bitcoin client. trusted peers are NOT the way to go. and running the latest version is not possible as it is a opensource project with forks, and alternative clientstrusted peers are what bitcoin uses if it can't hit the IRC channel. What do you propose instead? I think he means latest version of the protocol, not the client. These two things get confused all the time because they are both called "bitcoin." if you want trusted peers go to solidcoin. Title: Re: Hard Coded Peers? Post by: Red Emerald on December 29, 2011, 10:28:46 AM Oh I see. You are correct "known" is more accurate than "trusted" and should be used instead.
|