Bitcoin Forum
November 12, 2024, 04:26:21 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Hard Coded Peers?  (Read 1739 times)
Anonymous
Guest

December 28, 2011, 02:32:11 AM
 #1

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.
jim618
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
December 28, 2011, 11:53:52 AM
 #2

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;
    }



MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
kokjo
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000

You are WRONG!


View Profile
December 28, 2011, 11:58:19 AM
 #3

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 clients

"The whole problem with the world is that fools and fanatics are always so certain of themselves and wiser people so full of doubts." -Bertrand Russell
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500



View Profile WWW
December 29, 2011, 08:28:14 AM
 #4

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 clients

trusted 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."

kokjo
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000

You are WRONG!


View Profile
December 29, 2011, 10:23:32 AM
 #5

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 clients

trusted 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."

i do not trust the peers i connect to! its better to call them known peers.
if you want trusted peers go to solidcoin.

"The whole problem with the world is that fools and fanatics are always so certain of themselves and wiser people so full of doubts." -Bertrand Russell
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500



View Profile WWW
December 29, 2011, 10:28:46 AM
 #6

Oh I see. You are correct "known" is more accurate than "trusted" and should be used instead.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!