Author

Topic: How can I get bitcoin v 0.1.0 to connect to other peers?n (Read 287 times)

staff
Activity: 3458
Merit: 6793
Just writing some code
1. It's protocol simply too outdated, AFAIK current bitcoin protocol requiring you support P2SH which wasn't exist in v0.1.0
P2SH is a consensus change, not a network protocol change. Furthermore, it is a soft fork so it should be backwards compatible. However, it is also important to note that there have been some intentional and unintentional hard forks introduced by Satoshi which would cause issues.
legendary
Activity: 1584
Merit: 1280
Heisenberg Design Services
MagicByt3 has given a pretty good explanation. But if you don't understand how the code works, read my post which is written in layman terms for people having no knowledge in bitcoin.

You were asking for a question which requires the history to be revisited. When satoshi handed over the bitcoin 0.1.0 to Hal for testing purposes, he was quite interested to run the client after reading through the whitepaper. But once the client started, it crashed all of a sudden. Hence Hal posted the issue along with the debug.log file in the sourceforge website. When it was seen by satoshi, the 0.1.0 seemed to have difficulties in connecting to other nodes and also the firewall blocked the incoming connections to the node. This was the reason why he build a 0.1.2 version and released it to Hal 2 days later. This is the first and foremost bigger problem of using the older client.

The second one is that, the bitcoin 0.1.0 and higher, functions similar to a torrent client. The 0.1.0 client connected to freenode, so if your ISP doesn't allow you to connect to the freenode you won't be able to use the bitcoin (isn't it pathetic enough). Later after 6 months or so, freenode doesn't seem to work well. Hence Lazlo provided irc.lfnet.org. Here is the announcement from satoshi for that

Lets try using Laszlo's irc.lfnet.org instead of freenode.  Here's RC2, that's the only change in it:

(see below for download links)


Later on, when this went down IRC function was removed completely i.e the newer nodes doesn't work the way the old client is. You need to modify the code to connect to other clients by using peers.dat

AFAIK, these are the important reasons which will prevent your client from entering the newer chain.

Anybody have a clue as to how I can connect it to other peers? Easy way?
There is no such easy way, other than modifying the code and doing some random stuffs which cannot even be compiled for people like us.  Grin Forget that idea, and start using the newer version.

P.S You are asking for a old man to run as fast as a young man, which isn't possible at all.  Tongue
newbie
Activity: 10
Merit: 0
There’s a lot of mysterious stuff in the debug log file IRC emails messages tons of stuff
legendary
Activity: 2170
Merit: 1789
Why did you try to connect such an ancient client btw? If there's no special purpose, you should upgrade to the latest version to avoid any problem and bugs that existed in the old one.
hero member
Activity: 1241
Merit: 623
OGRaccoon
I’ve been trying to connect the oldest bitcoin executable but I can’d Get it to connect. Anybody have a clue as to how I can connect it to other peers? Easy way?

As far as I am aware you can't use that version anymore you won't get any connections or sync the blockchain.
I have a feeling  v0.1.0  makes calls to the IRC channel to look for peers.

https://github.com/Dan-McG/bitcoin-0.1.0/blob/master/src/net.cpp

Code:
bool GetMyExternalIP(unsigned int& ipRet)
{
    CAddress addrConnect("72.233.89.199:80"); // whatismyip.com 198-200

    SOCKET hSocket;
    if (!ConnectSocket(addrConnect, hSocket))
        return error("GetMyExternalIP() : connection to %s failed\n", addrConnect.ToString().c_str());

    char* pszGet =
        "GET /automation/n09230945.asp HTTP/1.1\r\n"
        "Host: www.whatismyip.com\r\n"
        "User-Agent: Bitcoin/0.1\r\n"
        "Connection: close\r\n"
        "\r\n";
    send(hSocket, pszGet, strlen(pszGet), 0);

    string strLine;
    while (RecvLine(hSocket, strLine))
    {
        if (strLine.empty())
        {
            if (!RecvLine(hSocket, strLine))
            {
                closesocket(hSocket);
                return false;
            }
            closesocket(hSocket);
            CAddress addr(strLine.c_str());
            printf("GetMyExternalIP() received [%s] %s\n", strLine.c_str(), addr.ToString().c_str());
            if (addr.ip == 0)
                return false;
            ipRet = addr.ip;
            return true;
        }
    }
    closesocket(hSocket);
return error("GetMyExternalIP() : connection closed\n");



newbie
Activity: 10
Merit: 0
I’ve been trying to connect the oldest bitcoin executable but I can’d Get it to connect. Anybody have a clue as to how I can connect it to other peers? Easy way?
Jump to: