Browse Source

Used kva instead of ltc.

Changed Base58 prefix for legacy (K), segwit (V) and secret key (M).
0.16.3-insta
Jianping Wu 6 years ago
parent
commit
f65c5e11f2
  1. 12
      src/chainparams.cpp

12
src/chainparams.cpp

@ -154,14 +154,14 @@ public: @@ -154,14 +154,14 @@ public:
vSeeds.emplace_back("dnsseed.koin-project.com");
vSeeds.clear(); //JW remove this!
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,48);
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,45); // K
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,5);
base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char>(1,50);
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,176);
base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char>(1,70); // V
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,139); // M
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E};
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4};
bech32_hrp = "ltc";
bech32_hrp = "kva";
vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main));
vFixedSeeds.clear(); //JW remove this!
@ -287,7 +287,7 @@ public: @@ -287,7 +287,7 @@ public:
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
bech32_hrp = "tltc";
bech32_hrp = "tkva";
vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test));
@ -404,7 +404,7 @@ public: @@ -404,7 +404,7 @@ public:
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
bech32_hrp = "rltc";
bech32_hrp = "rkva";
}
int DefaultCheckNameDB() const

Loading…
Cancel
Save