Browse Source

Testnet, Mark III

0.8
Gavin Andresen 13 years ago
parent
commit
feeb761ba0
  1. 4
      src/irc.cpp
  2. 6
      src/main.cpp
  3. 2
      src/util.cpp

4
src/irc.cpp

@ -291,8 +291,8 @@ void ThreadIRCSeed2(void* parg)
} }
if (fTestNet) { if (fTestNet) {
Send(hSocket, "JOIN #bitcoinTEST\r"); Send(hSocket, "JOIN #bitcoinTEST3\r");
Send(hSocket, "WHO #bitcoinTEST\r"); Send(hSocket, "WHO #bitcoinTEST3\r");
} else { } else {
// randomly join #bitcoin00-#bitcoin99 // randomly join #bitcoin00-#bitcoin99
int channel_number = GetRandInt(100); int channel_number = GetRandInt(100);

6
src/main.cpp

@ -1926,12 +1926,11 @@ bool LoadBlockIndex(bool fAllowNew)
{ {
if (fTestNet) if (fTestNet)
{ {
hashGenesisBlock = uint256("0x00000007199508e34a9ff81e6ec0c477a4cccff2a4767a8eee39c11db367b008");
bnProofOfWorkLimit = CBigNum(~uint256(0) >> 28);
pchMessageStart[0] = 0xfa; pchMessageStart[0] = 0xfa;
pchMessageStart[1] = 0xbf; pchMessageStart[1] = 0xbf;
pchMessageStart[2] = 0xb5; pchMessageStart[2] = 0xb5;
pchMessageStart[3] = 0xda; pchMessageStart[3] = 0xda;
hashGenesisBlock = uint256("000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943");
} }
// //
@ -1977,8 +1976,7 @@ bool LoadBlockIndex(bool fAllowNew)
if (fTestNet) if (fTestNet)
{ {
block.nTime = 1296688602; block.nTime = 1296688602;
block.nBits = 0x1d07fff8; block.nNonce = 414098458;
block.nNonce = 384568319;
} }
//// debug print //// debug print

2
src/util.cpp

@ -834,7 +834,7 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific)
path = GetDefaultDataDir(); path = GetDefaultDataDir();
} }
if (fNetSpecific && GetBoolArg("-testnet", false)) if (fNetSpecific && GetBoolArg("-testnet", false))
path /= "testnet"; path /= "testnet3";
fs::create_directory(path); fs::create_directory(path);

Loading…
Cancel
Save