Bitcoin Forum
August 19, 2019, 07:39:01 PM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   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 164 times)
Ryo1946
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?
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1566243541
Hero Member
*
Offline Offline

Posts: 1566243541

View Profile Personal Message (Offline)

Ignore
1566243541
Reply with quote  #2

1566243541
Report to moderator
MagicByt3
Full Member
***
Offline Offline

Activity: 294
Merit: 177


View Profile
March 04, 2019, 01:25:38 PM
Merited by suchmoon (4), dbshck (4), bones261 (2), ETFbitcoin (1), Coding Enthusiast (1), iasenko (1), Heisenberg_Hunter (1)
 #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");




MOONBOT PRO The Trading Terminal For Pro's - Contact me for 10% off PRO version & 20% Off Pro+Scalping Addon - Strategies Available -    
[ https://moon-bot.com/ ]
joniboini
Hero Member
*****
Offline Offline

Activity: 658
Merit: 1088



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.




.




  ▄▄▄▄▄▄▄▄▄▄▄▄▄
▄████████▀▀▀▀███▄
███████▀     ████
███████   ███████
█████        ████
███████   ███████
▀██████   ██████▀
  ▀▀▀▀▀   ▀▀▀▀▀

  ▄▄▄▄▄▄▄▄▄▄▄▄▄
▄██▀▀▀▀▀▀▀▀▀▀▀██▄
██    ▄▄▄▄▄ ▀  ██
██   █▀   ▀█   ██
██   █▄   ▄█   ██
██    ▀▀▀▀▀    ██
▀██▄▄▄▄▄▄▄▄▄▄▄██▀
  ▀▀▀▀▀▀▀▀▀▀▀▀▀

            ▄▄▄
█▄▄      ████████▄
 █████▄▄████████▌
▀██████████████▌
  █████████████
  ▀██████████▀
   ▄▄██████▀
    ▀▀▀▀▀

    ██  ██
  ███████████▄
    ██      ▀█
    ██▄▄▄▄▄▄█▀
    ██▀▀▀▀▀▀█▄
    ██      ▄█
  ███████████▀
    ██  ██




               ▄
       ▄  ▄█▄ ▀█▀      ▄
      ▀█▀  ▀   ▄  ▄█▄ ▀█▀
███▄▄▄        ▀█▀  ▀     ▄▄▄███       ▐█▄    ▄█▌   ▐█▌   █▄    ▐█▌   ████████   █████▄     ██    ▄█████▄▄   ▐█████▌
████████▄▄           ▄▄████████       ▐███▄▄███▌   ▐█▌   ███▄  ▐█▌      ██      █▌  ▀██    ██   ▄██▀   ▀▀   ▐█
███████████▄       ▄███████████       ▐█▌▀██▀▐█▌   ▐█▌   ██▀██▄▐█▌      ██      █▌   ▐█▌   ██   ██          ▐█████▌
 ████████████     ████████████        ▐█▌    ▐█▌   ▐█▌   ██  ▀███▌      ██      █▌  ▄██    ██   ▀██▄   ▄▄   ▐█
  ████████████   ████████████         ▐█▌    ▐█▌   ▐█▌   ██    ▀█▌      ██      █████▀     ██    ▀█████▀▀   ▐█████▌
   ▀███████████ ███████████▀
     ▀███████████████████▀
        ▀▀▀█████████▀▀▀
FIND OUT MORE AT MINTDICE.COM
Ryo1946
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
Sr. Member
****
Offline Offline

Activity: 602
Merit: 491



View Profile
March 04, 2019, 02:29:57 PM
Merited by MagicByt3 (4), ETFbitcoin (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




.




  ▄▄▄▄▄▄▄▄▄▄▄▄▄
▄████████▀▀▀▀███▄
███████▀     ████
███████   ███████
█████        ████
███████   ███████
▀██████   ██████▀
  ▀▀▀▀▀   ▀▀▀▀▀

  ▄▄▄▄▄▄▄▄▄▄▄▄▄
▄██▀▀▀▀▀▀▀▀▀▀▀██▄
██    ▄▄▄▄▄ ▀  ██
██   █▀   ▀█   ██
██   █▄   ▄█   ██
██    ▀▀▀▀▀    ██
▀██▄▄▄▄▄▄▄▄▄▄▄██▀
  ▀▀▀▀▀▀▀▀▀▀▀▀▀

            ▄▄▄
█▄▄      ████████▄
 █████▄▄████████▌
▀██████████████▌
  █████████████
  ▀██████████▀
   ▄▄██████▀
    ▀▀▀▀▀

    ██  ██
  ███████████▄
    ██      ▀█
    ██▄▄▄▄▄▄█▀
    ██▀▀▀▀▀▀█▄
    ██      ▄█
  ███████████▀
    ██  ██




               ▄
       ▄  ▄█▄ ▀█▀      ▄
      ▀█▀  ▀   ▄  ▄█▄ ▀█▀
███▄▄▄        ▀█▀  ▀     ▄▄▄███       ▐█▄    ▄█▌   ▐█▌   █▄    ▐█▌   ████████   █████▄     ██    ▄█████▄▄   ▐█████▌
████████▄▄           ▄▄████████       ▐███▄▄███▌   ▐█▌   ███▄  ▐█▌      ██      █▌  ▀██    ██   ▄██▀   ▀▀   ▐█
███████████▄       ▄███████████       ▐█▌▀██▀▐█▌   ▐█▌   ██▀██▄▐█▌      ██      █▌   ▐█▌   ██   ██          ▐█████▌
 ████████████     ████████████        ▐█▌    ▐█▌   ▐█▌   ██  ▀███▌      ██      █▌  ▄██    ██   ▀██▄   ▄▄   ▐█
  ████████████   ████████████         ▐█▌    ▐█▌   ▐█▌   ██    ▀█▌      ██      █████▀     ██    ▀█████▀▀   ▐█████▌
   ▀███████████ ███████████▀
     ▀███████████████████▀
        ▀▀▀█████████▀▀▀
FIND OUT MORE AT MINTDICE.COM
ETFbitcoin
Legendary
*
Offline Offline

Activity: 1736
Merit: 1974

Use SegWit and enjoy lower fees.


View Profile WWW
March 04, 2019, 04:55:41 PM
 #6

Heisenberg_Hunter explain it well and achow101 already answer similar question few months ago at https://bitcointalk.org/index.php?topic=5081689.msg48522880#msg48522880

But even if you managed to connect to other peers, you will meet another problem such as :
1. It's protocol simply too outdated, AFAIK current bitcoin protocol requiring you support P2SH which wasn't exist in v0.1.0
2. It's very slow not performance optimized, for example v0.1.0 using secp256k1 by OpenSSL rather than ones developed by Core's developer which is far faster

achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 1862
Merit: 2647


bc1qshxkrpe4arppq89fpzm6c0tpdvx5cfkve2c8kl


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

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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!