Bitcoin Forum
April 27, 2024, 09:00:02 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How can I get bitcoin v 0.1.0 to connect to other peers?n  (Read 268 times)
Ryo1946 (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
March 04, 2019, 12:34:21 PM
 #1

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?
1714251602
Hero Member
*
Offline Offline

Posts: 1714251602

View Profile Personal Message (Offline)

Ignore
1714251602
Reply with quote  #2

1714251602
Report to moderator
1714251602
Hero Member
*
Offline Offline

Posts: 1714251602

View Profile Personal Message (Offline)

Ignore
1714251602
Reply with quote  #2

1714251602
Report to moderator
1714251602
Hero Member
*
Offline Offline

Posts: 1714251602

View Profile Personal Message (Offline)

Ignore
1714251602
Reply with quote  #2

1714251602
Report to moderator
Be very wary of relying on JavaScript for security on crypto sites. The site can change the JavaScript at any time unless you take unusual precautions, and browsers are not generally known for their airtight security.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714251602
Hero Member
*
Offline Offline

Posts: 1714251602

View Profile Personal Message (Offline)

Ignore
1714251602
Reply with quote  #2

1714251602
Report to moderator
DaCryptoRaccoon
Hero Member
*****
Offline Offline

Activity: 1197
Merit: 580


OGRaccoon


View Profile
March 04, 2019, 01:25:38 PM
 #2

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");




┏━━━━━━━━━━━━━━━━━┓
┃   💎 Mine Solo with CKPool 💎    ┃
┃    ➤ Hit Blocks on Your Own!      ┃
┃ ███▓▓  ███▓▓  ███▓▓  ███▓▓┃
joniboini
Legendary
*
Offline Offline

Activity: 2170
Merit: 1789



View Profile WWW
March 04, 2019, 01:33:36 PM
 #3

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.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
Ryo1946 (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
March 04, 2019, 01:50:11 PM
 #4

There’s a lot of mysterious stuff in the debug log file IRC emails messages tons of stuff
Heisenberg_Hunter
Legendary
*
Offline Offline

Activity: 1583
Merit: 1276


Heisenberg Design Services


View Profile WWW
March 04, 2019, 02:29:57 PM
Merited by DaCryptoRaccoon (4), ABCbits (2), vapourminer (1)
 #5

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
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3374
Merit: 6541


Just writing some code


View Profile WWW
March 04, 2019, 08:12:06 PM
Merited by ABCbits (2)
 #6

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.

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!