fix testnet v3

This commit is contained in:
Evan Duffield 2014-12-23 08:32:55 -07:00
parent 67330fbb51
commit 8bc9cd7f48
2 changed files with 3 additions and 2 deletions

View File

@ -117,7 +117,7 @@ public:
vAlertPubKey = ParseHex("04517d8a699cb43d3938d7b24faaff7cda448ca4ea267723ba614784de661949bf632d6304316b244646dea079735b9a6fc4af804efb4752075b9fe2245e14e412"); vAlertPubKey = ParseHex("04517d8a699cb43d3938d7b24faaff7cda448ca4ea267723ba614784de661949bf632d6304316b244646dea079735b9a6fc4af804efb4752075b9fe2245e14e412");
nDefaultPort = 19999; nDefaultPort = 19999;
nRPCPort = 19998; nRPCPort = 19998;
strDataDir = "testnet4"; strDataDir = "testnet3";
// Modify the testnet genesis block so the timestamp is valid for a later start. // Modify the testnet genesis block so the timestamp is valid for a later start.
genesis.nTime = 1390666206; genesis.nTime = 1390666206;
@ -131,7 +131,7 @@ public:
vSeeds.push_back(CDNSSeedData("darkcoin.io", "testnet-seed.darkcoin.io")); vSeeds.push_back(CDNSSeedData("darkcoin.io", "testnet-seed.darkcoin.io"));
vSeeds.push_back(CDNSSeedData("darkcoin.qa", "testnet-seed.darkcoin.qa")); vSeeds.push_back(CDNSSeedData("darkcoin.qa", "testnet-seed.darkcoin.qa"));
base58Prefixes[PUBKEY_ADDRESS] = list_of(138); // Testnet v4 addresses start with x base58Prefixes[PUBKEY_ADDRESS] = list_of(111); // Testnet v3 addresses start with x
base58Prefixes[SCRIPT_ADDRESS] = list_of(196); base58Prefixes[SCRIPT_ADDRESS] = list_of(196);
base58Prefixes[SECRET_KEY] = list_of(266); base58Prefixes[SECRET_KEY] = list_of(266);
base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x35)(0x87)(0xCF); base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x35)(0x87)(0xCF);

View File

@ -1110,6 +1110,7 @@ bool AppInit2(boost::thread_group& threadGroup)
if(!darkSendSigner.SetKey(strMasterNodePrivKey, errorMessage, key, pubkey)) if(!darkSendSigner.SetKey(strMasterNodePrivKey, errorMessage, key, pubkey))
{ {
printf("%s\n", errorMessage.c_str());
return InitError(_("Invalid masternodeprivkey. Please see documenation.")); return InitError(_("Invalid masternodeprivkey. Please see documenation."));
} }