Fixed testnet address prefix.

Moved to testnet5.
This commit is contained in:
Jianping Wu 2019-01-28 18:37:13 -08:00
parent 392b7aba5f
commit f5935c6a39
4 changed files with 24 additions and 16 deletions

View File

@ -214,10 +214,10 @@ public:
vSeeds.emplace_back("testnet-seed.kevacoin.org"); vSeeds.emplace_back("testnet-seed.kevacoin.org");
vSeeds.emplace_back("testnet-seed.honourchat.com"); vSeeds.emplace_back("testnet-seed.honourchat.com");
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,45); // K base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,55); // P
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,5); base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,5);
base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char>(1,70); // V base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char>(1,65); // T
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,139); // M base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,58); // 9
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E}; base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E};
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4}; base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4};
base58Prefixes[KEVA_NAMESPACE] = std::vector<unsigned char>(1,53); // N base58Prefixes[KEVA_NAMESPACE] = std::vector<unsigned char>(1,53); // N

View File

@ -46,7 +46,7 @@ public:
CBaseTestNetParams() CBaseTestNetParams()
{ {
nRPCPort = 19332; nRPCPort = 19332;
strDataDir = "testnet4"; strDataDir = "testnet5";
} }
}; };

View File

@ -616,7 +616,7 @@ fs::path static StartupShortcutPath()
std::string chain = ChainNameFromCommandLine(); std::string chain = ChainNameFromCommandLine();
if (chain == CBaseChainParams::MAIN) if (chain == CBaseChainParams::MAIN)
return GetSpecialFolderPath(CSIDL_STARTUP) / "Kevacoin.lnk"; return GetSpecialFolderPath(CSIDL_STARTUP) / "Kevacoin.lnk";
if (chain == CBaseChainParams::TESTNET) // Remove this special case when CBaseChainParams::TESTNET = "testnet4" if (chain == CBaseChainParams::TESTNET) // Remove this special case when CBaseChainParams::TESTNET = "testnet5"
return GetSpecialFolderPath(CSIDL_STARTUP) / "Kevacoin (testnet).lnk"; return GetSpecialFolderPath(CSIDL_STARTUP) / "Kevacoin (testnet).lnk";
return GetSpecialFolderPath(CSIDL_STARTUP) / strprintf("Kevacoin (%s).lnk", chain); return GetSpecialFolderPath(CSIDL_STARTUP) / strprintf("Kevacoin (%s).lnk", chain);
} }

View File

@ -17,8 +17,16 @@
} }
], ],
[ [
"MabRDMfcZ7GGgg8odQmfUavAwZJvFec24oTjHv5VjhqQ39gACb9D", "TPjFpBXnHtWQor2GtDdEaDJPaG3krHEBQk",
"1db843e5b6ff52c0cd10f845bea1acfc7521ce17d03abdd66a419ff3605c7997", "a91496ee490592fe4802908ebedc0766f6759fab2fc587",
{
"isPrivkey": false,
"chain": "test"
}
],
[
"9hiKJzEfitCmaMKQTo3HA1K4388xC1UanyQuDUVd9F1oLjSCH4gL",
"d34d5fa151df1abd508daa35b1f20db705ef11a4e304c0bde8db4eb2806e3932",
{ {
"isCompressed": true, "isCompressed": true,
"isPrivkey": true, "isPrivkey": true,