Page 1 of 1

issue: IRC discovery in version 3.24.60

Posted: Tue Sep 06, 2011 7:02 pm
by zamgo
There is an issue with IRC peer discovery in version 3.24.60. Current system randomly sends clients to #namecoin0 to #namecoin99, but there are not enough active users on the network to support so many channels. Thus, many folks are reporting being unable to get any connections at startup.

from https://github.com/vinced/namecoin/blob ... rc/irc.cpp

Code: Select all

string channel = hooks->IrcPrefix();
string channel_number = fTestNet ? "" : strprintf("%02d", GetRandInt(100));
if (fTestNet)
  channel += "TEST";
string cmd = "JOIN #" + channel + channel_number + "\r";
note: quick workaround now is to use -addnode to get your first connection.

Re: issue: IRC discovery in version 3.24.60

Posted: Wed Sep 07, 2011 3:26 am
by twobits
zamgo wrote:There is an issue with IRC peer discovery in version 3.24.60. Current system randomly sends clients to #namecoin0 to #namecoin99, but there are not enough active users on the network to support so many channels. Thus, many folks are reporting being unable to get any connections at startup.

from https://github.com/vinced/namecoin/blob ... rc/irc.cpp

Code: Select all

string channel = hooks->IrcPrefix();
string channel_number = fTestNet ? "" : strprintf("%02d", GetRandInt(100));
if (fTestNet)
  channel += "TEST";
string cmd = "JOIN #" + channel + channel_number + "\r";
note: quick workaround now is to use -addnode to get your first connection.
Might make sense to change it to GetRandInt(10) or similar. Though the dns seeding should still let you find nodes even without the -addnode being used, or is that not set up for namecoins?

Re: issue: IRC discovery in version 3.24.60

Posted: Wed Sep 07, 2011 5:51 am
by nodemaster
Thank you for raising this issue. I was already wondering why I sometimes wait long time for connections after restart of namecoind. But I guess that explains. As a quick workaraund we should gather the pool IP addresses or other well connected 24/7 namecoin nodes. Users can then add them to their bitcoin.conf.

For MasterPool.eu add:

Code: Select all

addnode=178.63.100.86:8334
If I remember correctly we had a few (two?) nodes hardcoded into the client. Are they still online? Is there a possibility to add some nodes to all IRC channels or just spread enough?

Re: issue: IRC discovery in version 3.24.60

Posted: Thu Sep 08, 2011 2:14 am
by vinced
zamgo wrote:There is an issue with IRC peer discovery in version 3.24.60. Current system randomly sends clients to #namecoin0 to #namecoin99, but there are not enough active users on the network to support so many channels. Thus, many folks are reporting being unable to get any connections at startup.

from https://github.com/vinced/namecoin/blob ... rc/irc.cpp

Code: Select all

string channel = hooks->IrcPrefix();
string channel_number = fTestNet ? "" : strprintf("%02d", GetRandInt(100));
if (fTestNet)
  channel += "TEST";
string cmd = "JOIN #" + channel + channel_number + "\r";
note: quick workaround now is to use -addnode to get your first connection.
Thank you for the detailed report! A new version pushed: 0.3.24.61

This version uses two IRC channels for now.