Merge pull request #24 from xnljfr/master

network is now over 3k peers , get them to join 50 random channels!
This commit is contained in:
dogecoin 2013-12-17 15:24:51 -08:00
commit cc86a178a4
3 changed files with 12 additions and 13 deletions

View File

@ -1,15 +1,12 @@
rpcuser=doge
rpcpassword=wow
rpcpassword=wow
rpcport=22555
addnode=95.85.29.144
addnode=162.243.113.110
addnode=146.185.181.114
rpcport=22555
addnode=95.85.29.144
addnode=162.243.113.110
addnode=146.185.181.114
addnode=188.165.19.28
addnode=78.46.57.132
server=1
daemon=1

View File

@ -137,7 +137,7 @@ double GetDifficulty(const CBlockIndex* blockindex = NULL)
int64 AmountFromValue(const Value& value)
{
double dAmount = value.get_real();
if (dAmount <= 0.0 || dAmount > 84000000.0)
if (dAmount <= 0.0 || dAmount > 500000000.0)
throw JSONRPCError(-3, "Invalid amount");
int64 nAmount = roundint64(dAmount * COIN);
if (!MoneyRange(nAmount))

View File

@ -299,8 +299,10 @@ void ThreadIRCSeed2(void* parg)
Send(hSocket, "WHO #dogecoinTEST3\r");
} else {
// randomly join #dogecoin00-#dogecoin99
int channel_number = GetRandInt(100);
channel_number = 0; // DogeCoin: for now, just use one channel
// network is now over 3k peers , get them to join 50 random channels!
// channel_number = 0;
int channel_number = GetRandInt(50);
Send(hSocket, strprintf("JOIN #dogecoin%02d\r", channel_number).c_str());
Send(hSocket, strprintf("WHO #dogecoin%02d\r", channel_number).c_str());
}